mu 5.7.2.6 → 5.7.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/mu.rb +0 -1
- data/lib/mu/api/scale.rb +1 -1
- data/rdoc/Gemfile.html +194 -0
- data/rdoc/LICENSE_txt.html +201 -0
- data/rdoc/Mu.html +478 -0
- data/rdoc/Mu/Client.html +461 -0
- data/rdoc/Mu/Command.html +338 -0
- data/rdoc/Mu/Command/API.html +844 -0
- data/rdoc/Mu/Command/Cmd_appid.html +1342 -0
- data/rdoc/Mu/Command/Cmd_cli.html +800 -0
- data/rdoc/Mu/Command/Cmd_ddt.html +1612 -0
- data/rdoc/Mu/Command/Cmd_homepage.html +762 -0
- data/rdoc/Mu/Command/Cmd_muapi.html +1363 -0
- data/rdoc/Mu/Command/Cmd_netconfig.html +1077 -0
- data/rdoc/Mu/Command/Cmd_runscale.html +1441 -0
- data/rdoc/Mu/Command/Cmd_runscenario.html +787 -0
- data/rdoc/Mu/Command/Cmd_runverify.html +893 -0
- data/rdoc/Mu/Command/Cmd_scale.html +1323 -0
- data/rdoc/Mu/Command/Cmd_system.html +677 -0
- data/rdoc/Mu/Command/Curl.html +751 -0
- data/rdoc/Mu/Command/Help.html +305 -0
- data/rdoc/Mu/Curl.html +243 -0
- data/rdoc/Mu/Curl/Error.html +304 -0
- data/rdoc/Mu/Curl/Error/Authorize.html +355 -0
- data/rdoc/Mu/Curl/Error/Connect.html +286 -0
- data/rdoc/Mu/Curl/Error/DNS.html +236 -0
- data/rdoc/Mu/Curl/Error/Region.html +307 -0
- data/rdoc/Mu/Curl/Error/Status.html +286 -0
- data/rdoc/Mu/Curl/Error/Timeout.html +286 -0
- data/rdoc/Mu/Curl/Verify.html +472 -0
- data/rdoc/Mu/Curl/Verify/Request.html +424 -0
- data/rdoc/Mu/Curl/Verify/Response.html +372 -0
- data/rdoc/Mu/Curl/Verify/Result.html +373 -0
- data/rdoc/Mu/Ddt.html +1347 -0
- data/rdoc/Mu/Helper.html +517 -0
- data/rdoc/Mu/Homepage.html +719 -0
- data/rdoc/Mu/HttpHelper.html +890 -0
- data/rdoc/Mu/Muapi.html +1226 -0
- data/rdoc/Mu/Netconfig.html +1178 -0
- data/rdoc/Mu/Scale.html +1359 -0
- data/rdoc/Mu/System.html +504 -0
- data/rdoc/Object.html +285 -0
- data/rdoc/README_rdoc.html +892 -0
- data/rdoc/Rakefile.html +257 -0
- data/rdoc/TCTestMu.html +2583 -0
- data/rdoc/Test.html +235 -0
- data/rdoc/Test/Unit.html +235 -0
- data/rdoc/Test/Unit/TestCase.html +236 -0
- data/rdoc/Test/helper_rb.html +62 -0
- data/rdoc/Test/tc_test_mu_rb.html +60 -0
- data/rdoc/VERSION.html +179 -0
- data/rdoc/bin/mu.html +54 -0
- data/rdoc/created.rid +36 -1
- data/rdoc/images/brick.png +0 -0
- data/rdoc/images/brick_link.png +0 -0
- data/rdoc/images/bug.png +0 -0
- data/rdoc/images/bullet_black.png +0 -0
- data/rdoc/images/bullet_toggle_minus.png +0 -0
- data/rdoc/images/bullet_toggle_plus.png +0 -0
- data/rdoc/images/date.png +0 -0
- data/rdoc/images/find.png +0 -0
- data/rdoc/images/loadingAnimation.gif +0 -0
- data/rdoc/images/macFFBgHack.png +0 -0
- data/rdoc/images/package.png +0 -0
- data/rdoc/images/page_green.png +0 -0
- data/rdoc/images/page_white_text.png +0 -0
- data/rdoc/images/page_white_width.png +0 -0
- data/rdoc/images/plugin.png +0 -0
- data/rdoc/images/ruby.png +0 -0
- data/rdoc/images/tag_green.png +0 -0
- data/rdoc/images/wrench.png +0 -0
- data/rdoc/images/wrench_orange.png +0 -0
- data/rdoc/images/zoom.png +0 -0
- data/rdoc/index.html +880 -20
- data/rdoc/js/darkfish.js +116 -0
- data/rdoc/js/jquery.js +32 -0
- data/rdoc/js/quicksearch.js +114 -0
- data/rdoc/js/thickbox-compressed.js +10 -0
- data/rdoc/lib/mu/api/ddt_rb.html +52 -0
- data/rdoc/lib/mu/api/homepage_rb.html +52 -0
- data/rdoc/lib/mu/api/muapi_rb.html +52 -0
- data/rdoc/lib/mu/api/netconfig_rb.html +52 -0
- data/rdoc/lib/mu/api/scale_rb.html +52 -0
- data/rdoc/lib/mu/api/system_rb.html +52 -0
- data/rdoc/lib/mu/client_rb.html +52 -0
- data/rdoc/lib/mu/command/api_rb.html +52 -0
- data/rdoc/lib/mu/command/cmd_appid_rb.html +62 -0
- data/rdoc/lib/mu/command/cmd_cli_rb.html +55 -0
- data/rdoc/lib/mu/command/cmd_ddt_rb.html +60 -0
- data/rdoc/lib/mu/command/cmd_homepage_rb.html +57 -0
- data/rdoc/lib/mu/command/cmd_muapi_rb.html +59 -0
- data/rdoc/lib/mu/command/cmd_netconfig_rb.html +58 -0
- data/rdoc/lib/mu/command/cmd_runscale_rb.html +62 -0
- data/rdoc/lib/mu/command/cmd_runscenario_rb.html +57 -0
- data/rdoc/lib/mu/command/cmd_runverify_rb.html +61 -0
- data/rdoc/lib/mu/command/cmd_scale_rb.html +58 -0
- data/rdoc/lib/mu/command/cmd_system_rb.html +59 -0
- data/rdoc/lib/mu/command/curl_rb.html +52 -0
- data/rdoc/lib/mu/command/help_rb.html +52 -0
- data/rdoc/lib/mu/command_rb.html +55 -0
- data/rdoc/lib/mu/curl/error_rb.html +52 -0
- data/rdoc/lib/mu/curl/verify_rb.html +52 -0
- data/rdoc/lib/mu/helper_rb.html +52 -0
- data/rdoc/lib/mu/http_helper_rb.html +52 -0
- data/rdoc/lib/mu_rb.html +80 -0
- data/rdoc/rdoc.css +706 -0
- data/test/data/app_id_stats.csv +1 -1
- data/test/data/app_id_status.json +117 -117
- data/test/data/{scale_configuration.json → scale.json} +11 -11
- metadata +142 -407
- data/rdoc/classes/Mu.src/M000001.html +0 -39
- data/rdoc/classes/Mu.src/M000002.html +0 -29
- data/rdoc/classes/Mu.src/M000053.html +0 -39
- data/rdoc/classes/Mu.src/M000054.html +0 -29
- data/rdoc/classes/Mu/Client.src/M000212.html +0 -24
- data/rdoc/classes/Mu/Client.src/M000213.html +0 -18
- data/rdoc/classes/Mu/Client.src/M000214.html +0 -18
- data/rdoc/classes/Mu/Client.src/M000215.html +0 -18
- data/rdoc/classes/Mu/Client.src/M000216.html +0 -18
- data/rdoc/classes/Mu/Command/API.src/M000130.html +0 -22
- data/rdoc/classes/Mu/Command/API.src/M000131.html +0 -19
- data/rdoc/classes/Mu/Command/API.src/M000132.html +0 -19
- data/rdoc/classes/Mu/Command/API.src/M000133.html +0 -19
- data/rdoc/classes/Mu/Command/API.src/M000134.html +0 -18
- data/rdoc/classes/Mu/Command/API.src/M000135.html +0 -17
- data/rdoc/classes/Mu/Command/API.src/M000136.html +0 -23
- data/rdoc/classes/Mu/Command/API.src/M000137.html +0 -18
- data/rdoc/classes/Mu/Command/API.src/M000138.html +0 -29
- data/rdoc/classes/Mu/Command/API.src/M000139.html +0 -18
- data/rdoc/classes/Mu/Command/API.src/M000140.html +0 -22
- data/rdoc/classes/Mu/Command/API.src/M000141.html +0 -19
- data/rdoc/classes/Mu/Command/API.src/M000142.html +0 -18
- data/rdoc/classes/Mu/Command/API.src/M000143.html +0 -18
- data/rdoc/classes/Mu/Command/API.src/M000144.html +0 -17
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000053.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000054.html +0 -30
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000055.html +0 -39
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000056.html +0 -50
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000145.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000146.html +0 -30
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000147.html +0 -39
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000148.html +0 -50
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000200.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000201.html +0 -19
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000202.html +0 -19
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000203.html +0 -19
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000204.html +0 -20
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000205.html +0 -20
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000101.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000102.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000103.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000104.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000105.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000106.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000107.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000108.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000109.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000110.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000111.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000112.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000113.html +0 -43
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000114.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000115.html +0 -38
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000116.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000117.html +0 -38
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000118.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000119.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000120.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000121.html +0 -24
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000122.html +0 -24
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000206.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000207.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000208.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000209.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000210.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000211.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000164.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000165.html +0 -27
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000166.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000167.html +0 -27
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000168.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000169.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000170.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000171.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000172.html +0 -28
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000173.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000174.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000175.html +0 -28
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000176.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000177.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000178.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000179.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000180.html +0 -24
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000060.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000061.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000062.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000063.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000064.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000065.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000066.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000067.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000068.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000069.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000070.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000071.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000152.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000153.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000154.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000155.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000156.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000157.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000158.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000159.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000160.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000161.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000162.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000163.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000003.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000004.html +0 -51
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000005.html +0 -50
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000057.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000058.html +0 -51
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000059.html +0 -50
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000149.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000150.html +0 -51
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000151.html +0 -50
- data/rdoc/classes/Mu/Command/Cmd_runscenario.src/M000128.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_runscenario.src/M000129.html +0 -144
- data/rdoc/classes/Mu/Command/Cmd_runverify.src/M000198.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_runverify.src/M000199.html +0 -200
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000181.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000182.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000183.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000184.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000185.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000186.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000187.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000188.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000189.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000190.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000191.html +0 -29
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000192.html +0 -27
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000193.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000194.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000195.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000196.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000197.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_system.src/M000097.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_system.src/M000098.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_system.src/M000099.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_system.src/M000100.html +0 -21
- data/rdoc/classes/Mu/Command/Curl.src/M000124.html +0 -18
- data/rdoc/classes/Mu/Command/Curl.src/M000125.html +0 -21
- data/rdoc/classes/Mu/Command/Curl.src/M000126.html +0 -26
- data/rdoc/classes/Mu/Command/Help.src/M000123.html +0 -38
- data/rdoc/classes/Mu/Curl/Error.src/M000063.html +0 -18
- data/rdoc/classes/Mu/Curl/Error/Authorize.src/M000065.html +0 -22
- data/rdoc/classes/Mu/Curl/Error/Connect.src/M000068.html +0 -19
- data/rdoc/classes/Mu/Curl/Error/Region.src/M000066.html +0 -19
- data/rdoc/classes/Mu/Curl/Error/Status.src/M000064.html +0 -19
- data/rdoc/classes/Mu/Curl/Error/Timeout.src/M000067.html +0 -19
- data/rdoc/classes/Mu/Curl/Verify.src/M000055.html +0 -29
- data/rdoc/classes/Mu/Curl/Verify.src/M000056.html +0 -18
- data/rdoc/classes/Mu/Curl/Verify.src/M000057.html +0 -46
- data/rdoc/classes/Mu/Curl/Verify.src/M000058.html +0 -18
- data/rdoc/classes/Mu/Curl/Verify/Request.src/M000061.html +0 -35
- data/rdoc/classes/Mu/Curl/Verify/Request.src/M000062.html +0 -23
- data/rdoc/classes/Mu/Curl/Verify/Response.src/M000059.html +0 -24
- data/rdoc/classes/Mu/Curl/Verify/Result.src/M000060.html +0 -25
- data/rdoc/classes/Mu/Ddt.src/M000242.html +0 -24
- data/rdoc/classes/Mu/Ddt.src/M000243.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000244.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000245.html +0 -23
- data/rdoc/classes/Mu/Ddt.src/M000246.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000247.html +0 -32
- data/rdoc/classes/Mu/Ddt.src/M000248.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000249.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000250.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000251.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000252.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000253.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000254.html +0 -25
- data/rdoc/classes/Mu/Ddt.src/M000255.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000256.html +0 -24
- data/rdoc/classes/Mu/Ddt.src/M000257.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000258.html +0 -24
- data/rdoc/classes/Mu/Ddt.src/M000259.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000260.html +0 -35
- data/rdoc/classes/Mu/Ddt.src/M000261.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000262.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000263.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000264.html +0 -22
- data/rdoc/classes/Mu/Homepage.src/M000236.html +0 -25
- data/rdoc/classes/Mu/Homepage.src/M000237.html +0 -20
- data/rdoc/classes/Mu/Homepage.src/M000238.html +0 -20
- data/rdoc/classes/Mu/Homepage.src/M000239.html +0 -20
- data/rdoc/classes/Mu/Homepage.src/M000240.html +0 -20
- data/rdoc/classes/Mu/Homepage.src/M000241.html +0 -20
- data/rdoc/classes/Mu/HttpHelper.src/M000069.html +0 -22
- data/rdoc/classes/Mu/HttpHelper.src/M000070.html +0 -25
- data/rdoc/classes/Mu/HttpHelper.src/M000071.html +0 -34
- data/rdoc/classes/Mu/HttpHelper.src/M000072.html +0 -39
- data/rdoc/classes/Mu/HttpHelper.src/M000073.html +0 -36
- data/rdoc/classes/Mu/HttpHelper.src/M000074.html +0 -34
- data/rdoc/classes/Mu/HttpHelper.src/M000075.html +0 -46
- data/rdoc/classes/Mu/HttpHelper.src/M000076.html +0 -24
- data/rdoc/classes/Mu/HttpHelper.src/M000077.html +0 -19
- data/rdoc/classes/Mu/HttpHelper.src/M000078.html +0 -33
- data/rdoc/classes/Mu/HttpHelper.src/M000079.html +0 -29
- data/rdoc/classes/Mu/Muapi.src/M000080.html +0 -25
- data/rdoc/classes/Mu/Muapi.src/M000081.html +0 -27
- data/rdoc/classes/Mu/Muapi.src/M000082.html +0 -24
- data/rdoc/classes/Mu/Muapi.src/M000083.html +0 -27
- data/rdoc/classes/Mu/Muapi.src/M000084.html +0 -23
- data/rdoc/classes/Mu/Muapi.src/M000085.html +0 -23
- data/rdoc/classes/Mu/Muapi.src/M000086.html +0 -23
- data/rdoc/classes/Mu/Muapi.src/M000087.html +0 -23
- data/rdoc/classes/Mu/Muapi.src/M000088.html +0 -23
- data/rdoc/classes/Mu/Muapi.src/M000089.html +0 -22
- data/rdoc/classes/Mu/Muapi.src/M000090.html +0 -21
- data/rdoc/classes/Mu/Muapi.src/M000091.html +0 -19
- data/rdoc/classes/Mu/Muapi.src/M000092.html +0 -18
- data/rdoc/classes/Mu/Muapi.src/M000093.html +0 -18
- data/rdoc/classes/Mu/Muapi.src/M000094.html +0 -36
- data/rdoc/classes/Mu/Muapi.src/M000095.html +0 -34
- data/rdoc/classes/Mu/Muapi.src/M000096.html +0 -34
- data/rdoc/classes/Mu/Netconfig.src/M000072.html +0 -25
- data/rdoc/classes/Mu/Netconfig.src/M000073.html +0 -20
- data/rdoc/classes/Mu/Netconfig.src/M000074.html +0 -21
- data/rdoc/classes/Mu/Netconfig.src/M000075.html +0 -24
- data/rdoc/classes/Mu/Netconfig.src/M000076.html +0 -20
- data/rdoc/classes/Mu/Netconfig.src/M000077.html +0 -36
- data/rdoc/classes/Mu/Netconfig.src/M000078.html +0 -22
- data/rdoc/classes/Mu/Netconfig.src/M000079.html +0 -22
- data/rdoc/classes/Mu/Netconfig.src/M000080.html +0 -39
- data/rdoc/classes/Mu/Netconfig.src/M000081.html +0 -21
- data/rdoc/classes/Mu/Netconfig.src/M000082.html +0 -23
- data/rdoc/classes/Mu/Netconfig.src/M000083.html +0 -26
- data/rdoc/classes/Mu/Netconfig.src/M000084.html +0 -23
- data/rdoc/classes/Mu/Netconfig.src/M000085.html +0 -22
- data/rdoc/classes/Mu/Netconfig.src/M000086.html +0 -19
- data/rdoc/classes/Mu/Netconfig.src/M000217.html +0 -25
- data/rdoc/classes/Mu/Netconfig.src/M000218.html +0 -20
- data/rdoc/classes/Mu/Netconfig.src/M000219.html +0 -21
- data/rdoc/classes/Mu/Netconfig.src/M000220.html +0 -24
- data/rdoc/classes/Mu/Netconfig.src/M000221.html +0 -20
- data/rdoc/classes/Mu/Netconfig.src/M000222.html +0 -36
- data/rdoc/classes/Mu/Netconfig.src/M000223.html +0 -22
- data/rdoc/classes/Mu/Netconfig.src/M000224.html +0 -22
- data/rdoc/classes/Mu/Netconfig.src/M000225.html +0 -37
- data/rdoc/classes/Mu/Netconfig.src/M000226.html +0 -21
- data/rdoc/classes/Mu/Netconfig.src/M000227.html +0 -23
- data/rdoc/classes/Mu/Netconfig.src/M000228.html +0 -26
- data/rdoc/classes/Mu/Netconfig.src/M000229.html +0 -23
- data/rdoc/classes/Mu/Netconfig.src/M000230.html +0 -22
- data/rdoc/classes/Mu/Netconfig.src/M000231.html +0 -19
- data/rdoc/classes/Mu/Scale.src/M000006.html +0 -47
- data/rdoc/classes/Mu/Scale.src/M000007.html +0 -27
- data/rdoc/classes/Mu/Scale.src/M000008.html +0 -22
- data/rdoc/classes/Mu/Scale.src/M000009.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000010.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000011.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000012.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000013.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000014.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000015.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000016.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000017.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000018.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000019.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000020.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000021.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000022.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000023.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000024.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000025.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000265.html +0 -46
- data/rdoc/classes/Mu/Scale.src/M000266.html +0 -27
- data/rdoc/classes/Mu/Scale.src/M000267.html +0 -22
- data/rdoc/classes/Mu/Scale.src/M000268.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000269.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000270.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000271.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000272.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000273.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000274.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000275.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000276.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000277.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000278.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000279.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000280.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000281.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000282.html +0 -20
- data/rdoc/classes/Mu/System.src/M000232.html +0 -25
- data/rdoc/classes/Mu/System.src/M000233.html +0 -20
- data/rdoc/classes/Mu/System.src/M000234.html +0 -20
- data/rdoc/classes/Mu/System.src/M000235.html +0 -20
- data/rdoc/classes/Object.src/M000052.html +0 -18
- data/rdoc/classes/TCTestMu.src/M000001.html +0 -24
- data/rdoc/classes/TCTestMu.src/M000002.html +0 -18
- data/rdoc/classes/TCTestMu.src/M000003.html +0 -32
- data/rdoc/classes/TCTestMu.src/M000004.html +0 -33
- data/rdoc/classes/TCTestMu.src/M000005.html +0 -21
- data/rdoc/classes/TCTestMu.src/M000006.html +0 -21
- data/rdoc/classes/TCTestMu.src/M000007.html +0 -26
- data/rdoc/classes/TCTestMu.src/M000008.html +0 -29
- data/rdoc/classes/TCTestMu.src/M000009.html +0 -39
- data/rdoc/classes/TCTestMu.src/M000010.html +0 -38
- data/rdoc/classes/TCTestMu.src/M000011.html +0 -38
- data/rdoc/classes/TCTestMu.src/M000012.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000013.html +0 -25
- data/rdoc/classes/TCTestMu.src/M000014.html +0 -25
- data/rdoc/classes/TCTestMu.src/M000015.html +0 -33
- data/rdoc/classes/TCTestMu.src/M000016.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000017.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000018.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000019.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000020.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000021.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000022.html +0 -23
- data/rdoc/classes/TCTestMu.src/M000023.html +0 -23
- data/rdoc/classes/TCTestMu.src/M000024.html +0 -44
- data/rdoc/classes/TCTestMu.src/M000025.html +0 -53
- data/rdoc/classes/TCTestMu.src/M000026.html +0 -22
- data/rdoc/classes/TCTestMu.src/M000027.html +0 -49
- data/rdoc/classes/TCTestMu.src/M000028.html +0 -40
- data/rdoc/classes/TCTestMu.src/M000029.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000030.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000031.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000032.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000033.html +0 -27
- data/rdoc/classes/TCTestMu.src/M000034.html +0 -32
- data/rdoc/classes/TCTestMu.src/M000035.html +0 -23
- data/rdoc/classes/TCTestMu.src/M000036.html +0 -41
- data/rdoc/classes/TCTestMu.src/M000037.html +0 -23
- data/rdoc/classes/TCTestMu.src/M000038.html +0 -24
- data/rdoc/classes/TCTestMu.src/M000039.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000040.html +0 -32
- data/rdoc/classes/TCTestMu.src/M000041.html +0 -32
- data/rdoc/classes/TCTestMu.src/M000042.html +0 -26
- data/rdoc/classes/TCTestMu.src/M000043.html +0 -28
- data/rdoc/classes/TCTestMu.src/M000044.html +0 -21
- data/rdoc/classes/TCTestMu.src/M000045.html +0 -23
- data/rdoc/classes/TCTestMu.src/M000046.html +0 -21
- data/rdoc/classes/TCTestMu.src/M000047.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000048.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000049.html +0 -22
- data/rdoc/classes/TCTestMu.src/M000050.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000051.html +0 -35
- data/test/helper.rb +0 -18
- data/test/tc_test_mu.rb +0 -720
|
@@ -0,0 +1,1612 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
5
|
+
<head>
|
|
6
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
|
7
|
+
|
|
8
|
+
<title>Class: Mu::Command::Cmd_ddt</title>
|
|
9
|
+
|
|
10
|
+
<link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" />
|
|
11
|
+
|
|
12
|
+
<script src="../../js/jquery.js" type="text/javascript"
|
|
13
|
+
charset="utf-8"></script>
|
|
14
|
+
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
|
15
|
+
charset="utf-8"></script>
|
|
16
|
+
<script src="../../js/quicksearch.js" type="text/javascript"
|
|
17
|
+
charset="utf-8"></script>
|
|
18
|
+
<script src="../../js/darkfish.js" type="text/javascript"
|
|
19
|
+
charset="utf-8"></script>
|
|
20
|
+
|
|
21
|
+
</head>
|
|
22
|
+
<body class="class">
|
|
23
|
+
|
|
24
|
+
<div id="metadata">
|
|
25
|
+
<div id="home-metadata">
|
|
26
|
+
<div id="home-section" class="section">
|
|
27
|
+
<h3 class="section-header">
|
|
28
|
+
<a href="../../index.html">Home</a>
|
|
29
|
+
<a href="../../index.html#classes">Classes</a>
|
|
30
|
+
<a href="../../index.html#methods">Methods</a>
|
|
31
|
+
</h3>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<div id="file-metadata">
|
|
36
|
+
<div id="file-list-section" class="section">
|
|
37
|
+
<h3 class="section-header">In Files</h3>
|
|
38
|
+
<div class="section-body">
|
|
39
|
+
<ul>
|
|
40
|
+
|
|
41
|
+
<li><a href="../../lib/mu/command/cmd_ddt_rb.html?TB_iframe=true&height=550&width=785"
|
|
42
|
+
class="thickbox" title="lib/mu/command/cmd_ddt.rb">lib/mu/command/cmd_ddt.rb</a></li>
|
|
43
|
+
|
|
44
|
+
</ul>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
<div id="class-metadata">
|
|
52
|
+
|
|
53
|
+
<!-- Parent Class -->
|
|
54
|
+
|
|
55
|
+
<div id="parent-class-section" class="section">
|
|
56
|
+
<h3 class="section-header">Parent</h3>
|
|
57
|
+
|
|
58
|
+
<p class="link"><a href="../Command.html">Mu::Command</a></p>
|
|
59
|
+
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
<!-- Namespace Contents -->
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
<!-- Method Quickref -->
|
|
67
|
+
|
|
68
|
+
<div id="method-list-section" class="section">
|
|
69
|
+
<h3 class="section-header">Methods</h3>
|
|
70
|
+
<ul class="link-list">
|
|
71
|
+
|
|
72
|
+
<li><a href="#method-i-cmd_close_all_sessions">#cmd_close_all_sessions</a></li>
|
|
73
|
+
|
|
74
|
+
<li><a href="#method-i-cmd_close_session">#cmd_close_session</a></li>
|
|
75
|
+
|
|
76
|
+
<li><a href="#method-i-cmd_csv_export">#cmd_csv_export</a></li>
|
|
77
|
+
|
|
78
|
+
<li><a href="#method-i-cmd_csv_import">#cmd_csv_import</a></li>
|
|
79
|
+
|
|
80
|
+
<li><a href="#method-i-cmd_display_results">#cmd_display_results</a></li>
|
|
81
|
+
|
|
82
|
+
<li><a href="#method-i-cmd_get_all_sessions">#cmd_get_all_sessions</a></li>
|
|
83
|
+
|
|
84
|
+
<li><a href="#method-i-cmd_get_channels">#cmd_get_channels</a></li>
|
|
85
|
+
|
|
86
|
+
<li><a href="#method-i-cmd_get_hosts">#cmd_get_hosts</a></li>
|
|
87
|
+
|
|
88
|
+
<li><a href="#method-i-cmd_get_options">#cmd_get_options</a></li>
|
|
89
|
+
|
|
90
|
+
<li><a href="#method-i-cmd_get_sessions">#cmd_get_sessions</a></li>
|
|
91
|
+
|
|
92
|
+
<li><a href="#method-i-cmd_get_testset_results">#cmd_get_testset_results</a></li>
|
|
93
|
+
|
|
94
|
+
<li><a href="#method-i-cmd_get_testset_status">#cmd_get_testset_status</a></li>
|
|
95
|
+
|
|
96
|
+
<li><a href="#method-i-cmd_help">#cmd_help</a></li>
|
|
97
|
+
|
|
98
|
+
<li><a href="#method-i-cmd_load_scenario">#cmd_load_scenario</a></li>
|
|
99
|
+
|
|
100
|
+
<li><a href="#method-i-cmd_new_session">#cmd_new_session</a></li>
|
|
101
|
+
|
|
102
|
+
<li><a href="#method-i-cmd_run">#cmd_run</a></li>
|
|
103
|
+
|
|
104
|
+
<li><a href="#method-i-cmd_run_testset">#cmd_run_testset</a></li>
|
|
105
|
+
|
|
106
|
+
<li><a href="#method-i-cmd_set_channels">#cmd_set_channels</a></li>
|
|
107
|
+
|
|
108
|
+
<li><a href="#method-i-cmd_set_hosts">#cmd_set_hosts</a></li>
|
|
109
|
+
|
|
110
|
+
<li><a href="#method-i-cmd_set_options">#cmd_set_options</a></li>
|
|
111
|
+
|
|
112
|
+
<li><a href="#method-i-cmd_setup_test">#cmd_setup_test</a></li>
|
|
113
|
+
|
|
114
|
+
<li><a href="#method-i-cmd_teardown_test">#cmd_teardown_test</a></li>
|
|
115
|
+
|
|
116
|
+
<li><a href="#method-i-help">#help</a></li>
|
|
117
|
+
|
|
118
|
+
<li><a href="#method-i-parse_cli">#parse_cli</a></li>
|
|
119
|
+
|
|
120
|
+
<li><a href="#method-i-setup">#setup</a></li>
|
|
121
|
+
|
|
122
|
+
</ul>
|
|
123
|
+
</div>
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
<!-- Included Modules -->
|
|
127
|
+
|
|
128
|
+
</div>
|
|
129
|
+
|
|
130
|
+
<div id="project-metadata">
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
<div id="fileindex-section" class="section project-section">
|
|
134
|
+
<h3 class="section-header">Files</h3>
|
|
135
|
+
<ul>
|
|
136
|
+
|
|
137
|
+
<li class="file"><a href="../../Gemfile.html">Gemfile</a></li>
|
|
138
|
+
|
|
139
|
+
<li class="file"><a href="../../LICENSE_txt.html">LICENSE.txt</a></li>
|
|
140
|
+
|
|
141
|
+
<li class="file"><a href="../../README_rdoc.html">README.rdoc</a></li>
|
|
142
|
+
|
|
143
|
+
<li class="file"><a href="../../Rakefile.html">Rakefile</a></li>
|
|
144
|
+
|
|
145
|
+
<li class="file"><a href="../../VERSION.html">VERSION</a></li>
|
|
146
|
+
|
|
147
|
+
</ul>
|
|
148
|
+
</div>
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
<div id="classindex-section" class="section project-section">
|
|
152
|
+
<h3 class="section-header">Class Index
|
|
153
|
+
<span class="search-toggle"><img src="../../images/find.png"
|
|
154
|
+
height="16" width="16" alt="[+]"
|
|
155
|
+
title="show/hide quicksearch" /></span></h3>
|
|
156
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
|
157
|
+
<fieldset>
|
|
158
|
+
<legend>Quicksearch</legend>
|
|
159
|
+
<input type="text" name="quicksearch" value=""
|
|
160
|
+
class="quicksearch-field" />
|
|
161
|
+
</fieldset>
|
|
162
|
+
</form>
|
|
163
|
+
|
|
164
|
+
<ul class="link-list">
|
|
165
|
+
|
|
166
|
+
<li><a href="../../Mu.html">Mu</a></li>
|
|
167
|
+
|
|
168
|
+
<li><a href="../../Mu/Client.html">Mu::Client</a></li>
|
|
169
|
+
|
|
170
|
+
<li><a href="../../Mu/Command.html">Mu::Command</a></li>
|
|
171
|
+
|
|
172
|
+
<li><a href="../../Mu/Command/API.html">Mu::Command::API</a></li>
|
|
173
|
+
|
|
174
|
+
<li><a href="../../Mu/Command/API.html">Mu::Command::API</a></li>
|
|
175
|
+
|
|
176
|
+
<li><a href="../../Mu/Command/Cmd_appid.html">Mu::Command::Cmd_appid</a></li>
|
|
177
|
+
|
|
178
|
+
<li><a href="../../Mu/Command/Cmd_cli.html">Mu::Command::Cmd_cli</a></li>
|
|
179
|
+
|
|
180
|
+
<li><a href="../../Mu/Command/Cmd_ddt.html">Mu::Command::Cmd_ddt</a></li>
|
|
181
|
+
|
|
182
|
+
<li><a href="../../Mu/Command/Cmd_homepage.html">Mu::Command::Cmd_homepage</a></li>
|
|
183
|
+
|
|
184
|
+
<li><a href="../../Mu/Command/Cmd_muapi.html">Mu::Command::Cmd_muapi</a></li>
|
|
185
|
+
|
|
186
|
+
<li><a href="../../Mu/Command/Cmd_netconfig.html">Mu::Command::Cmd_netconfig</a></li>
|
|
187
|
+
|
|
188
|
+
<li><a href="../../Mu/Command/Cmd_runscale.html">Mu::Command::Cmd_runscale</a></li>
|
|
189
|
+
|
|
190
|
+
<li><a href="../../Mu/Command/Cmd_runscenario.html">Mu::Command::Cmd_runscenario</a></li>
|
|
191
|
+
|
|
192
|
+
<li><a href="../../Mu/Command/Cmd_runverify.html">Mu::Command::Cmd_runverify</a></li>
|
|
193
|
+
|
|
194
|
+
<li><a href="../../Mu/Command/Cmd_scale.html">Mu::Command::Cmd_scale</a></li>
|
|
195
|
+
|
|
196
|
+
<li><a href="../../Mu/Command/Cmd_system.html">Mu::Command::Cmd_system</a></li>
|
|
197
|
+
|
|
198
|
+
<li><a href="../../Mu/Command/Curl.html">Mu::Command::Curl</a></li>
|
|
199
|
+
|
|
200
|
+
<li><a href="../../Mu/Command/Help.html">Mu::Command::Help</a></li>
|
|
201
|
+
|
|
202
|
+
<li><a href="../../Mu/Curl.html">Mu::Curl</a></li>
|
|
203
|
+
|
|
204
|
+
<li><a href="../../Mu/Curl/Error.html">Mu::Curl::Error</a></li>
|
|
205
|
+
|
|
206
|
+
<li><a href="../../Mu/Curl/Error/Authorize.html">Mu::Curl::Error::Authorize</a></li>
|
|
207
|
+
|
|
208
|
+
<li><a href="../../Mu/Curl/Error/Connect.html">Mu::Curl::Error::Connect</a></li>
|
|
209
|
+
|
|
210
|
+
<li><a href="../../Mu/Curl/Error/DNS.html">Mu::Curl::Error::DNS</a></li>
|
|
211
|
+
|
|
212
|
+
<li><a href="../../Mu/Curl/Error/Region.html">Mu::Curl::Error::Region</a></li>
|
|
213
|
+
|
|
214
|
+
<li><a href="../../Mu/Curl/Error/Status.html">Mu::Curl::Error::Status</a></li>
|
|
215
|
+
|
|
216
|
+
<li><a href="../../Mu/Curl/Error/Timeout.html">Mu::Curl::Error::Timeout</a></li>
|
|
217
|
+
|
|
218
|
+
<li><a href="../../Mu/Curl/Verify.html">Mu::Curl::Verify</a></li>
|
|
219
|
+
|
|
220
|
+
<li><a href="../../Mu/Curl/Verify/Request.html">Mu::Curl::Verify::Request</a></li>
|
|
221
|
+
|
|
222
|
+
<li><a href="../../Mu/Curl/Verify/Response.html">Mu::Curl::Verify::Response</a></li>
|
|
223
|
+
|
|
224
|
+
<li><a href="../../Mu/Curl/Verify/Result.html">Mu::Curl::Verify::Result</a></li>
|
|
225
|
+
|
|
226
|
+
<li><a href="../../Mu/Ddt.html">Mu::Ddt</a></li>
|
|
227
|
+
|
|
228
|
+
<li><a href="../../Mu/Helper.html">Mu::Helper</a></li>
|
|
229
|
+
|
|
230
|
+
<li><a href="../../Mu/Homepage.html">Mu::Homepage</a></li>
|
|
231
|
+
|
|
232
|
+
<li><a href="../../Mu/HttpHelper.html">Mu::HttpHelper</a></li>
|
|
233
|
+
|
|
234
|
+
<li><a href="../../Mu/Muapi.html">Mu::Muapi</a></li>
|
|
235
|
+
|
|
236
|
+
<li><a href="../../Mu/Netconfig.html">Mu::Netconfig</a></li>
|
|
237
|
+
|
|
238
|
+
<li><a href="../../Mu/Scale.html">Mu::Scale</a></li>
|
|
239
|
+
|
|
240
|
+
<li><a href="../../Mu/System.html">Mu::System</a></li>
|
|
241
|
+
|
|
242
|
+
<li><a href="../../Test.html">Test</a></li>
|
|
243
|
+
|
|
244
|
+
<li><a href="../../Test/Unit.html">Test::Unit</a></li>
|
|
245
|
+
|
|
246
|
+
<li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a></li>
|
|
247
|
+
|
|
248
|
+
<li><a href="../../Object.html">Object</a></li>
|
|
249
|
+
|
|
250
|
+
<li><a href="../../TCTestMu.html">TCTestMu</a></li>
|
|
251
|
+
|
|
252
|
+
</ul>
|
|
253
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
|
254
|
+
</div>
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
</div>
|
|
258
|
+
</div>
|
|
259
|
+
|
|
260
|
+
<div id="documentation">
|
|
261
|
+
<h1 class="class">Mu::Command::Cmd_ddt</h1>
|
|
262
|
+
|
|
263
|
+
<div id="description">
|
|
264
|
+
|
|
265
|
+
</div>
|
|
266
|
+
|
|
267
|
+
<!-- Constants -->
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
<!-- Attributes -->
|
|
271
|
+
|
|
272
|
+
<div id="attribute-method-details" class="method-section section">
|
|
273
|
+
<h3 class="section-header">Attributes</h3>
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
<div id="host-attribute-method" class="method-detail">
|
|
277
|
+
<a name="host"></a>
|
|
278
|
+
|
|
279
|
+
<a name="host="></a>
|
|
280
|
+
|
|
281
|
+
<div class="method-heading attribute-method-heading">
|
|
282
|
+
<span class="method-name">host</span><span
|
|
283
|
+
class="attribute-access-type">[RW]</span>
|
|
284
|
+
</div>
|
|
285
|
+
|
|
286
|
+
<div class="method-description">
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
</div>
|
|
291
|
+
</div>
|
|
292
|
+
|
|
293
|
+
<div id="username-attribute-method" class="method-detail">
|
|
294
|
+
<a name="username"></a>
|
|
295
|
+
|
|
296
|
+
<a name="username="></a>
|
|
297
|
+
|
|
298
|
+
<div class="method-heading attribute-method-heading">
|
|
299
|
+
<span class="method-name">username</span><span
|
|
300
|
+
class="attribute-access-type">[RW]</span>
|
|
301
|
+
</div>
|
|
302
|
+
|
|
303
|
+
<div class="method-description">
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
</div>
|
|
308
|
+
</div>
|
|
309
|
+
|
|
310
|
+
<div id="password-attribute-method" class="method-detail">
|
|
311
|
+
<a name="password"></a>
|
|
312
|
+
|
|
313
|
+
<a name="password="></a>
|
|
314
|
+
|
|
315
|
+
<div class="method-heading attribute-method-heading">
|
|
316
|
+
<span class="method-name">password</span><span
|
|
317
|
+
class="attribute-access-type">[RW]</span>
|
|
318
|
+
</div>
|
|
319
|
+
|
|
320
|
+
<div class="method-description">
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
</div>
|
|
325
|
+
</div>
|
|
326
|
+
|
|
327
|
+
<div id="api-attribute-method" class="method-detail">
|
|
328
|
+
<a name="api"></a>
|
|
329
|
+
|
|
330
|
+
<a name="api="></a>
|
|
331
|
+
|
|
332
|
+
<div class="method-heading attribute-method-heading">
|
|
333
|
+
<span class="method-name">api</span><span
|
|
334
|
+
class="attribute-access-type">[RW]</span>
|
|
335
|
+
</div>
|
|
336
|
+
|
|
337
|
+
<div class="method-description">
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
</div>
|
|
342
|
+
</div>
|
|
343
|
+
|
|
344
|
+
<div id="hash-attribute-method" class="method-detail">
|
|
345
|
+
<a name="hash"></a>
|
|
346
|
+
|
|
347
|
+
<a name="hash="></a>
|
|
348
|
+
|
|
349
|
+
<div class="method-heading attribute-method-heading">
|
|
350
|
+
<span class="method-name">hash</span><span
|
|
351
|
+
class="attribute-access-type">[RW]</span>
|
|
352
|
+
</div>
|
|
353
|
+
|
|
354
|
+
<div class="method-description">
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
</div>
|
|
359
|
+
</div>
|
|
360
|
+
|
|
361
|
+
</div>
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
<!-- Methods -->
|
|
365
|
+
|
|
366
|
+
<div id="public-instance-method-details" class="method-section section">
|
|
367
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
<div id="cmd-close-all-sessions-method" class="method-detail ">
|
|
371
|
+
<a name="method-i-cmd_close_all_sessions"></a>
|
|
372
|
+
|
|
373
|
+
<div class="method-heading">
|
|
374
|
+
|
|
375
|
+
<span class="method-name">cmd_close_all_sessions</span><span
|
|
376
|
+
class="method-args">(argv)</span>
|
|
377
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
378
|
+
|
|
379
|
+
</div>
|
|
380
|
+
|
|
381
|
+
<div class="method-description">
|
|
382
|
+
|
|
383
|
+
<p>
|
|
384
|
+
closes all existing Studio Verify sessions# * command-line args
|
|
385
|
+
</p>
|
|
386
|
+
<pre>
|
|
387
|
+
* argv = command-line arguments</pre>
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
<div class="method-source-code"
|
|
392
|
+
id="cmd-close-all-sessions-source">
|
|
393
|
+
<pre>
|
|
394
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_ddt.rb, line 65</span>
|
|
395
|
+
65: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_close_all_sessions</span> <span class="ruby-identifier">argv</span>
|
|
396
|
+
66: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
397
|
+
67: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">close_all_sessions</span>
|
|
398
|
+
68: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
399
|
+
69: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
400
|
+
70: <span class="ruby-keyword kw">end</span></pre>
|
|
401
|
+
</div>
|
|
402
|
+
|
|
403
|
+
</div>
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
</div>
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
<div id="cmd-close-session-method" class="method-detail ">
|
|
412
|
+
<a name="method-i-cmd_close_session"></a>
|
|
413
|
+
|
|
414
|
+
<div class="method-heading">
|
|
415
|
+
|
|
416
|
+
<span class="method-name">cmd_close_session</span><span
|
|
417
|
+
class="method-args">(argv)</span>
|
|
418
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
419
|
+
|
|
420
|
+
</div>
|
|
421
|
+
|
|
422
|
+
<div class="method-description">
|
|
423
|
+
|
|
424
|
+
<p>
|
|
425
|
+
closes the currently active Studio Verify session
|
|
426
|
+
</p>
|
|
427
|
+
<pre>
|
|
428
|
+
* argv = command-line arguments</pre>
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
<div class="method-source-code"
|
|
433
|
+
id="cmd-close-session-source">
|
|
434
|
+
<pre>
|
|
435
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_ddt.rb, line 47</span>
|
|
436
|
+
47: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_close_session</span> <span class="ruby-identifier">argv</span>
|
|
437
|
+
48: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
438
|
+
49: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">close_session</span>
|
|
439
|
+
50: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
440
|
+
51: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
441
|
+
52: <span class="ruby-keyword kw">end</span></pre>
|
|
442
|
+
</div>
|
|
443
|
+
|
|
444
|
+
</div>
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
</div>
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
<div id="cmd-csv-export-method" class="method-detail ">
|
|
453
|
+
<a name="method-i-cmd_csv_export"></a>
|
|
454
|
+
|
|
455
|
+
<div class="method-heading">
|
|
456
|
+
|
|
457
|
+
<span class="method-name">cmd_csv_export</span><span
|
|
458
|
+
class="method-args">(argv)</span>
|
|
459
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
460
|
+
|
|
461
|
+
</div>
|
|
462
|
+
|
|
463
|
+
<div class="method-description">
|
|
464
|
+
|
|
465
|
+
<p>
|
|
466
|
+
exports a testset from <a href="../../Mu.html">Mu</a> Studio to a csv file
|
|
467
|
+
</p>
|
|
468
|
+
<pre>
|
|
469
|
+
* argv = command-line arguments, requires a uuid (-u) argument that is the uuid of a testset on the Mu</pre>
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
<div class="method-source-code"
|
|
474
|
+
id="cmd-csv-export-source">
|
|
475
|
+
<pre>
|
|
476
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_ddt.rb, line 257</span>
|
|
477
|
+
257: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_csv_export</span> <span class="ruby-identifier">argv</span>
|
|
478
|
+
258: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
479
|
+
259: <span class="ruby-identifier">msg</span> <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">new_session</span>
|
|
480
|
+
260: <span class="ruby-identifier">uuid</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>]
|
|
481
|
+
261: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">csv_export</span>(<span class="ruby-identifier">uuid</span>)
|
|
482
|
+
262: <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">close_session</span>
|
|
483
|
+
263: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
484
|
+
264: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
485
|
+
265: <span class="ruby-keyword kw">end</span></pre>
|
|
486
|
+
</div>
|
|
487
|
+
|
|
488
|
+
</div>
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
</div>
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
<div id="cmd-csv-import-method" class="method-detail ">
|
|
497
|
+
<a name="method-i-cmd_csv_import"></a>
|
|
498
|
+
|
|
499
|
+
<div class="method-heading">
|
|
500
|
+
|
|
501
|
+
<span class="method-name">cmd_csv_import</span><span
|
|
502
|
+
class="method-args">(argv)</span>
|
|
503
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
504
|
+
|
|
505
|
+
</div>
|
|
506
|
+
|
|
507
|
+
<div class="method-description">
|
|
508
|
+
|
|
509
|
+
<p>
|
|
510
|
+
imports a csv-formatted testset to a <a href="../../Mu.html">Mu</a> system
|
|
511
|
+
</p>
|
|
512
|
+
<pre>
|
|
513
|
+
* argv = command-line arguments, requires the csv testset file (-t)</pre>
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
<div class="method-source-code"
|
|
518
|
+
id="cmd-csv-import-source">
|
|
519
|
+
<pre>
|
|
520
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_ddt.rb, line 269</span>
|
|
521
|
+
269: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_csv_import</span> <span class="ruby-identifier">argv</span>
|
|
522
|
+
270: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
523
|
+
271: <span class="ruby-identifier">msg</span> <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">new_session</span>
|
|
524
|
+
272: <span class="ruby-identifier">testset_file</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'testset'</span>]
|
|
525
|
+
273: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">csv_import</span>(<span class="ruby-identifier">testset_file</span>)
|
|
526
|
+
274: <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">close_session</span>
|
|
527
|
+
275: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
528
|
+
276: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
529
|
+
277: <span class="ruby-keyword kw">end</span></pre>
|
|
530
|
+
</div>
|
|
531
|
+
|
|
532
|
+
</div>
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
</div>
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
<div id="cmd-display-results-method" class="method-detail ">
|
|
541
|
+
<a name="method-i-cmd_display_results"></a>
|
|
542
|
+
|
|
543
|
+
<div class="method-heading">
|
|
544
|
+
|
|
545
|
+
<span class="method-name">cmd_display_results</span><span
|
|
546
|
+
class="method-args">(argv)</span>
|
|
547
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
548
|
+
|
|
549
|
+
</div>
|
|
550
|
+
|
|
551
|
+
<div class="method-description">
|
|
552
|
+
|
|
553
|
+
<p>
|
|
554
|
+
displays testset results
|
|
555
|
+
</p>
|
|
556
|
+
<pre>
|
|
557
|
+
* argv = command-line arguments</pre>
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
<div class="method-source-code"
|
|
562
|
+
id="cmd-display-results-source">
|
|
563
|
+
<pre>
|
|
564
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_ddt.rb, line 248</span>
|
|
565
|
+
248: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_display_results</span> <span class="ruby-identifier">argv</span>
|
|
566
|
+
249: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
567
|
+
250: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">results</span>
|
|
568
|
+
251: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
569
|
+
252: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
570
|
+
253: <span class="ruby-keyword kw">end</span></pre>
|
|
571
|
+
</div>
|
|
572
|
+
|
|
573
|
+
</div>
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
</div>
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
<div id="cmd-get-all-sessions-method" class="method-detail ">
|
|
582
|
+
<a name="method-i-cmd_get_all_sessions"></a>
|
|
583
|
+
|
|
584
|
+
<div class="method-heading">
|
|
585
|
+
|
|
586
|
+
<span class="method-name">cmd_get_all_sessions</span><span
|
|
587
|
+
class="method-args">(argv)</span>
|
|
588
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
589
|
+
|
|
590
|
+
</div>
|
|
591
|
+
|
|
592
|
+
<div class="method-description">
|
|
593
|
+
|
|
594
|
+
<p>
|
|
595
|
+
returns all Studio Verify sessions
|
|
596
|
+
</p>
|
|
597
|
+
<pre>
|
|
598
|
+
* argv = command-line arguments</pre>
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
<div class="method-source-code"
|
|
603
|
+
id="cmd-get-all-sessions-source">
|
|
604
|
+
<pre>
|
|
605
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_ddt.rb, line 74</span>
|
|
606
|
+
74: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_get_all_sessions</span> <span class="ruby-identifier">argv</span>
|
|
607
|
+
75: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
608
|
+
76: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">get_all_sessions</span>
|
|
609
|
+
77: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
610
|
+
78: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
611
|
+
79: <span class="ruby-keyword kw">end</span></pre>
|
|
612
|
+
</div>
|
|
613
|
+
|
|
614
|
+
</div>
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
</div>
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
<div id="cmd-get-channels-method" class="method-detail ">
|
|
623
|
+
<a name="method-i-cmd_get_channels"></a>
|
|
624
|
+
|
|
625
|
+
<div class="method-heading">
|
|
626
|
+
|
|
627
|
+
<span class="method-name">cmd_get_channels</span><span
|
|
628
|
+
class="method-args">(argv)</span>
|
|
629
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
630
|
+
|
|
631
|
+
</div>
|
|
632
|
+
|
|
633
|
+
<div class="method-description">
|
|
634
|
+
|
|
635
|
+
<p>
|
|
636
|
+
returns the channel elements of a <a href="../../Mu.html">Mu</a> Studio
|
|
637
|
+
scenario
|
|
638
|
+
</p>
|
|
639
|
+
<pre>
|
|
640
|
+
* argv = command-line arguments</pre>
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
<div class="method-source-code"
|
|
645
|
+
id="cmd-get-channels-source">
|
|
646
|
+
<pre>
|
|
647
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_ddt.rb, line 156</span>
|
|
648
|
+
156: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_get_channels</span> <span class="ruby-identifier">argv</span>
|
|
649
|
+
157: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
650
|
+
158: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">get_channels</span>
|
|
651
|
+
159: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
652
|
+
160: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
653
|
+
161: <span class="ruby-keyword kw">end</span></pre>
|
|
654
|
+
</div>
|
|
655
|
+
|
|
656
|
+
</div>
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
</div>
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
<div id="cmd-get-hosts-method" class="method-detail ">
|
|
665
|
+
<a name="method-i-cmd_get_hosts"></a>
|
|
666
|
+
|
|
667
|
+
<div class="method-heading">
|
|
668
|
+
|
|
669
|
+
<span class="method-name">cmd_get_hosts</span><span
|
|
670
|
+
class="method-args">(argv)</span>
|
|
671
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
672
|
+
|
|
673
|
+
</div>
|
|
674
|
+
|
|
675
|
+
<div class="method-description">
|
|
676
|
+
|
|
677
|
+
<p>
|
|
678
|
+
returns array of host hashmaps, e.g.
|
|
679
|
+
</p>
|
|
680
|
+
<dl>
|
|
681
|
+
<dt>{“role”=>“192.168.30.188 (A1.V4)”, “roleId”=>“host_0“, “layer”=>“v4”}, {“role”=>“192.168.30.9 (dell-eth1.V4)”, “roleId”=>“host_1“, “layer”=>“v4”}</dt><dd></dd>
|
|
682
|
+
</dl>
|
|
683
|
+
<p>
|
|
684
|
+
NOTE: the values of ‘roleId’ are what are passed to set_hosts
|
|
685
|
+
as ‘roles’, not ‘role’
|
|
686
|
+
</p>
|
|
687
|
+
<pre>
|
|
688
|
+
* argv = command-line arguments</pre>
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
<div class="method-source-code"
|
|
693
|
+
id="cmd-get-hosts-source">
|
|
694
|
+
<pre>
|
|
695
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_ddt.rb, line 113</span>
|
|
696
|
+
113: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_get_hosts</span> <span class="ruby-identifier">argv</span>
|
|
697
|
+
114: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
698
|
+
115: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">get_hosts</span>
|
|
699
|
+
116: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
700
|
+
117: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
701
|
+
118: <span class="ruby-keyword kw">end</span></pre>
|
|
702
|
+
</div>
|
|
703
|
+
|
|
704
|
+
</div>
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
</div>
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
<div id="cmd-get-options-method" class="method-detail ">
|
|
713
|
+
<a name="method-i-cmd_get_options"></a>
|
|
714
|
+
|
|
715
|
+
<div class="method-heading">
|
|
716
|
+
|
|
717
|
+
<span class="method-name">cmd_get_options</span><span
|
|
718
|
+
class="method-args">(argv)</span>
|
|
719
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
720
|
+
|
|
721
|
+
</div>
|
|
722
|
+
|
|
723
|
+
<div class="method-description">
|
|
724
|
+
|
|
725
|
+
<p>
|
|
726
|
+
returns array of options hashmap, consisting of name and value keys, e.g.
|
|
727
|
+
</p>
|
|
728
|
+
<dl>
|
|
729
|
+
<dt>{“name”=>“io.timeout“, “value”=>250}, {“name”=>“io.delay“, “value”=>0}</dt><dd><ul>
|
|
730
|
+
<li><p>
|
|
731
|
+
argv = command-line arguments
|
|
732
|
+
</p>
|
|
733
|
+
</li>
|
|
734
|
+
</ul>
|
|
735
|
+
</dd>
|
|
736
|
+
</dl>
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
<div class="method-source-code"
|
|
741
|
+
id="cmd-get-options-source">
|
|
742
|
+
<pre>
|
|
743
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_ddt.rb, line 193</span>
|
|
744
|
+
193: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_get_options</span> <span class="ruby-identifier">argv</span>
|
|
745
|
+
194: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
746
|
+
195: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">get_options</span>
|
|
747
|
+
196: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
748
|
+
197: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
749
|
+
198: <span class="ruby-keyword kw">end</span></pre>
|
|
750
|
+
</div>
|
|
751
|
+
|
|
752
|
+
</div>
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
</div>
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
<div id="cmd-get-sessions-method" class="method-detail ">
|
|
761
|
+
<a name="method-i-cmd_get_sessions"></a>
|
|
762
|
+
|
|
763
|
+
<div class="method-heading">
|
|
764
|
+
|
|
765
|
+
<span class="method-name">cmd_get_sessions</span><span
|
|
766
|
+
class="method-args">(argv)</span>
|
|
767
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
768
|
+
|
|
769
|
+
</div>
|
|
770
|
+
|
|
771
|
+
<div class="method-description">
|
|
772
|
+
|
|
773
|
+
<p>
|
|
774
|
+
returns an array of current Studio Verify session id’s
|
|
775
|
+
</p>
|
|
776
|
+
<pre>
|
|
777
|
+
* argv = command-line arguments</pre>
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
<div class="method-source-code"
|
|
782
|
+
id="cmd-get-sessions-source">
|
|
783
|
+
<pre>
|
|
784
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_ddt.rb, line 56</span>
|
|
785
|
+
56: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_get_sessions</span> <span class="ruby-identifier">argv</span>
|
|
786
|
+
57: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
787
|
+
58: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">get_sessions</span>
|
|
788
|
+
59: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
789
|
+
60: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
790
|
+
61: <span class="ruby-keyword kw">end</span></pre>
|
|
791
|
+
</div>
|
|
792
|
+
|
|
793
|
+
</div>
|
|
794
|
+
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
|
|
798
|
+
</div>
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
<div id="cmd-get-testset-results-method" class="method-detail ">
|
|
802
|
+
<a name="method-i-cmd_get_testset_results"></a>
|
|
803
|
+
|
|
804
|
+
<div class="method-heading">
|
|
805
|
+
|
|
806
|
+
<span class="method-name">cmd_get_testset_results</span><span
|
|
807
|
+
class="method-args">(argv)</span>
|
|
808
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
809
|
+
|
|
810
|
+
</div>
|
|
811
|
+
|
|
812
|
+
<div class="method-description">
|
|
813
|
+
|
|
814
|
+
<p>
|
|
815
|
+
returns results from the current testset. can be called repeatedly during a
|
|
816
|
+
test run. the end of a test is indicated by the presence of the word
|
|
817
|
+
‘END’ in the returned results array
|
|
818
|
+
</p>
|
|
819
|
+
<pre>
|
|
820
|
+
* argv = command-line arguments</pre>
|
|
821
|
+
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
<div class="method-source-code"
|
|
825
|
+
id="cmd-get-testset-results-source">
|
|
826
|
+
<pre>
|
|
827
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_ddt.rb, line 239</span>
|
|
828
|
+
239: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_get_testset_results</span> <span class="ruby-identifier">argv</span>
|
|
829
|
+
240: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
830
|
+
241: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">get_testset_results</span>
|
|
831
|
+
242: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
832
|
+
243: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
833
|
+
244: <span class="ruby-keyword kw">end</span></pre>
|
|
834
|
+
</div>
|
|
835
|
+
|
|
836
|
+
</div>
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
</div>
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
<div id="cmd-get-testset-status-method" class="method-detail ">
|
|
845
|
+
<a name="method-i-cmd_get_testset_status"></a>
|
|
846
|
+
|
|
847
|
+
<div class="method-heading">
|
|
848
|
+
|
|
849
|
+
<span class="method-name">cmd_get_testset_status</span><span
|
|
850
|
+
class="method-args">(argv)</span>
|
|
851
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
852
|
+
|
|
853
|
+
</div>
|
|
854
|
+
|
|
855
|
+
<div class="method-description">
|
|
856
|
+
|
|
857
|
+
<p>
|
|
858
|
+
returns the status of the current testset
|
|
859
|
+
</p>
|
|
860
|
+
<pre>
|
|
861
|
+
* argv = command-line arguments</pre>
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
|
|
865
|
+
<div class="method-source-code"
|
|
866
|
+
id="cmd-get-testset-status-source">
|
|
867
|
+
<pre>
|
|
868
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_ddt.rb, line 229</span>
|
|
869
|
+
229: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_get_testset_status</span> <span class="ruby-identifier">argv</span>
|
|
870
|
+
230: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
871
|
+
231: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">get_testset_status</span>
|
|
872
|
+
232: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
873
|
+
233: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
874
|
+
234: <span class="ruby-keyword kw">end</span></pre>
|
|
875
|
+
</div>
|
|
876
|
+
|
|
877
|
+
</div>
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
</div>
|
|
883
|
+
|
|
884
|
+
|
|
885
|
+
<div id="cmd-help-method" class="method-detail ">
|
|
886
|
+
<a name="method-i-cmd_help"></a>
|
|
887
|
+
|
|
888
|
+
<div class="method-heading">
|
|
889
|
+
|
|
890
|
+
<span class="method-name">cmd_help</span><span
|
|
891
|
+
class="method-args">(argv)</span>
|
|
892
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
893
|
+
|
|
894
|
+
</div>
|
|
895
|
+
|
|
896
|
+
<div class="method-description">
|
|
897
|
+
|
|
898
|
+
<p>
|
|
899
|
+
displays command-line help
|
|
900
|
+
</p>
|
|
901
|
+
<pre>
|
|
902
|
+
* argv = command-line arguments</pre>
|
|
903
|
+
|
|
904
|
+
|
|
905
|
+
|
|
906
|
+
<div class="method-source-code"
|
|
907
|
+
id="cmd-help-source">
|
|
908
|
+
<pre>
|
|
909
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_ddt.rb, line 13</span>
|
|
910
|
+
13: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_help</span> <span class="ruby-identifier">argv</span>
|
|
911
|
+
14: <span class="ruby-identifier">help</span>
|
|
912
|
+
15: <span class="ruby-keyword kw">end</span></pre>
|
|
913
|
+
</div>
|
|
914
|
+
|
|
915
|
+
</div>
|
|
916
|
+
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
|
|
920
|
+
</div>
|
|
921
|
+
|
|
922
|
+
|
|
923
|
+
<div id="cmd-load-scenario-method" class="method-detail ">
|
|
924
|
+
<a name="method-i-cmd_load_scenario"></a>
|
|
925
|
+
|
|
926
|
+
<div class="method-heading">
|
|
927
|
+
|
|
928
|
+
<span class="method-name">cmd_load_scenario</span><span
|
|
929
|
+
class="method-args">(argv)</span>
|
|
930
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
931
|
+
|
|
932
|
+
</div>
|
|
933
|
+
|
|
934
|
+
<div class="method-description">
|
|
935
|
+
|
|
936
|
+
<p>
|
|
937
|
+
loads a <a href="../../Mu.html">Mu</a> Studio scenario
|
|
938
|
+
</p>
|
|
939
|
+
<pre>
|
|
940
|
+
* argv = command-line arguments, requires the uuid (-u) argument, the uuid of a scenario that is already loaded on the Mu</pre>
|
|
941
|
+
|
|
942
|
+
|
|
943
|
+
|
|
944
|
+
<div class="method-source-code"
|
|
945
|
+
id="cmd-load-scenario-source">
|
|
946
|
+
<pre>
|
|
947
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_ddt.rb, line 101</span>
|
|
948
|
+
101: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_load_scenario</span> <span class="ruby-identifier">argv</span>
|
|
949
|
+
102: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
950
|
+
103: <span class="ruby-identifier">uuid</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>]
|
|
951
|
+
104: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">load_scenario</span>(<span class="ruby-identifier">uuid</span>)
|
|
952
|
+
105: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
953
|
+
106: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
954
|
+
107: <span class="ruby-keyword kw">end</span></pre>
|
|
955
|
+
</div>
|
|
956
|
+
|
|
957
|
+
</div>
|
|
958
|
+
|
|
959
|
+
|
|
960
|
+
|
|
961
|
+
|
|
962
|
+
</div>
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
<div id="cmd-new-session-method" class="method-detail ">
|
|
966
|
+
<a name="method-i-cmd_new_session"></a>
|
|
967
|
+
|
|
968
|
+
<div class="method-heading">
|
|
969
|
+
|
|
970
|
+
<span class="method-name">cmd_new_session</span><span
|
|
971
|
+
class="method-args">(argv)</span>
|
|
972
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
973
|
+
|
|
974
|
+
</div>
|
|
975
|
+
|
|
976
|
+
<div class="method-description">
|
|
977
|
+
|
|
978
|
+
<p>
|
|
979
|
+
creates a new Studio Verify session
|
|
980
|
+
</p>
|
|
981
|
+
<pre>
|
|
982
|
+
* argv = command-line arguments</pre>
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
<div class="method-source-code"
|
|
987
|
+
id="cmd-new-session-source">
|
|
988
|
+
<pre>
|
|
989
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_ddt.rb, line 38</span>
|
|
990
|
+
38: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_new_session</span> <span class="ruby-identifier">argv</span>
|
|
991
|
+
39: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
992
|
+
40: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">new_session</span>
|
|
993
|
+
41: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
994
|
+
42: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
995
|
+
43: <span class="ruby-keyword kw">end</span></pre>
|
|
996
|
+
</div>
|
|
997
|
+
|
|
998
|
+
</div>
|
|
999
|
+
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
|
|
1003
|
+
</div>
|
|
1004
|
+
|
|
1005
|
+
|
|
1006
|
+
<div id="cmd-run-method" class="method-detail ">
|
|
1007
|
+
<a name="method-i-cmd_run"></a>
|
|
1008
|
+
|
|
1009
|
+
<div class="method-heading">
|
|
1010
|
+
|
|
1011
|
+
<span class="method-name">cmd_run</span><span
|
|
1012
|
+
class="method-args">(argv)</span>
|
|
1013
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1014
|
+
|
|
1015
|
+
</div>
|
|
1016
|
+
|
|
1017
|
+
<div class="method-description">
|
|
1018
|
+
|
|
1019
|
+
<p>
|
|
1020
|
+
verifies the loaded scenario
|
|
1021
|
+
</p>
|
|
1022
|
+
<ul>
|
|
1023
|
+
<li><p>
|
|
1024
|
+
argv = command-line arguments
|
|
1025
|
+
</p>
|
|
1026
|
+
</li>
|
|
1027
|
+
</ul>
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
<div class="method-source-code"
|
|
1032
|
+
id="cmd-run-source">
|
|
1033
|
+
<pre>
|
|
1034
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_ddt.rb, line 19</span>
|
|
1035
|
+
19: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_run</span> <span class="ruby-identifier">argv</span>
|
|
1036
|
+
20: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
1037
|
+
21: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">run</span>
|
|
1038
|
+
22: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
1039
|
+
23: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
1040
|
+
24: <span class="ruby-keyword kw">end</span></pre>
|
|
1041
|
+
</div>
|
|
1042
|
+
|
|
1043
|
+
</div>
|
|
1044
|
+
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
|
|
1048
|
+
</div>
|
|
1049
|
+
|
|
1050
|
+
|
|
1051
|
+
<div id="cmd-run-testset-method" class="method-detail ">
|
|
1052
|
+
<a name="method-i-cmd_run_testset"></a>
|
|
1053
|
+
|
|
1054
|
+
<div class="method-heading">
|
|
1055
|
+
|
|
1056
|
+
<span class="method-name">cmd_run_testset</span><span
|
|
1057
|
+
class="method-args">(argv)</span>
|
|
1058
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1059
|
+
|
|
1060
|
+
</div>
|
|
1061
|
+
|
|
1062
|
+
<div class="method-description">
|
|
1063
|
+
|
|
1064
|
+
<p>
|
|
1065
|
+
runs the loaded scenario and testset
|
|
1066
|
+
</p>
|
|
1067
|
+
<pre>
|
|
1068
|
+
* argv = command-line arguments, requires a uuid (-u) argument</pre>
|
|
1069
|
+
|
|
1070
|
+
|
|
1071
|
+
|
|
1072
|
+
<div class="method-source-code"
|
|
1073
|
+
id="cmd-run-testset-source">
|
|
1074
|
+
<pre>
|
|
1075
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_ddt.rb, line 28</span>
|
|
1076
|
+
28: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_run_testset</span> <span class="ruby-identifier">argv</span>
|
|
1077
|
+
29: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
1078
|
+
30: <span class="ruby-identifier">uuid</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>]
|
|
1079
|
+
31: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">run_testset</span>(<span class="ruby-identifier">uuid</span>)
|
|
1080
|
+
32: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
1081
|
+
33: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
1082
|
+
34: <span class="ruby-keyword kw">end</span></pre>
|
|
1083
|
+
</div>
|
|
1084
|
+
|
|
1085
|
+
</div>
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
|
|
1090
|
+
</div>
|
|
1091
|
+
|
|
1092
|
+
|
|
1093
|
+
<div id="cmd-set-channels-method" class="method-detail ">
|
|
1094
|
+
<a name="method-i-cmd_set_channels"></a>
|
|
1095
|
+
|
|
1096
|
+
<div class="method-heading">
|
|
1097
|
+
|
|
1098
|
+
<span class="method-name">cmd_set_channels</span><span
|
|
1099
|
+
class="method-args">(argv)</span>
|
|
1100
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1101
|
+
|
|
1102
|
+
</div>
|
|
1103
|
+
|
|
1104
|
+
<div class="method-description">
|
|
1105
|
+
|
|
1106
|
+
<p>
|
|
1107
|
+
sets the channel elements of a loaded scenario
|
|
1108
|
+
</p>
|
|
1109
|
+
<pre>
|
|
1110
|
+
* argv = command-line arguments, requires arrays of roles and names. The roles must all be 'channel' and the names are names of valid hosts
|
|
1111
|
+
* roles and names can be single-values or comma-separated lists.</pre>
|
|
1112
|
+
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
<div class="method-source-code"
|
|
1116
|
+
id="cmd-set-channels-source">
|
|
1117
|
+
<pre>
|
|
1118
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_ddt.rb, line 166</span>
|
|
1119
|
+
166: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_set_channels</span> <span class="ruby-identifier">argv</span>
|
|
1120
|
+
167: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
1121
|
+
168: <span class="ruby-identifier">roles</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'roles'</span>]
|
|
1122
|
+
169: <span class="ruby-identifier">names</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'names'</span>]
|
|
1123
|
+
170:
|
|
1124
|
+
171: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">names</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">","</span>)
|
|
1125
|
+
172: <span class="ruby-identifier">names_array</span> = <span class="ruby-identifier">names</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">","</span>)
|
|
1126
|
+
173: <span class="ruby-keyword kw">else</span>
|
|
1127
|
+
174: <span class="ruby-identifier">names_array</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
|
1128
|
+
175: <span class="ruby-identifier">names_array</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">names</span>
|
|
1129
|
+
176: <span class="ruby-keyword kw">end</span>
|
|
1130
|
+
177:
|
|
1131
|
+
178: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">roles</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">","</span>)
|
|
1132
|
+
179: <span class="ruby-identifier">roles_array</span> = <span class="ruby-identifier">roles</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">","</span>)
|
|
1133
|
+
180: <span class="ruby-keyword kw">else</span>
|
|
1134
|
+
181: <span class="ruby-identifier">roles_array</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
|
1135
|
+
182: <span class="ruby-identifier">roles_array</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">roles</span>
|
|
1136
|
+
183: <span class="ruby-keyword kw">end</span>
|
|
1137
|
+
184:
|
|
1138
|
+
185: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">set_channels</span>(<span class="ruby-identifier">roles_array</span>, <span class="ruby-identifier">names_array</span>)
|
|
1139
|
+
186: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
1140
|
+
187: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
1141
|
+
188: <span class="ruby-keyword kw">end</span></pre>
|
|
1142
|
+
</div>
|
|
1143
|
+
|
|
1144
|
+
</div>
|
|
1145
|
+
|
|
1146
|
+
|
|
1147
|
+
|
|
1148
|
+
|
|
1149
|
+
</div>
|
|
1150
|
+
|
|
1151
|
+
|
|
1152
|
+
<div id="cmd-set-hosts-method" class="method-detail ">
|
|
1153
|
+
<a name="method-i-cmd_set_hosts"></a>
|
|
1154
|
+
|
|
1155
|
+
<div class="method-heading">
|
|
1156
|
+
|
|
1157
|
+
<span class="method-name">cmd_set_hosts</span><span
|
|
1158
|
+
class="method-args">(argv)</span>
|
|
1159
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1160
|
+
|
|
1161
|
+
</div>
|
|
1162
|
+
|
|
1163
|
+
<div class="method-description">
|
|
1164
|
+
|
|
1165
|
+
<p>
|
|
1166
|
+
sets a <a href="../../Mu.html">Mu</a> Studio scenario’s host. takes
|
|
1167
|
+
an arrays of roles and names, e.g. [“h1”, “h2”],
|
|
1168
|
+
[“a1”, dell-9”] optional types array [“v4”,
|
|
1169
|
+
“v4”]
|
|
1170
|
+
</p>
|
|
1171
|
+
<pre>
|
|
1172
|
+
* argv = command-line arguments, requires an array of roles and names (and optionally, type). The roles must match those defined within the scenario
|
|
1173
|
+
* roles and names can be single-values or comma-separated lists.
|
|
1174
|
+
* type is a single value (v4, v6 or l2)</pre>
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
|
|
1178
|
+
<div class="method-source-code"
|
|
1179
|
+
id="cmd-set-hosts-source">
|
|
1180
|
+
<pre>
|
|
1181
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_ddt.rb, line 125</span>
|
|
1182
|
+
125: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_set_hosts</span> <span class="ruby-identifier">argv</span>
|
|
1183
|
+
126: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
1184
|
+
127: <span class="ruby-identifier">roles</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'roles'</span>]
|
|
1185
|
+
128: <span class="ruby-identifier">names</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'names'</span>]
|
|
1186
|
+
129: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'type'</span>].<span class="ruby-identifier">nil?</span>
|
|
1187
|
+
130: <span class="ruby-identifier">type</span> = <span class="ruby-value str">"v4"</span>
|
|
1188
|
+
131: <span class="ruby-keyword kw">else</span>
|
|
1189
|
+
132: <span class="ruby-identifier">type</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'type'</span>]
|
|
1190
|
+
133: <span class="ruby-keyword kw">end</span>
|
|
1191
|
+
134:
|
|
1192
|
+
135: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">names</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">","</span>)
|
|
1193
|
+
136: <span class="ruby-identifier">names_array</span> = <span class="ruby-identifier">names</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">","</span>)
|
|
1194
|
+
137: <span class="ruby-keyword kw">else</span>
|
|
1195
|
+
138: <span class="ruby-identifier">names_array</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
|
1196
|
+
139: <span class="ruby-identifier">names_array</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">names</span>
|
|
1197
|
+
140: <span class="ruby-keyword kw">end</span>
|
|
1198
|
+
141:
|
|
1199
|
+
142: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">roles</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">","</span>)
|
|
1200
|
+
143: <span class="ruby-identifier">roles_array</span> = <span class="ruby-identifier">roles</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">","</span>)
|
|
1201
|
+
144: <span class="ruby-keyword kw">else</span>
|
|
1202
|
+
145: <span class="ruby-identifier">roles_array</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
|
1203
|
+
146: <span class="ruby-identifier">roles_array</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">roles</span>
|
|
1204
|
+
147: <span class="ruby-keyword kw">end</span>
|
|
1205
|
+
148:
|
|
1206
|
+
149: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">set_hosts</span>(<span class="ruby-identifier">roles_array</span>, <span class="ruby-identifier">names_array</span>, <span class="ruby-identifier">type</span>)
|
|
1207
|
+
150: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
1208
|
+
151: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
1209
|
+
152: <span class="ruby-keyword kw">end</span></pre>
|
|
1210
|
+
</div>
|
|
1211
|
+
|
|
1212
|
+
</div>
|
|
1213
|
+
|
|
1214
|
+
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
</div>
|
|
1218
|
+
|
|
1219
|
+
|
|
1220
|
+
<div id="cmd-set-options-method" class="method-detail ">
|
|
1221
|
+
<a name="method-i-cmd_set_options"></a>
|
|
1222
|
+
|
|
1223
|
+
<div class="method-heading">
|
|
1224
|
+
|
|
1225
|
+
<span class="method-name">cmd_set_options</span><span
|
|
1226
|
+
class="method-args">(argv)</span>
|
|
1227
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1228
|
+
|
|
1229
|
+
</div>
|
|
1230
|
+
|
|
1231
|
+
<div class="method-description">
|
|
1232
|
+
|
|
1233
|
+
<p>
|
|
1234
|
+
sets the options of the loaded scenario
|
|
1235
|
+
</p>
|
|
1236
|
+
<pre>
|
|
1237
|
+
* argv = command-line arguments, requires arrays of valid options names and values
|
|
1238
|
+
* names and values can be single-values or comma-separated lists.</pre>
|
|
1239
|
+
|
|
1240
|
+
|
|
1241
|
+
|
|
1242
|
+
<div class="method-source-code"
|
|
1243
|
+
id="cmd-set-options-source">
|
|
1244
|
+
<pre>
|
|
1245
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_ddt.rb, line 203</span>
|
|
1246
|
+
203: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_set_options</span> <span class="ruby-identifier">argv</span>
|
|
1247
|
+
204: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
1248
|
+
205: <span class="ruby-identifier">names</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'names'</span>]
|
|
1249
|
+
206: <span class="ruby-identifier">values</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'option_values'</span>]
|
|
1250
|
+
207:
|
|
1251
|
+
208: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">names</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">","</span>)
|
|
1252
|
+
209: <span class="ruby-identifier">names_array</span> = <span class="ruby-identifier">names</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">","</span>)
|
|
1253
|
+
210: <span class="ruby-keyword kw">else</span>
|
|
1254
|
+
211: <span class="ruby-identifier">names_array</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
|
1255
|
+
212: <span class="ruby-identifier">names_array</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">names</span>
|
|
1256
|
+
213: <span class="ruby-keyword kw">end</span>
|
|
1257
|
+
214:
|
|
1258
|
+
215: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">values</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">","</span>)
|
|
1259
|
+
216: <span class="ruby-identifier">values_array</span> = <span class="ruby-identifier">values</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">","</span>)
|
|
1260
|
+
217: <span class="ruby-keyword kw">else</span>
|
|
1261
|
+
218: <span class="ruby-identifier">values_array</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
|
1262
|
+
219: <span class="ruby-identifier">values_array</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">values</span>
|
|
1263
|
+
220: <span class="ruby-keyword kw">end</span>
|
|
1264
|
+
221:
|
|
1265
|
+
222: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">set_options</span>(<span class="ruby-identifier">names_array</span>, <span class="ruby-identifier">values_array</span>)
|
|
1266
|
+
223: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
1267
|
+
224: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
1268
|
+
225: <span class="ruby-keyword kw">end</span></pre>
|
|
1269
|
+
</div>
|
|
1270
|
+
|
|
1271
|
+
</div>
|
|
1272
|
+
|
|
1273
|
+
|
|
1274
|
+
|
|
1275
|
+
|
|
1276
|
+
</div>
|
|
1277
|
+
|
|
1278
|
+
|
|
1279
|
+
<div id="cmd-setup-test-method" class="method-detail ">
|
|
1280
|
+
<a name="method-i-cmd_setup_test"></a>
|
|
1281
|
+
|
|
1282
|
+
<div class="method-heading">
|
|
1283
|
+
|
|
1284
|
+
<span class="method-name">cmd_setup_test</span><span
|
|
1285
|
+
class="method-args">(argv)</span>
|
|
1286
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1287
|
+
|
|
1288
|
+
</div>
|
|
1289
|
+
|
|
1290
|
+
<div class="method-description">
|
|
1291
|
+
|
|
1292
|
+
<p>
|
|
1293
|
+
sets up a test session
|
|
1294
|
+
</p>
|
|
1295
|
+
<pre>
|
|
1296
|
+
* argv = command-line arguments</pre>
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
|
|
1300
|
+
<div class="method-source-code"
|
|
1301
|
+
id="cmd-setup-test-source">
|
|
1302
|
+
<pre>
|
|
1303
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_ddt.rb, line 83</span>
|
|
1304
|
+
83: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_setup_test</span> <span class="ruby-identifier">argv</span>
|
|
1305
|
+
84: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
1306
|
+
85: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">setup_test</span>
|
|
1307
|
+
86: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
1308
|
+
87: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
1309
|
+
88: <span class="ruby-keyword kw">end</span></pre>
|
|
1310
|
+
</div>
|
|
1311
|
+
|
|
1312
|
+
</div>
|
|
1313
|
+
|
|
1314
|
+
|
|
1315
|
+
|
|
1316
|
+
|
|
1317
|
+
</div>
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
<div id="cmd-teardown-test-method" class="method-detail ">
|
|
1321
|
+
<a name="method-i-cmd_teardown_test"></a>
|
|
1322
|
+
|
|
1323
|
+
<div class="method-heading">
|
|
1324
|
+
|
|
1325
|
+
<span class="method-name">cmd_teardown_test</span><span
|
|
1326
|
+
class="method-args">(argv)</span>
|
|
1327
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1328
|
+
|
|
1329
|
+
</div>
|
|
1330
|
+
|
|
1331
|
+
<div class="method-description">
|
|
1332
|
+
|
|
1333
|
+
<p>
|
|
1334
|
+
tears down a test session
|
|
1335
|
+
</p>
|
|
1336
|
+
<pre>
|
|
1337
|
+
* argv = command-line arguments</pre>
|
|
1338
|
+
|
|
1339
|
+
|
|
1340
|
+
|
|
1341
|
+
<div class="method-source-code"
|
|
1342
|
+
id="cmd-teardown-test-source">
|
|
1343
|
+
<pre>
|
|
1344
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_ddt.rb, line 92</span>
|
|
1345
|
+
92: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_teardown_test</span> <span class="ruby-identifier">argv</span>
|
|
1346
|
+
93: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
1347
|
+
94: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">teardown_test</span>
|
|
1348
|
+
95: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
1349
|
+
96: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
1350
|
+
97: <span class="ruby-keyword kw">end</span></pre>
|
|
1351
|
+
</div>
|
|
1352
|
+
|
|
1353
|
+
</div>
|
|
1354
|
+
|
|
1355
|
+
|
|
1356
|
+
|
|
1357
|
+
|
|
1358
|
+
</div>
|
|
1359
|
+
|
|
1360
|
+
|
|
1361
|
+
</div>
|
|
1362
|
+
|
|
1363
|
+
<div id="private-instance-method-details" class="method-section section">
|
|
1364
|
+
<h3 class="section-header">Private Instance Methods</h3>
|
|
1365
|
+
|
|
1366
|
+
|
|
1367
|
+
<div id="help-method" class="method-detail ">
|
|
1368
|
+
<a name="method-i-help"></a>
|
|
1369
|
+
|
|
1370
|
+
<div class="method-heading">
|
|
1371
|
+
|
|
1372
|
+
<span class="method-name">help</span><span
|
|
1373
|
+
class="method-args">()</span>
|
|
1374
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1375
|
+
|
|
1376
|
+
</div>
|
|
1377
|
+
|
|
1378
|
+
<div class="method-description">
|
|
1379
|
+
|
|
1380
|
+
|
|
1381
|
+
|
|
1382
|
+
|
|
1383
|
+
|
|
1384
|
+
<div class="method-source-code"
|
|
1385
|
+
id="help-source">
|
|
1386
|
+
<pre>
|
|
1387
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_ddt.rb, line 362</span>
|
|
1388
|
+
362: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">help</span>
|
|
1389
|
+
363: <span class="ruby-identifier">helps</span> = [
|
|
1390
|
+
364: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-h'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--help'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">''</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'help on command line options'</span> },
|
|
1391
|
+
365: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-m'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--mu_string'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'user, password, mu_ip in the form of admin:admin@10.9.8.7'</span> },
|
|
1392
|
+
366: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-n'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--names'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'comma-separated list of names used for set_hosts and set_channels'</span> },
|
|
1393
|
+
367: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-o'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--output'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'output logging to this file'</span> },
|
|
1394
|
+
368: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-p'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--option_values'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'coma-separated list of values array used for set_options'</span> },
|
|
1395
|
+
369: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-r'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--roles'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'comma-separated list of roles used for set_hosts and set_channels'</span> },
|
|
1396
|
+
370: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-t'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--testset'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'csv testset for import'</span> },
|
|
1397
|
+
371: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-u'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--uuid'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'uuid arg used for load_scenario and run_testset'</span> },
|
|
1398
|
+
372: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-v'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--verbose'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">''</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'set Logger::DEBUG level'</span> },
|
|
1399
|
+
373: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-y'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--type'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'network layer (v4, b6, l2) used for set_hosts and set_channels'</span> },
|
|
1400
|
+
374: ]
|
|
1401
|
+
375:
|
|
1402
|
+
376: <span class="ruby-identifier">cmds</span> = [
|
|
1403
|
+
377: <span class="ruby-value str">"mu cmd_ddt:display_results"</span>,
|
|
1404
|
+
378: <span class="ruby-value str">"mu cmd_ddt:new_session"</span>,
|
|
1405
|
+
379: <span class="ruby-value str">"mu cmd_ddt:load_scenario -u <uuid>"</span>,
|
|
1406
|
+
380: <span class="ruby-value str">"mu cmd_ddt:get_hosts"</span>,
|
|
1407
|
+
381: <span class="ruby-value str">"mu cmd_ddt:set_hosts -r <roles> -n <names> -y <type>"</span>,
|
|
1408
|
+
382: <span class="ruby-value str">"mu cmd_ddt:get_channels"</span>,
|
|
1409
|
+
383: <span class="ruby-value str">"mu cmd_ddt:set_channels -r <roles> -n <names>"</span>,
|
|
1410
|
+
384: <span class="ruby-value str">"mu cmd_ddt:get_options"</span>,
|
|
1411
|
+
385: <span class="ruby-value str">"mu cmd_ddt:set_options -n <names> -p <option values>"</span>,
|
|
1412
|
+
386: <span class="ruby-value str">"mu cmd_ddt:get_sessions"</span>,
|
|
1413
|
+
387: <span class="ruby-value str">"mu cmd_ddt:setup_test"</span>,
|
|
1414
|
+
388: <span class="ruby-value str">"mu cmd_ddt:run"</span>,
|
|
1415
|
+
389: <span class="ruby-value str">"mu cmd_ddt:run_testset -u <uuid>"</span>,
|
|
1416
|
+
390: <span class="ruby-value str">"mu cmd_ddt:get_testset_results"</span>,
|
|
1417
|
+
391: <span class="ruby-value str">"mu cmd_ddt:get_testset_status"</span>,
|
|
1418
|
+
392: <span class="ruby-value str">"mu cmd_ddt:teardown_test"</span>,
|
|
1419
|
+
393: <span class="ruby-value str">"mu cmd_ddt:close_session"</span>,
|
|
1420
|
+
394: <span class="ruby-value str">"mu cmd_ddt:close_all_sessions"</span>,
|
|
1421
|
+
395: <span class="ruby-value str">"mu cmd_ddt:csv_export -u <uuid> "</span>,
|
|
1422
|
+
396: <span class="ruby-value str">"mu cmd_ddt:csv_import -t <testset(csv file)> "</span>
|
|
1423
|
+
397: ]
|
|
1424
|
+
398:
|
|
1425
|
+
399: <span class="ruby-identifier">max_long_size</span> = <span class="ruby-identifier">helps</span>.<span class="ruby-identifier">inject</span>(<span class="ruby-value">0</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">memo</span>, <span class="ruby-identifier">obj</span><span class="ruby-operator">|</span> [ <span class="ruby-identifier">obj</span>[<span class="ruby-value">:long</span>].<span class="ruby-identifier">size</span>, <span class="ruby-identifier">memo</span> ].<span class="ruby-identifier">max</span> }
|
|
1426
|
+
400: <span class="ruby-identifier">max_value_size</span> = <span class="ruby-identifier">helps</span>.<span class="ruby-identifier">inject</span>(<span class="ruby-value">0</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">memo</span>, <span class="ruby-identifier">obj</span><span class="ruby-operator">|</span> [ <span class="ruby-identifier">obj</span>[<span class="ruby-value">:value</span>].<span class="ruby-identifier">size</span>, <span class="ruby-identifier">memo</span> ].<span class="ruby-identifier">max</span> }
|
|
1427
|
+
401: <span class="ruby-identifier">puts</span>
|
|
1428
|
+
402: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"Usage: mu cmd_ddt:<command> <options>"</span>
|
|
1429
|
+
403: <span class="ruby-identifier">puts</span>
|
|
1430
|
+
404: <span class="ruby-identifier">helps</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">h</span><span class="ruby-operator">|</span>
|
|
1431
|
+
405: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"%-*s %*s %-*s %s"</span> <span class="ruby-operator">%</span> [<span class="ruby-identifier">max_long_size</span>, <span class="ruby-identifier">h</span>[<span class="ruby-value">:long</span>], <span class="ruby-value">2</span>, <span class="ruby-identifier">h</span>[<span class="ruby-value">:short</span>], <span class="ruby-identifier">max_value_size</span>, <span class="ruby-identifier">h</span>[<span class="ruby-value">:value</span>], <span class="ruby-identifier">h</span>[<span class="ruby-value">:help</span>]]
|
|
1432
|
+
406: <span class="ruby-keyword kw">end</span>
|
|
1433
|
+
407: <span class="ruby-identifier">puts</span>
|
|
1434
|
+
408: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"Available Commands"</span>
|
|
1435
|
+
409: <span class="ruby-identifier">puts</span>
|
|
1436
|
+
410: <span class="ruby-identifier">cmds</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">c</span> <span class="ruby-operator">|</span>
|
|
1437
|
+
411: <span class="ruby-identifier">puts</span> <span class="ruby-identifier">c</span>
|
|
1438
|
+
412: <span class="ruby-keyword kw">end</span>
|
|
1439
|
+
413: <span class="ruby-identifier">puts</span>
|
|
1440
|
+
414: <span class="ruby-keyword kw">end</span></pre>
|
|
1441
|
+
</div>
|
|
1442
|
+
|
|
1443
|
+
</div>
|
|
1444
|
+
|
|
1445
|
+
|
|
1446
|
+
|
|
1447
|
+
|
|
1448
|
+
</div>
|
|
1449
|
+
|
|
1450
|
+
|
|
1451
|
+
<div id="parse-cli-method" class="method-detail ">
|
|
1452
|
+
<a name="method-i-parse_cli"></a>
|
|
1453
|
+
|
|
1454
|
+
<div class="method-heading">
|
|
1455
|
+
|
|
1456
|
+
<span class="method-name">parse_cli</span><span
|
|
1457
|
+
class="method-args">(argv)</span>
|
|
1458
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1459
|
+
|
|
1460
|
+
</div>
|
|
1461
|
+
|
|
1462
|
+
<div class="method-description">
|
|
1463
|
+
|
|
1464
|
+
|
|
1465
|
+
|
|
1466
|
+
|
|
1467
|
+
|
|
1468
|
+
<div class="method-source-code"
|
|
1469
|
+
id="parse-cli-source">
|
|
1470
|
+
<pre>
|
|
1471
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_ddt.rb, line 294</span>
|
|
1472
|
+
294: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_cli</span> <span class="ruby-identifier">argv</span>
|
|
1473
|
+
295: <span class="ruby-identifier">args</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
|
1474
|
+
296: <span class="ruby-ivar">@hash</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
|
|
1475
|
+
297: <span class="ruby-keyword kw">while</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">empty?</span>
|
|
1476
|
+
298: <span class="ruby-identifier">args</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">shift</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">first</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>] <span class="ruby-operator">!=</span> <span class="ruby-value str">'-'</span>
|
|
1477
|
+
299:
|
|
1478
|
+
300: <span class="ruby-identifier">k</span> = <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">shift</span>
|
|
1479
|
+
301:
|
|
1480
|
+
302: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-h'</span>, <span class="ruby-value str">'--help'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
1481
|
+
303: <span class="ruby-identifier">help</span>
|
|
1482
|
+
304: <span class="ruby-identifier">exit</span>
|
|
1483
|
+
305: <span class="ruby-keyword kw">end</span>
|
|
1484
|
+
306:
|
|
1485
|
+
307: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-m'</span>, <span class="ruby-value str">'--mu_string'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
1486
|
+
308: <span class="ruby-identifier">mu_string</span> = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
1487
|
+
309: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">mu_string</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/(.+?):(.+?)@(.*)/</span>
|
|
1488
|
+
310: <span class="ruby-identifier">@@mu_admin_user</span> = <span class="ruby-node">$1</span>
|
|
1489
|
+
311: <span class="ruby-identifier">@@mu_admin_pass</span> = <span class="ruby-node">$2</span>
|
|
1490
|
+
312: <span class="ruby-identifier">@@mu_ip</span> = <span class="ruby-node">$3</span>
|
|
1491
|
+
313: <span class="ruby-keyword kw">end</span>
|
|
1492
|
+
314: <span class="ruby-keyword kw">next</span>
|
|
1493
|
+
315: <span class="ruby-keyword kw">end</span>
|
|
1494
|
+
316:
|
|
1495
|
+
317: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-n'</span>, <span class="ruby-value str">'--names'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
1496
|
+
318: <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'names'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
1497
|
+
319: <span class="ruby-keyword kw">next</span>
|
|
1498
|
+
320: <span class="ruby-keyword kw">end</span>
|
|
1499
|
+
321:
|
|
1500
|
+
322: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-o'</span>, <span class="ruby-value str">'--output'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
1501
|
+
323: <span class="ruby-identifier">$stdout</span>.<span class="ruby-identifier">reopen</span>(<span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>), <span class="ruby-value str">"w"</span>)
|
|
1502
|
+
324: <span class="ruby-keyword kw">next</span>
|
|
1503
|
+
325: <span class="ruby-keyword kw">end</span>
|
|
1504
|
+
326:
|
|
1505
|
+
327: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-p'</span>, <span class="ruby-value str">'--option_values'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
1506
|
+
328: <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'option_values'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
1507
|
+
329: <span class="ruby-keyword kw">next</span>
|
|
1508
|
+
330: <span class="ruby-keyword kw">end</span>
|
|
1509
|
+
331:
|
|
1510
|
+
332: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-r'</span>, <span class="ruby-value str">'--roles'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
1511
|
+
333: <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'roles'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
1512
|
+
334: <span class="ruby-keyword kw">next</span>
|
|
1513
|
+
335: <span class="ruby-keyword kw">end</span>
|
|
1514
|
+
336:
|
|
1515
|
+
337: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-t'</span>, <span class="ruby-value str">'--testset'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
1516
|
+
338: <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'testset'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
1517
|
+
339: <span class="ruby-keyword kw">next</span>
|
|
1518
|
+
340: <span class="ruby-keyword kw">end</span>
|
|
1519
|
+
341:
|
|
1520
|
+
342: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-y'</span>, <span class="ruby-value str">'--type'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
1521
|
+
343: <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'type'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
1522
|
+
344: <span class="ruby-keyword kw">next</span>
|
|
1523
|
+
345: <span class="ruby-keyword kw">end</span>
|
|
1524
|
+
346:
|
|
1525
|
+
347: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-u'</span>, <span class="ruby-value str">'--uuid'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
1526
|
+
348: <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
1527
|
+
349: <span class="ruby-keyword kw">next</span>
|
|
1528
|
+
350: <span class="ruby-keyword kw">end</span>
|
|
1529
|
+
351:
|
|
1530
|
+
352: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-v'</span>, <span class="ruby-value str">'--verbose'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
1531
|
+
353: <span class="ruby-identifier">$log</span>.<span class="ruby-identifier">level</span> = <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
1532
|
+
354: <span class="ruby-keyword kw">next</span>
|
|
1533
|
+
355: <span class="ruby-keyword kw">end</span>
|
|
1534
|
+
356:
|
|
1535
|
+
357: <span class="ruby-keyword kw">end</span>
|
|
1536
|
+
358:
|
|
1537
|
+
359: <span class="ruby-identifier">args</span>
|
|
1538
|
+
360: <span class="ruby-keyword kw">end</span></pre>
|
|
1539
|
+
</div>
|
|
1540
|
+
|
|
1541
|
+
</div>
|
|
1542
|
+
|
|
1543
|
+
|
|
1544
|
+
|
|
1545
|
+
|
|
1546
|
+
</div>
|
|
1547
|
+
|
|
1548
|
+
|
|
1549
|
+
<div id="setup-method" class="method-detail ">
|
|
1550
|
+
<a name="method-i-setup"></a>
|
|
1551
|
+
|
|
1552
|
+
<div class="method-heading">
|
|
1553
|
+
|
|
1554
|
+
<span class="method-name">setup</span><span
|
|
1555
|
+
class="method-args">(argv)</span>
|
|
1556
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1557
|
+
|
|
1558
|
+
</div>
|
|
1559
|
+
|
|
1560
|
+
<div class="method-description">
|
|
1561
|
+
|
|
1562
|
+
|
|
1563
|
+
|
|
1564
|
+
|
|
1565
|
+
|
|
1566
|
+
<div class="method-source-code"
|
|
1567
|
+
id="setup-source">
|
|
1568
|
+
<pre>
|
|
1569
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_ddt.rb, line 281</span>
|
|
1570
|
+
281: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
1571
|
+
282: <span class="ruby-identifier">parse_cli</span> <span class="ruby-identifier">argv</span>
|
|
1572
|
+
283: <span class="ruby-ivar">@host</span> = (<span class="ruby-identifier">@@mu_ip</span>.<span class="ruby-identifier">nil?</span>) <span class="ruby-operator">?</span> <span class="ruby-value str">"127.0.0.1"</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">@@mu_ip</span>
|
|
1573
|
+
284: <span class="ruby-ivar">@username</span> = (<span class="ruby-identifier">@@mu_admin_user</span>.<span class="ruby-identifier">nil?</span>) <span class="ruby-operator">?</span> <span class="ruby-value str">"admin"</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">@@mu_admin_user</span>
|
|
1574
|
+
285: <span class="ruby-ivar">@password</span> = (<span class="ruby-identifier">@@mu_admin_pass</span>.<span class="ruby-identifier">nil?</span>) <span class="ruby-operator">?</span> <span class="ruby-value str">"admin"</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">@@mu_admin_pass</span>
|
|
1575
|
+
286: <span class="ruby-ivar">@cookie</span> = <span class="ruby-value str">''</span>
|
|
1576
|
+
287: <span class="ruby-ivar">@testset</span> = <span class="ruby-value str">''</span>
|
|
1577
|
+
288: <span class="ruby-ivar">@session_id</span> = <span class="ruby-keyword kw">nil</span>
|
|
1578
|
+
289: <span class="ruby-ivar">@results</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
|
1579
|
+
290: <span class="ruby-ivar">@api</span> = <span class="ruby-constant">Ddt</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@host</span>, <span class="ruby-ivar">@username</span>, <span class="ruby-ivar">@password</span>)
|
|
1580
|
+
291: <span class="ruby-identifier">msg</span> <span class="ruby-node">"Created DdtApi object to :#{@host}"</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
1581
|
+
292: <span class="ruby-keyword kw">end</span></pre>
|
|
1582
|
+
</div>
|
|
1583
|
+
|
|
1584
|
+
</div>
|
|
1585
|
+
|
|
1586
|
+
|
|
1587
|
+
|
|
1588
|
+
|
|
1589
|
+
</div>
|
|
1590
|
+
|
|
1591
|
+
|
|
1592
|
+
</div>
|
|
1593
|
+
|
|
1594
|
+
|
|
1595
|
+
</div>
|
|
1596
|
+
|
|
1597
|
+
|
|
1598
|
+
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
|
1599
|
+
|
|
1600
|
+
<p>Disabled; run with --debug to generate this.</p>
|
|
1601
|
+
|
|
1602
|
+
</div>
|
|
1603
|
+
|
|
1604
|
+
<div id="validator-badges">
|
|
1605
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
1606
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
|
1607
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
|
1608
|
+
</div>
|
|
1609
|
+
|
|
1610
|
+
</body>
|
|
1611
|
+
</html>
|
|
1612
|
+
|