« Previous - Version 11/23 (diff) - Next » - Current version
Mary Laser, 02/13/2012 12:55 am


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 using round robin load balancing
Dependencies must be tested in a 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 Verify upload from file works in a cluster
Dependencies must be tested in a cluster w/at least 1 agent system
Step Action Expected Results
1.
2.
3.

Upload from URL

Purpose Verify upload from URL works in a cluster
Dependencies must be tested in a cluster w/at least 1 agent system
Step Action Expected Results
1.
2.
3.

Upload from server

Purpose Verify upload from server works in a cluster
Dependencies must be tested in a cluster w/at least 1 agent system
Step Action Expected Results
1.
2.
3.

One-shot nomos

Purpose Verify one-shot nomos works in a cluster
Dependencies must be tested in a cluster w/at least 1 agent system
Step Action Expected Results
1.
2.
3.

One-shot copyright

Purpose Verify one-shot copyright works in a cluster
Dependencies must be tested in a cluster w/at least 1 agent system
Step Action Expected Results
1.
2.
3.