Tags:
create new tag
,
view all tags
---+ WMS command line tests <p align="JUSTIFY" style="margin-bottom: 0in;">Package WMS-cli contains tests for automating functional testing of the command line interface (CLI) of WMS service.</p> <p align="JUSTIFY" style="margin-bottom: 0in; font-style: normal;"><a name="__DdeLink__1253_142951340"></a> The main goal of these tests is to check the behavior of each of these commands with different meaningful options for every command. Testing extensively the behavior of the service is out of the scope of this suite, the result of the operation on the server side is not considered, and nevertheless the command must be able to manage correctly any result reported by the service.</p> <p align="JUSTIFY" style="margin-bottom: 0in;">Covered the following commands:</p> * <p>glite-wms-job-cancel</p> * <p>glite-wms-job-delegate-proxy</p> * <p>glite-wms-job-info</p> * <p>glite-wms-job-list-match</p> * <p>glite-wms-job-logging-info</p> * <p>glite-wms-job-output</p> * <p>glite-wms-job-perusal</p> * <p>glite-wms-job-status</p> * <p>glite-wms-job-submit</p> ---++++ 1) WMS-command_job-cancel.py This test is intended to verify __glite-wms-job-cancel__ command Test the command with these options: * <p>--version</p> * <p>--config</p> * <p>--output</p> * <p>--logfile</p> * <p>--logfile and --debug</p> * <p>--input</p> * <p>all options together</p> success means that the final state of the job is "Cancelled" * <p>cancel a finished job. Succes if command fails.</p> ---++++ 2) WMS-command_job-delegate-proxy.py This test is intended to verify <em><strong>glite-wms-job-delegate-proxy </strong></em>command Test the command with these options: * <p>--version</p> * <p>--autm-delegation</p> * <p>--config</p> * <p>--delegationid</p> * <p>--output</p> * <p>--logfile</p> * <p>--debug and --logfile</p> * <p>--endpoint</p> <p> </p> success means that command has success, delegation is stored in the WMS and that we are able to submit a job. The following tests are possible only in _interactive_ mode (i.e. use option =-i=) * <p> Delegate a shorter proxy</p> * <p>Try to delegate with an expired proxy</p> * <p>Try to submit with an expired delegation</p> ---++++ <span style="background: transparent none repeat scroll 0% 0%;">3) WMS-command_job-info.py</span> This test is intended to verify glite-wms-job-info command Test these options for all the command: --jdl-original --jdl --proxy --delegationid * <p>--version</p> * <p>--input</p> * <p>--config</p> * <p>--output</p> * <p>--logfile</p> * <p>--debug and --logfile</p> * <p>--endpoint</p> * <p>all options together</p> success if command returns 0 * <p>Check if the !JobID is set correctly in the retrieved jdl</p> * <p>Check if the expiration time of the delegation is set correctly"</p> ---++++ <a name="WMS_command_job_list_match_sh"></a>4) WMS-command_job-list-match.py This test is intended to verify __glite-wms-job-list-match__ command Test the command with these options: * <p>--version</p> * <p>--autm-delegation</p> * <p>--config</p> * <p>--logfile</p> * <p>--debug</p> * <p>--output</p> * <p>--endpoint</p> * <p>--rank</p> * <p>all options together</p> success if command returns 0 * <p>Test a failure matching (requirements = false). Success if no matching is found.</p> * <p>Test a restricted matching (only Cream CEs). Success if none LCG CE matches.</p> * <p><span style="font-family: Liberation Serif,serif;">Test delegation proxy </span><code><span style="font-family: Liberation Serif,serif;">option --delegationid</span></code><span style="font-family: Liberation Serif,serif;"> (delegate before the mm). Success if command returns 0. </span></p> ---++++ 5) WMS-command_job-logging-info.py This test is intended to verify __glite-wms-job-logging-info__ command Test the command with these options: * <p>--version</p> * <p>--config</p> * <p>--output</p> * <p>--logfile</p> * <p>--debug and –logfile</p> * <p>--verbosity ([0|1|2|3])</p> * <p>--input</p> * <p>--to</p> * <p>--from</p> * <p>--event (show only ACCEPTED events)</p> * <p>--exclude (exclude ACCEPTED events)</p> * <p>--user-tag</p> * <p>all the options together (extract only !EnQueued events)</p> success if command returns 0 and output is as expected. ---++++ 6) WMS-command_job-output.py This test is intended to verify __glite-wms-job-output__ command Test the command with these options: * <p>--version</p> * <p>--config</p> * <p>--logfile</p> * <p>--debug and --logfile</p> * <p>--dir</p> * <p>--nosubdir</p> * <p>--list-only</p> * <p>--nopurge</p> * <p>--input</p> success means that the status is "CLEARED" (otherwise a WARNING is produced) and that output files std.out and std.err are correctly retrieved. * <p> <span style="background: transparent none repeat scroll 0% 0%;">Try to retrieve output of a Cleared job. Success if command failed. </span></p> ---++++ 7) WMS-command_job-perusal.py This test is intended to verify <em><strong>glite-wms-job-perusal </strong></em>command Test the command with these options: * <p>--version</p> * <p>--set</p> * <p>--unset</p> * <p>--set with --config</p> * <p>--set with --output</p> * <p>--set with --logfile</p> * <p>--set with --logfile and --debug</p> * <p>--set with --nodisplay</p> * <p>--get</p> * <p>--get with --dir</p> * <p>--get with --nodisplay and --all</p> success if the retrieved pieces of file are exactly the job's output. * <p align="JUSTIFY" style="margin-bottom: 0.19in; line-height: 0.02in;" class="western"><span style="color: #000000;"><span style="font-family: Times New Roman,serif;">Retrieve job's output. Success if output file does not differ from the previous retrieved.</span></span></p> ---++++ 8) WMS-command_job-status.py This test is intended to verify __glite-wms-job-status__ command Test the command with these options: * <p>--version</p> * <p>--config</p> * <p>--output</p> * <p>--logfile</p> * <p>--debug</p> * <p>--verbosity ([0|1|2|3])</p> * <p>--input</p> success if command returns 0 Testing these options requires certain indexing capabilities to be enabled on the LB server, so they can failed. * <p>--exclude (exclude Waiting, Done, Cleared and Aborted jobs)</p> * <p>--status (look for Waiting job)</p> * <p>--user-tag</p> success if command output is as expected. ---++++ <span style="background: transparent none repeat scroll 0% 0%;">9) WMS-command_job-submit.py</span> This test is intended to verify __glite-wms-job-submit__ command Test the command with these options: * <p>--version</p> * <p>--autm-delegation</p> * <p>--delegationid</p> * <p>--config</p> * <p>--endpoint</p> * <p>--output</p> * <p>--logfile</p> * <p>--nomsg</p> * <p>all options together</p> success if command returns 0 * <p>--input option (with --noint)</p> * <p>--resource option</p> * <p align="JUSTIFY" style="margin-bottom: 0.19in; line-height: 0.02in;" class="western"><span style="color: #000000;"><span style="font-family: Times New Roman,serif;">--nodes-resource option</span></span></p> success if job is submit to the required CE * <p>--register-only option</p> success if job is in state _Submitted_ * <p>--start option</p> success if job correctly terminated * <p>--transfer-files --proto option</p> success if job output is as expected (i.e. files are correctly transferred) * <p>--valid option</p> * <p>--to option</p> success if _ExpiryTime_ is correctly set in the jdl and if job aborted with reason _request expired_ * <p>--default-jdl option</p> success if the attribute id the _default-jdl_ is add to the job's jdl * <p>--collection</p> success if job collection is submitted successfully
E
dit
|
A
ttach
|
PDF
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
M
ore topic actions
Topic revision: r1 - 2011-07-13
-
AlessioGianelle
Home
Site map
CEMon web
CREAM web
Cloud web
Cyclops web
DGAS web
EgeeJra1It web
Gows web
GridOversight web
IGIPortal web
IGIRelease web
MPI web
Main web
MarcheCloud web
MarcheCloudPilotaCNAF web
Middleware web
Operations web
Sandbox web
Security web
SiteAdminCorner web
TWiki web
Training web
UserSupport web
VOMS web
WMS web
WMSMonitor web
WeNMR web
WMS Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
E
dit
A
ttach
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback