Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Description:
There is a need to have a decorator through which user can specify cluster information like number of servers, moms, comms and clients etc. required for a particular test to run.

...

  • The test case level values of requirements decorator override the test suite level requirements values
  • Currently this data including the flags no_mom_on_server, no_comm_on_server & no_comm_on_mom are applicable to all the servers in case of multiple server setup

Examples: 

  • Case 1- Default requirements : Test needs a single Node with all daemons on same host.

...

Interface: PTLTestInfo._gen_ts_tree()
Visibility: Public
Change Control: Stable
Synopsis: Updating existing interface to add requirements information to testsuite's json tree, provided by @requirements decorator. Tools which run PTL, can make use of this information to form a multinode cluster.
Details:

  • json test suite tree generated with info option of pbs_benchpress along with --gen-ts-tree (using PTLTestInfo._gen_ts_tree() method) will now include the requirements data mentioned for each test case
  • this data is populated as value for a new key called 'requirements' under test case name hierarchy in the generated json tree
  • for test cases without requirements decorator, default values of requirements are specified

...