« Previous - Version 9/23 (diff) - Next » - Current version
Mary Laser, 02/11/2012 06:59 pm


Cluster Test Cases

Below is a list of cluster test cases to be executed by one or more members of the team.

Cluster configuration tests (Verify agents run on systems as configured)

agents only, round robin test

Purpose Verify only agents run jobs in a round robin fashion
Dependencies properly installed running cluster w/at least 2 agent systems
Step Action Expected Results
1. stop scheduler with /etc/init.d/fossology stop scheduler should do a graceful shutdown
2. edit [HOSTS] section of fossology.conf file to specify agents only example:
griphook = griphook /usr/local/etc/fossology 10
pigwidgeon = pigwidgeon/usr/local/etc/fossology 10
3. edit /etc/init.d/fossology to increase log file verbosity SCHEDULEROPT="--daemon --reset --verbose=952"
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"
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
example:
2012-02-07 12:41:25 scheduler [25509] :: Starting JOB[1].wget_agent
2012-02-07 12:41:25 scheduler [25509] :: HOST[griphook] load increased to 1

...
2012-02-07 12:50:59 scheduler [25509] :: Starting JOB[2].ununpack
2012-02-07 12:50:59 scheduler [25509] :: HOST[pigwidgeon] load increased to 1

...
2012-02-07 12:51:37 scheduler [25509] :: Starting JOB[3].adj2nest
2012-02-07 12:51:37 scheduler [25509] :: HOST[griphook] load increased to 1

...
2012-02-07 12:51:37 scheduler [25509] :: Starting JOB[4].copyright
2012-02-07 12:51:37 scheduler [25509] :: HOST[pigwidgeon] load increased to 1

...
2012-02-07 12:51:37 scheduler [25509] :: Starting JOB[5].nomos
2012-02-07 12:51:37 scheduler [25509] :: HOST[griphook] load increased to 1

...
2012-02-07 12:51:37 scheduler [25509] :: Starting JOB[6].pkgagent
2012-02-07 12:51:37 scheduler [25509] :: HOST[pigwidgeon] load increased to 2

Cluster functional tests

Upload from file

Purpose
Dependencies
Step Action Expected Results
1.
2.
3.

Upload from URL

Purpose
Dependencies
Step Action Expected Results
1.
2.
3.

Upload from server

Purpose
Dependencies
Step Action Expected Results
1.
2.
3.

One-shot nomos

Purpose
Dependencies
Step Action Expected Results
1.
2.
3.

One-shot copyright

Purpose
Dependencies
Step Action Expected Results
1.
2.
3.