Cluster Test Cases

Version 21 (Mary Laser, 03/07/2012 05:48 pm)

1 1 Mary Laser
{{toc}}
2 1 Mary Laser
3 1 Mary Laser
h1. Cluster Test Cases
4 1 Mary Laser
5 1 Mary Laser
Below is a list of cluster test cases to be executed by one or more members of the team.
6 1 Mary Laser
7 17 Paul Holland
Return to [[Manual Test Cases]].
8 17 Paul Holland
Return to [[20-specific Test Suite]].
9 17 Paul Holland
10 8 Mary Laser
h2. Cluster configuration tests (Verify agents run on systems as configured)
11 1 Mary Laser
12 6 Mary Laser
h3. agents only, round robin test
13 1 Mary Laser
14 1 Mary Laser
table{border:1px solid black}.
15 11 Mary Laser
|_.Purpose | Verify only agents run jobs using round robin load balancing|
16 10 Mary Laser
|_.Dependencies | must be tested in a cluster w/at least 2 agent systems|
17 1 Mary Laser
18 1 Mary Laser
19 1 Mary Laser
table{border:1px color:black}.
20 1 Mary Laser
|_. Step |_.Action |_.Expected Results|
21 1 Mary Laser
|1. | stop scheduler with /etc/init.d/fossology stop | scheduler should do a graceful shutdown |
22 1 Mary Laser
|2. | edit [HOSTS] section of fossology.conf file to specify agents only | example:
23 1 Mary Laser
griphook = griphook /usr/local/etc/fossology 10
24 1 Mary Laser
pigwidgeon = pigwidgeon/usr/local/etc/fossology 10 |
25 5 Mary Laser
|3. | edit /etc/init.d/fossology to increase log file verbosity  |  SCHEDULEROPT="--daemon --reset --verbose=952"   |
26 5 Mary Laser
|4. | start scheduler with /etc/init.d/fossology start | scheduler should start in background with no errors or warnings in the log file (/var/log/fossology/fossology.log); log file start banner should indicate "verbose: 952" |
27 7 Mary Laser
|5. | Start several jobs; a small upload with several analysis will do the trick  | observe and verify in the log file that jobs are started on agent systems +only+ in a round robin fashion
28 5 Mary Laser
example:
29 5 Mary Laser
@2012-02-07 12:41:25 scheduler [25509] :: Starting JOB[1].wget_agent
30 5 Mary Laser
2012-02-07 12:41:25 scheduler [25509] :: HOST[griphook] load increased to 1@
31 5 Mary Laser
...
32 5 Mary Laser
@2012-02-07 12:50:59 scheduler [25509] :: Starting JOB[2].ununpack
33 5 Mary Laser
2012-02-07 12:50:59 scheduler [25509] :: HOST[pigwidgeon] load increased to 1@
34 5 Mary Laser
...
35 5 Mary Laser
@2012-02-07 12:51:37 scheduler [25509] :: Starting JOB[3].adj2nest
36 5 Mary Laser
2012-02-07 12:51:37 scheduler [25509] :: HOST[griphook] load increased to 1@
37 5 Mary Laser
...
38 5 Mary Laser
@2012-02-07 12:51:37 scheduler [25509] :: Starting JOB[4].copyright
39 5 Mary Laser
2012-02-07 12:51:37 scheduler [25509] :: HOST[pigwidgeon] load increased to 1@
40 5 Mary Laser
...
41 5 Mary Laser
@2012-02-07 12:51:37 scheduler [25509] :: Starting JOB[5].nomos
42 5 Mary Laser
2012-02-07 12:51:37 scheduler [25509] :: HOST[griphook] load increased to 1@
43 5 Mary Laser
...
44 5 Mary Laser
@2012-02-07 12:51:37 scheduler [25509] :: Starting JOB[6].pkgagent
45 1 Mary Laser
2012-02-07 12:51:37 scheduler [25509] :: HOST[pigwidgeon] load increased to 2@  |
46 8 Mary Laser
47 8 Mary Laser
h2. Cluster functional tests 
48 8 Mary Laser
49 8 Mary Laser
h3. Upload from file
50 8 Mary Laser
51 8 Mary Laser
table{border:5px, color:black}.
52 10 Mary Laser
|_.Purpose | Verify upload from file works in a cluster  |
53 10 Mary Laser
|_.Dependencies |  must be tested in a cluster w/at least 1 agent system  |
54 8 Mary Laser
55 8 Mary Laser
table{border:1px solid black}.
56 8 Mary Laser
|_. Step |_.Action |_.Expected Results|
57 14 Dong Ma
|1. |Click on the top level "Upload" pull down menu & select "From File"  |UI should display "Upload a New File" page|
58 14 Dong Ma
|2. |Complete steps 1-5 on the page, supplying a file on your local system; click the "Upload"  |page should refresh with message at the top indicating a job has started to upload your request with a link to view the job status |
59 14 Dong Ma
|3. | click on the upload link for your job |UI should display "Show Jobs" page with your requested upload & 2 jobs: ununpack & adj2nest |
60 14 Dong Ma
|4. | When all 2 jobs are completed, click the job # in the far left to view the log files for each |verify all 2 jobs ran without any fatal errors |
61 14 Dong Ma
|5. | Return to the show jobs page and click on the upload name to browse | UI should display your upload in the "Browse" page|
62 8 Mary Laser
63 12 Mary Laser
h3. Upload a file using "Upload from URL"
64 8 Mary Laser
65 8 Mary Laser
table{border:5px, color:black}.
66 12 Mary Laser
|_.Purpose | Verify a file can be uploaded using Upload from URL in a cluster  |
67 10 Mary Laser
|_.Dependencies |  must be tested in a cluster w/at least 1 agent system  |
68 8 Mary Laser
69 1 Mary Laser
table{border:1px solid black}.
70 1 Mary Laser
|_. Step |_.Action |_.Expected Results|
71 12 Mary Laser
|1. | Click on the top level "Upload" pull down menu & select "Upload from URL"| UI should display "Upload from URL" page|
72 12 Mary Laser
|2. | Complete steps 1-4 on the page, supplying a _valid_ URL to a _file_; click the "Upload!" button at the bottom of the page|page should refresh with message at the top indicating a job has started to upload your request with a link to view the job status|
73 12 Mary Laser
|3. | click on the upload link for your job |UI should display "Show Jobs" page with your requested upload & 3 jobs: wget_agent, ununpack & adj2nest |
74 12 Mary Laser
|4. | When all 3 jobs are completed, click the job # in the far left to view the log files for each |verify all 3 jobs ran without any fatal errors |
75 12 Mary Laser
|5. | Return to the show jobs page and click on the upload name to browse | UI should display your upload in the "Browse" page|
76 12 Mary Laser
77 12 Mary Laser
h3. Upload a directory _and it's contents_ using "Upload from URL"
78 12 Mary Laser
79 12 Mary Laser
table{border:5px, color:black}.
80 12 Mary Laser
|_.Purpose | Verify a directory and it's contents can be uploaded using Upload from URL in a cluster  |
81 12 Mary Laser
|_.Dependencies |  must be tested in a cluster w/at least 1 agent system  |
82 12 Mary Laser
83 12 Mary Laser
table{border:1px solid black}.
84 12 Mary Laser
|_. Step |_.Action |_.Expected Results|
85 12 Mary Laser
|1. | Click on the top level "Upload" pull down menu & select "Upload from URL"| UI should display "Upload from URL" page|
86 12 Mary Laser
|2. | Complete steps 1-4 on the page, supplying a _valid_ URL to a _directory_ containing at least 2 items; click the "Upload!" button at the bottom of the page|page should refresh with message at the top indicating a job has started to upload your request with a link to view the job status|
87 12 Mary Laser
|3. | click on the upload link for your job |UI should display "Show Jobs" page with your requested upload & 3 jobs: wget_agent, ununpack & adj2nest |
88 12 Mary Laser
|4. | When all 3 jobs are completed, click the job # in the far left to view the log files for each |verify all 3 jobs ran without any fatal errors |
89 12 Mary Laser
|5. | Return to the show jobs page and click on the upload name to browse | UI should display your upload in the "Browse" page|
90 8 Mary Laser
91 13 Mary Laser
h3. "Upload from URL" works with wildcards
92 13 Mary Laser
93 13 Mary Laser
table{border:5px, color:black}.
94 13 Mary Laser
|_.Purpose | Verify wildcards work with Upload from URL in a cluster  |
95 13 Mary Laser
|_.Dependencies |  must be tested in a cluster w/at least 1 agent system  |
96 13 Mary Laser
97 13 Mary Laser
table{border:1px solid black}.
98 13 Mary Laser
|_. Step |_.Action |_.Expected Results|
99 13 Mary Laser
|1. | Click on the top level "Upload" pull down menu & select "Upload from URL"| UI should display "Upload from URL" page|
100 13 Mary Laser
|2. | Complete steps 1-4, 5 and/or 6 on the page, supplying valid values for each; click the "Upload!" button at the bottom of the page|page should refresh with message at the top indicating a job has started to upload your request with a link to view the job status|
101 13 Mary Laser
|3. | click on the upload link for your job |UI should display "Show Jobs" page with your requested upload & 3 jobs: wget_agent, ununpack & adj2nest |
102 13 Mary Laser
|4. | When all 3 jobs are completed, click the job # in the far left to view the log files for each |verify all 3 jobs ran without any fatal errors |
103 13 Mary Laser
|5. | Return to the show jobs page and click on the upload name to browse | UI should display your upload in the "Browse" page|
104 13 Mary Laser
105 8 Mary Laser
h3. Upload from server
106 8 Mary Laser
107 8 Mary Laser
table{border:5px, color:black}.
108 1 Mary Laser
|_.Purpose | Verify upload from server works in a cluster  |
109 1 Mary Laser
|_.Dependencies |  must be tested in a cluster w/at least 1 agent system  |
110 1 Mary Laser
111 1 Mary Laser
table{border:1px solid black}.
112 8 Mary Laser
|_. Step |_.Action |_.Expected Results|
113 14 Dong Ma
|1. |Click on the top level "Upload" pull down menu & select "From Server"  |UI should display "Upload from Server" page |
114 14 Dong Ma
|2. |Complete steps 1-6 on the page, supplying the files or directory on the server; click the "Upload!" button at the bottom of the page  |page should refresh with message at the top indicating a job has started to upload your request with a link to view the job status |
115 14 Dong Ma
|3. | click on the upload link for your job |UI should display "Show Jobs" page with your requested upload & 2 jobs: ununpack & adj2nest |
116 14 Dong Ma
|4. | When all 2 jobs are completed, click the job # in the far left to view the log files for each |verify all 2 jobs ran without any fatal errors |
117 14 Dong Ma
|5. | Return to the show jobs page and click on the upload name to browse | UI should display your upload in the "Browse" page|
118 9 Mary Laser
119 9 Mary Laser
h3. One-shot nomos
120 9 Mary Laser
121 9 Mary Laser
table{border:5px, color:black}.
122 10 Mary Laser
|_.Purpose | Verify one-shot nomos works in a cluster  |
123 10 Mary Laser
|_.Dependencies |  must be tested in a cluster w/at least 1 agent system  |
124 9 Mary Laser
125 9 Mary Laser
table{border:1px solid black}.
126 9 Mary Laser
|_. Step |_.Action |_.Expected Results|
127 15 Dong Ma
|1. |Click on the top level "Upload" pull down menu & select "One-Shot Analysis"  |UI should display "One-Shot License Analysis" page |
128 15 Dong Ma
|2. |Select the file to Upload; and click the "Analyze!" button  |page should refresh with message at the top indicating license analysis result |
129 9 Mary Laser
130 9 Mary Laser
h3. One-shot copyright
131 9 Mary Laser
132 9 Mary Laser
table{border:5px, color:black}.
133 10 Mary Laser
|_.Purpose | Verify one-shot copyright works in a cluster  |
134 10 Mary Laser
|_.Dependencies |  must be tested in a cluster w/at least 1 agent system  |
135 1 Mary Laser
136 9 Mary Laser
table{border:1px solid black}.
137 9 Mary Laser
|_. Step |_.Action |_.Expected Results|
138 15 Dong Ma
|1. |Click on the top level "Upload" pull down menu & select "One-Shot Copyright/Email/URL"  |UI should display "One-Shot Copyright/Email/URL Analysis" page |
139 15 Dong Ma
|2. |Select the file to Upload; and click the "Upload and scan" button  |page should refresh with message at the top indicating copyright/email/URL analysis result |
140 16 Dong Ma
141 16 Dong Ma
h3. Verify upload files numbers
142 16 Dong Ma
143 16 Dong Ma
table{border:5px, color:black}.
144 16 Dong Ma
|_.Purpose | upload a tar with a known number of files in it (contents are known as well),verify files are in the gold and files repo's.  |
145 16 Dong Ma
|_.Dependencies |  must be tested in a cluster w/at least 1 agent system  |
146 16 Dong Ma
147 16 Dong Ma
table{border:1px solid black}.
148 16 Dong Ma
|_. Step |_.Action |_.Expected Results|
149 16 Dong Ma
|1. | Click on the top level "Upload" pull down menu & select "Upload from URL"| UI should display "Upload from URL" page|
150 16 Dong Ma
|2. | Upload this package http://ldl.usa.hp.com/~laser/RedHat.tar; Query all the agents, click the "Upload!" button at the bottom of the page|page should refresh with message at the top indicating a job has started to upload your request with a link to view the job status|
151 16 Dong Ma
|3. | click on the upload link for your job |UI should display "Show Jobs" page with your requested upload & all jobs: wget_agent, ununpack & adj2nest, nomos, copyright, pkgagent, mimetype, buckets |
152 16 Dong Ma
|4. | When all all jobs are completed, click the job # in the far left to view the log files for each |verify all all jobs ran without any fatal errors |
153 19 Mary Laser
|5. | Check each job items |+Debian 6.0.3+
154 18 Mary Laser
copyright	*10292* items
155 16 Dong Ma
pkgagent	*65* items
156 18 Mary Laser
nomos	*10292* items
157 1 Mary Laser
ununpack	*17272* items
158 1 Mary Laser
adj2nest	*17272* items
159 20 Mary Laser
wget_agent	*1* items | 
160 1 Mary Laser
| | |+Ubuntu 11.10+
161 21 Mary Laser
copyright *10171* items 
162 21 Mary Laser
pkgagent *65* items 
163 21 Mary Laser
nomos *10171* items 
164 21 Mary Laser
ununpack *16410* items 
165 21 Mary Laser
adj2nest *16410* items 
166 21 Mary Laser
wget_agent *1* items |
167 16 Dong Ma
|6. | Return to the show jobs page and click on the upload name to browse | UI should display your upload in the "Browse" page|