mu 5.7.2.3 → 5.7.2.4
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 +1 -1
- data/lib/mu/api/netconfig.rb +5 -3
- data/lib/mu/api/scale.rb +16 -1
- data/lib/mu/command/cmd_netconfig.rb +1 -1
- data/lib/mu/command/cmd_runscale.rb +2 -2
- data/rdoc/classes/Mu.html +24 -142
- data/rdoc/classes/Mu.src/M000001.html +39 -0
- data/rdoc/classes/Mu.src/M000002.html +29 -0
- data/rdoc/classes/Mu.src/M000053.html +39 -0
- data/rdoc/classes/Mu.src/M000054.html +29 -0
- data/rdoc/classes/Mu/Client.html +26 -77
- data/rdoc/classes/Mu/Client.src/M000212.html +24 -0
- data/rdoc/classes/Mu/Client.src/M000213.html +18 -0
- data/rdoc/classes/Mu/Client.src/M000214.html +18 -0
- data/rdoc/classes/Mu/Client.src/M000215.html +18 -0
- data/rdoc/classes/Mu/Client.src/M000216.html +18 -0
- data/rdoc/classes/Mu/Command.html +1 -92
- data/rdoc/classes/Mu/Command/API.html +75 -237
- data/rdoc/classes/Mu/Command/API.src/M000130.html +22 -0
- data/rdoc/classes/Mu/Command/API.src/M000131.html +19 -0
- data/rdoc/classes/Mu/Command/API.src/M000132.html +19 -0
- data/rdoc/classes/Mu/Command/API.src/M000133.html +19 -0
- data/rdoc/classes/Mu/Command/API.src/M000134.html +18 -0
- data/rdoc/classes/Mu/Command/API.src/M000135.html +17 -0
- data/rdoc/classes/Mu/Command/API.src/M000136.html +23 -0
- data/rdoc/classes/Mu/Command/API.src/M000137.html +18 -0
- data/rdoc/classes/Mu/Command/API.src/M000138.html +29 -0
- data/rdoc/classes/Mu/Command/API.src/M000139.html +18 -0
- data/rdoc/classes/Mu/Command/API.src/M000140.html +22 -0
- data/rdoc/classes/Mu/Command/API.src/M000141.html +19 -0
- data/rdoc/classes/Mu/Command/API.src/M000142.html +18 -0
- data/rdoc/classes/Mu/Command/API.src/M000143.html +18 -0
- data/rdoc/classes/Mu/Command/API.src/M000144.html +17 -0
- data/rdoc/classes/Mu/Command/Cmd_appid.html +22 -718
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000145.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000146.html +30 -0
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000147.html +39 -0
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000148.html +50 -0
- data/rdoc/classes/Mu/Command/Cmd_cli.html +32 -274
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000200.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000201.html +19 -0
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000202.html +19 -0
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000203.html +19 -0
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000204.html +20 -0
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000205.html +20 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.html +126 -656
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000101.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000102.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000103.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000104.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000105.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000106.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000107.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000108.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000109.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000110.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000111.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000112.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000113.html +43 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000114.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000115.html +38 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000116.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000117.html +38 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000118.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000119.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000120.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000121.html +24 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000122.html +24 -0
- data/rdoc/classes/Mu/Command/Cmd_homepage.html +31 -244
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000206.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000207.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000208.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000209.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000210.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000211.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.html +86 -527
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000164.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000165.html +27 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000166.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000167.html +27 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000168.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000169.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000170.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000171.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000172.html +28 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000173.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000174.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000175.html +28 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000176.html +23 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000177.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000178.html +23 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000179.html +23 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000180.html +24 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.html +61 -405
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000152.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000153.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000154.html +23 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000155.html +23 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000156.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000157.html +23 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000158.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000159.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000160.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000161.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000162.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000163.html +23 -0
- data/rdoc/classes/Mu/Command/Cmd_runscale.html +17 -766
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000003.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000004.html +51 -0
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000005.html +50 -0
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000149.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000150.html +51 -0
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000151.html +50 -0
- data/rdoc/classes/Mu/Command/Cmd_runscenario.html +11 -344
- data/rdoc/classes/Mu/Command/Cmd_runscenario.src/M000128.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_runscenario.src/M000129.html +144 -0
- data/rdoc/classes/Mu/Command/Cmd_runverify.html +11 -436
- data/rdoc/classes/Mu/Command/Cmd_runverify.src/M000198.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_runverify.src/M000199.html +200 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.html +86 -514
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000181.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000182.html +23 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000183.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000184.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000185.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000186.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000187.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000188.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000189.html +23 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000190.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000191.html +29 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000192.html +27 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000193.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000194.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000195.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000196.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000197.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_system.html +21 -211
- data/rdoc/classes/Mu/Command/Cmd_system.src/M000097.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_system.src/M000098.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_system.src/M000099.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_system.src/M000100.html +21 -0
- data/rdoc/classes/Mu/Command/Curl.html +19 -361
- data/rdoc/classes/Mu/Command/Curl.src/M000124.html +18 -0
- data/rdoc/classes/Mu/Command/Curl.src/M000125.html +21 -0
- data/rdoc/classes/Mu/Command/Curl.src/M000126.html +26 -0
- data/rdoc/classes/Mu/Command/Help.html +5 -34
- data/rdoc/classes/Mu/Command/Help.src/M000123.html +38 -0
- data/rdoc/classes/Mu/Curl/Error.html +5 -14
- data/rdoc/classes/Mu/Curl/Error.src/M000063.html +18 -0
- data/rdoc/classes/Mu/Curl/Error/Authorize.html +5 -18
- data/rdoc/classes/Mu/Curl/Error/Authorize.src/M000065.html +22 -0
- data/rdoc/classes/Mu/Curl/Error/Connect.html +5 -15
- data/rdoc/classes/Mu/Curl/Error/Connect.src/M000068.html +19 -0
- data/rdoc/classes/Mu/Curl/Error/Region.html +5 -15
- data/rdoc/classes/Mu/Curl/Error/Region.src/M000066.html +19 -0
- data/rdoc/classes/Mu/Curl/Error/Status.html +5 -15
- data/rdoc/classes/Mu/Curl/Error/Status.src/M000064.html +19 -0
- data/rdoc/classes/Mu/Curl/Error/Timeout.html +5 -15
- data/rdoc/classes/Mu/Curl/Error/Timeout.src/M000067.html +19 -0
- data/rdoc/classes/Mu/Curl/Verify.html +20 -95
- data/rdoc/classes/Mu/Curl/Verify.src/M000055.html +29 -0
- data/rdoc/classes/Mu/Curl/Verify.src/M000056.html +18 -0
- data/rdoc/classes/Mu/Curl/Verify.src/M000057.html +46 -0
- data/rdoc/classes/Mu/Curl/Verify.src/M000058.html +18 -0
- data/rdoc/classes/Mu/Curl/Verify/Request.html +10 -50
- data/rdoc/classes/Mu/Curl/Verify/Request.src/M000061.html +35 -0
- data/rdoc/classes/Mu/Curl/Verify/Request.src/M000062.html +23 -0
- data/rdoc/classes/Mu/Curl/Verify/Response.html +5 -20
- data/rdoc/classes/Mu/Curl/Verify/Response.src/M000059.html +24 -0
- data/rdoc/classes/Mu/Curl/Verify/Result.html +5 -21
- data/rdoc/classes/Mu/Curl/Verify/Result.src/M000060.html +25 -0
- data/rdoc/classes/Mu/Ddt.html +132 -436
- data/rdoc/classes/Mu/Ddt.src/M000242.html +24 -0
- data/rdoc/classes/Mu/Ddt.src/M000243.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000244.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000245.html +23 -0
- data/rdoc/classes/Mu/Ddt.src/M000246.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000247.html +32 -0
- data/rdoc/classes/Mu/Ddt.src/M000248.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000249.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000250.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000251.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000252.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000253.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000254.html +25 -0
- data/rdoc/classes/Mu/Ddt.src/M000255.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000256.html +24 -0
- data/rdoc/classes/Mu/Ddt.src/M000257.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000258.html +24 -0
- data/rdoc/classes/Mu/Ddt.src/M000259.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000260.html +35 -0
- data/rdoc/classes/Mu/Ddt.src/M000261.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000262.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000263.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000264.html +22 -0
- data/rdoc/classes/Mu/Homepage.html +34 -105
- data/rdoc/classes/Mu/Homepage.src/M000236.html +25 -0
- data/rdoc/classes/Mu/Homepage.src/M000237.html +20 -0
- data/rdoc/classes/Mu/Homepage.src/M000238.html +20 -0
- data/rdoc/classes/Mu/Homepage.src/M000239.html +20 -0
- data/rdoc/classes/Mu/Homepage.src/M000240.html +20 -0
- data/rdoc/classes/Mu/Homepage.src/M000241.html +20 -0
- data/rdoc/classes/Mu/HttpHelper.html +68 -314
- data/rdoc/classes/Mu/HttpHelper.src/M000069.html +22 -0
- data/rdoc/classes/Mu/HttpHelper.src/M000070.html +25 -0
- data/rdoc/classes/Mu/HttpHelper.src/M000071.html +34 -0
- data/rdoc/classes/Mu/HttpHelper.src/M000072.html +39 -0
- data/rdoc/classes/Mu/HttpHelper.src/M000073.html +36 -0
- data/rdoc/classes/Mu/HttpHelper.src/M000074.html +34 -0
- data/rdoc/classes/Mu/HttpHelper.src/M000075.html +46 -0
- data/rdoc/classes/Mu/HttpHelper.src/M000076.html +24 -0
- data/rdoc/classes/Mu/HttpHelper.src/M000077.html +19 -0
- data/rdoc/classes/Mu/HttpHelper.src/M000078.html +33 -0
- data/rdoc/classes/Mu/HttpHelper.src/M000079.html +29 -0
- data/rdoc/classes/Mu/Muapi.html +92 -359
- data/rdoc/classes/Mu/Muapi.src/M000080.html +25 -0
- data/rdoc/classes/Mu/Muapi.src/M000081.html +27 -0
- data/rdoc/classes/Mu/Muapi.src/M000082.html +24 -0
- data/rdoc/classes/Mu/Muapi.src/M000083.html +27 -0
- data/rdoc/classes/Mu/Muapi.src/M000084.html +23 -0
- data/rdoc/classes/Mu/Muapi.src/M000085.html +23 -0
- data/rdoc/classes/Mu/Muapi.src/M000086.html +23 -0
- data/rdoc/classes/Mu/Muapi.src/M000087.html +23 -0
- data/rdoc/classes/Mu/Muapi.src/M000088.html +23 -0
- data/rdoc/classes/Mu/Muapi.src/M000089.html +22 -0
- data/rdoc/classes/Mu/Muapi.src/M000090.html +21 -0
- data/rdoc/classes/Mu/Muapi.src/M000091.html +19 -0
- data/rdoc/classes/Mu/Muapi.src/M000092.html +18 -0
- data/rdoc/classes/Mu/Muapi.src/M000093.html +18 -0
- data/rdoc/classes/Mu/Muapi.src/M000094.html +36 -0
- data/rdoc/classes/Mu/Muapi.src/M000095.html +34 -0
- data/rdoc/classes/Mu/Muapi.src/M000096.html +34 -0
- data/rdoc/classes/Mu/Netconfig.html +79 -382
- data/rdoc/classes/Mu/Netconfig.src/M000217.html +25 -0
- data/rdoc/classes/Mu/Netconfig.src/M000218.html +20 -0
- data/rdoc/classes/Mu/Netconfig.src/M000219.html +21 -0
- data/rdoc/classes/Mu/Netconfig.src/M000220.html +24 -0
- data/rdoc/classes/Mu/Netconfig.src/M000221.html +20 -0
- data/rdoc/classes/Mu/Netconfig.src/M000222.html +36 -0
- data/rdoc/classes/Mu/Netconfig.src/M000223.html +22 -0
- data/rdoc/classes/Mu/Netconfig.src/M000224.html +22 -0
- data/rdoc/classes/Mu/Netconfig.src/M000225.html +37 -0
- data/rdoc/classes/Mu/Netconfig.src/M000226.html +21 -0
- data/rdoc/classes/Mu/Netconfig.src/M000227.html +23 -0
- data/rdoc/classes/Mu/Netconfig.src/M000228.html +26 -0
- data/rdoc/classes/Mu/Netconfig.src/M000229.html +23 -0
- data/rdoc/classes/Mu/Netconfig.src/M000230.html +22 -0
- data/rdoc/classes/Mu/Netconfig.src/M000231.html +19 -0
- data/rdoc/classes/Mu/Scale.html +133 -385
- data/rdoc/classes/Mu/Scale.src/M000006.html +47 -0
- data/rdoc/classes/Mu/Scale.src/M000007.html +27 -0
- data/rdoc/classes/Mu/Scale.src/M000008.html +22 -0
- data/rdoc/classes/Mu/Scale.src/M000009.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000010.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000011.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000012.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000013.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000014.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000015.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000016.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000017.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000018.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000019.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000020.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000021.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000022.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000023.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000024.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000025.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000265.html +46 -0
- data/rdoc/classes/Mu/Scale.src/M000266.html +27 -0
- data/rdoc/classes/Mu/Scale.src/M000267.html +22 -0
- data/rdoc/classes/Mu/Scale.src/M000268.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000269.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000270.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000271.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000272.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000273.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000274.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000275.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000276.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000277.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000278.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000279.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000280.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000281.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000282.html +20 -0
- data/rdoc/classes/Mu/System.html +23 -72
- data/rdoc/classes/Mu/System.src/M000232.html +25 -0
- data/rdoc/classes/Mu/System.src/M000233.html +20 -0
- data/rdoc/classes/Mu/System.src/M000234.html +20 -0
- data/rdoc/classes/Mu/System.src/M000235.html +20 -0
- data/rdoc/classes/Object.html +5 -14
- data/rdoc/classes/Object.src/M000052.html +18 -0
- data/rdoc/classes/TCTestMu.html +254 -1099
- data/rdoc/classes/TCTestMu.src/M000001.html +24 -0
- data/rdoc/classes/TCTestMu.src/M000002.html +18 -0
- data/rdoc/classes/TCTestMu.src/M000003.html +32 -0
- data/rdoc/classes/TCTestMu.src/M000004.html +33 -0
- data/rdoc/classes/TCTestMu.src/M000005.html +21 -0
- data/rdoc/classes/TCTestMu.src/M000006.html +21 -0
- data/rdoc/classes/TCTestMu.src/M000007.html +26 -0
- data/rdoc/classes/TCTestMu.src/M000008.html +29 -0
- data/rdoc/classes/TCTestMu.src/M000009.html +39 -0
- data/rdoc/classes/TCTestMu.src/M000010.html +38 -0
- data/rdoc/classes/TCTestMu.src/M000011.html +38 -0
- data/rdoc/classes/TCTestMu.src/M000012.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000013.html +25 -0
- data/rdoc/classes/TCTestMu.src/M000014.html +25 -0
- data/rdoc/classes/TCTestMu.src/M000015.html +33 -0
- data/rdoc/classes/TCTestMu.src/M000016.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000017.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000018.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000019.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000020.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000021.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000022.html +23 -0
- data/rdoc/classes/TCTestMu.src/M000023.html +23 -0
- data/rdoc/classes/TCTestMu.src/M000024.html +44 -0
- data/rdoc/classes/TCTestMu.src/M000025.html +53 -0
- data/rdoc/classes/TCTestMu.src/M000026.html +22 -0
- data/rdoc/classes/TCTestMu.src/M000027.html +49 -0
- data/rdoc/classes/TCTestMu.src/M000028.html +40 -0
- data/rdoc/classes/TCTestMu.src/M000029.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000030.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000031.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000032.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000033.html +27 -0
- data/rdoc/classes/TCTestMu.src/M000034.html +32 -0
- data/rdoc/classes/TCTestMu.src/M000035.html +23 -0
- data/rdoc/classes/TCTestMu.src/M000036.html +41 -0
- data/rdoc/classes/TCTestMu.src/M000037.html +23 -0
- data/rdoc/classes/TCTestMu.src/M000038.html +24 -0
- data/rdoc/classes/TCTestMu.src/M000039.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000040.html +32 -0
- data/rdoc/classes/TCTestMu.src/M000041.html +32 -0
- data/rdoc/classes/TCTestMu.src/M000042.html +26 -0
- data/rdoc/classes/TCTestMu.src/M000043.html +28 -0
- data/rdoc/classes/TCTestMu.src/M000044.html +21 -0
- data/rdoc/classes/TCTestMu.src/M000045.html +23 -0
- data/rdoc/classes/TCTestMu.src/M000046.html +21 -0
- data/rdoc/classes/TCTestMu.src/M000047.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000048.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000049.html +22 -0
- data/rdoc/classes/TCTestMu.src/M000050.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000051.html +35 -0
- data/rdoc/created.rid +1 -1
- data/rdoc/files/lib/mu/api/ddt_rb.html +1 -1
- data/rdoc/files/lib/mu/api/homepage_rb.html +1 -1
- data/rdoc/files/lib/mu/api/muapi_rb.html +1 -1
- data/rdoc/files/lib/mu/api/netconfig_rb.html +1 -1
- data/rdoc/files/lib/mu/api/scale_rb.html +1 -1
- data/rdoc/files/lib/mu/api/system_rb.html +1 -1
- data/rdoc/files/lib/mu/client_rb.html +1 -1
- data/rdoc/files/lib/mu/command/api_rb.html +1 -1
- data/rdoc/files/lib/mu/command/cmd_appid_rb.html +1 -1
- data/rdoc/files/lib/mu/command/cmd_cli_rb.html +1 -1
- data/rdoc/files/lib/mu/command/cmd_ddt_rb.html +4 -5
- data/rdoc/files/lib/mu/command/cmd_homepage_rb.html +1 -1
- data/rdoc/files/lib/mu/command/cmd_muapi_rb.html +3 -4
- data/rdoc/files/lib/mu/command/cmd_netconfig_rb.html +1 -1
- data/rdoc/files/lib/mu/command/cmd_runscale_rb.html +1 -1
- data/rdoc/files/lib/mu/command/cmd_runscenario_rb.html +1 -1
- data/rdoc/files/lib/mu/command/cmd_runverify_rb.html +5 -4
- data/rdoc/files/lib/mu/command/cmd_scale_rb.html +1 -1
- data/rdoc/files/lib/mu/command/cmd_system_rb.html +1 -1
- data/rdoc/files/lib/mu/command/curl_rb.html +1 -1
- data/rdoc/files/lib/mu/command/help_rb.html +1 -1
- data/rdoc/files/lib/mu/command_rb.html +1 -1
- data/rdoc/files/lib/mu/curl/error_rb.html +1 -1
- data/rdoc/files/lib/mu/curl/verify_rb.html +1 -1
- data/rdoc/files/lib/mu/http_helper_rb.html +1 -1
- data/rdoc/files/lib/mu_rb.html +1 -1
- data/rdoc/files/test/tc_test_mu_rb.html +1 -1
- data/rdoc/fr_class_index.html +0 -38
- data/rdoc/fr_file_index.html +0 -26
- data/rdoc/fr_method_index.html +25 -348
- data/rdoc/index.html +3 -3
- data/test/data/app_id_stats.csv +1 -1
- data/test/data/app_id_status.json +156 -0
- data/test/tc_test_mu.rb +1 -1
- metadata +314 -8
- data/Mu_Gem.html +0 -1591
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>parse (Mu::Curl::Verify::Request)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/mu/curl/verify.rb, line 5</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">parse</span> <span class="ruby-identifier">data</span>
|
|
15
|
+
<span class="ruby-identifier">ios</span> = <span class="ruby-constant">StringIO</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">data</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'m'</span>)[<span class="ruby-value">0</span>]
|
|
16
|
+
<span class="ruby-identifier">rqrs</span> = { <span class="ruby-identifier">:line</span> =<span class="ruby-operator">></span> <span class="ruby-value str">''</span>, <span class="ruby-identifier">:headers</span> =<span class="ruby-operator">></span> [], <span class="ruby-identifier">:content</span> =<span class="ruby-operator">></span> <span class="ruby-value str">''</span> }
|
|
17
|
+
<span class="ruby-keyword kw">while</span> <span class="ruby-keyword kw">true</span>
|
|
18
|
+
<span class="ruby-identifier">line</span> = <span class="ruby-identifier">ios</span>.<span class="ruby-identifier">readline</span>
|
|
19
|
+
<span class="ruby-keyword kw">break</span> <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">line</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">line</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"\r\n"</span>
|
|
20
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">rqrs</span>[<span class="ruby-identifier">:line</span>].<span class="ruby-identifier">empty?</span>
|
|
21
|
+
<span class="ruby-identifier">rqrs</span>[<span class="ruby-identifier">:line</span>] = <span class="ruby-identifier">line</span>.<span class="ruby-identifier">chomp</span>
|
|
22
|
+
<span class="ruby-keyword kw">else</span>
|
|
23
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-regexp re">/^([^:]+):(.*)/</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">line</span>
|
|
24
|
+
<span class="ruby-identifier">key</span> = <span class="ruby-identifier">$1</span>
|
|
25
|
+
<span class="ruby-identifier">val</span> = <span class="ruby-identifier">$2</span>.<span class="ruby-identifier">strip</span>
|
|
26
|
+
<span class="ruby-identifier">rqrs</span>[<span class="ruby-identifier">:headers</span>] <span class="ruby-operator"><<</span> { <span class="ruby-identifier">:line</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">line</span>.<span class="ruby-identifier">chomp</span>, <span class="ruby-identifier">:key</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">key</span>, <span class="ruby-identifier">:val</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">val</span> }
|
|
27
|
+
<span class="ruby-keyword kw">end</span>
|
|
28
|
+
<span class="ruby-keyword kw">end</span>
|
|
29
|
+
<span class="ruby-keyword kw">end</span>
|
|
30
|
+
|
|
31
|
+
<span class="ruby-identifier">rqrs</span>[<span class="ruby-identifier">:content</span>] = <span class="ruby-identifier">ios</span>.<span class="ruby-identifier">read</span>
|
|
32
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">rqrs</span>
|
|
33
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
34
|
+
</body>
|
|
35
|
+
</html>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>new (Mu::Curl::Verify::Request)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/mu/curl/verify.rb, line 32</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">json</span>
|
|
15
|
+
<span class="ruby-identifier">rq</span> = <span class="ruby-constant">Request</span>.<span class="ruby-identifier">parse</span> <span class="ruby-identifier">json</span>[<span class="ruby-value str">'bytes'</span>][<span class="ruby-value">0</span>][<span class="ruby-value str">'data'</span>]
|
|
16
|
+
<span class="ruby-ivar">@line</span> = <span class="ruby-identifier">rq</span>[<span class="ruby-identifier">:line</span>]
|
|
17
|
+
<span class="ruby-ivar">@method</span>, <span class="ruby-ivar">@url</span>, <span class="ruby-identifier">_</span> = <span class="ruby-identifier">rq</span>[<span class="ruby-identifier">:line</span>].<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">/\s+/</span>, <span class="ruby-value">3</span>)
|
|
18
|
+
<span class="ruby-ivar">@content</span> = <span class="ruby-identifier">rq</span>[<span class="ruby-identifier">:content</span>]
|
|
19
|
+
<span class="ruby-ivar">@headers</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
|
|
20
|
+
<span class="ruby-identifier">rq</span>[<span class="ruby-identifier">:headers</span>].<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">h</span><span class="ruby-operator">|</span> <span class="ruby-ivar">@headers</span>[<span class="ruby-identifier">h</span>[<span class="ruby-identifier">:key</span>]] = <span class="ruby-identifier">h</span>[<span class="ruby-identifier">:val</span>] }
|
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
22
|
+
</body>
|
|
23
|
+
</html>
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
|
89
89
|
|
|
90
90
|
<div class="name-list">
|
|
91
|
-
<a href="#
|
|
91
|
+
<a href="#M000059">new</a>
|
|
92
92
|
</div>
|
|
93
93
|
</div>
|
|
94
94
|
|
|
@@ -143,32 +143,17 @@
|
|
|
143
143
|
<div id="methods">
|
|
144
144
|
<h3 class="section-bar">Public Class methods</h3>
|
|
145
145
|
|
|
146
|
-
<div id="method-
|
|
147
|
-
<a name="
|
|
146
|
+
<div id="method-M000059" class="method-detail">
|
|
147
|
+
<a name="M000059"></a>
|
|
148
148
|
|
|
149
149
|
<div class="method-heading">
|
|
150
|
-
<a href="
|
|
150
|
+
<a href="Response.src/M000059.html" target="Code" class="method-signature"
|
|
151
|
+
onclick="popupCode('Response.src/M000059.html');return false;">
|
|
151
152
|
<span class="method-name">new</span><span class="method-args">(json)</span>
|
|
152
153
|
</a>
|
|
153
154
|
</div>
|
|
154
155
|
|
|
155
156
|
<div class="method-description">
|
|
156
|
-
<p><a class="source-toggle" href="#"
|
|
157
|
-
onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
|
|
158
|
-
<div class="method-source-code" id="M000056-source">
|
|
159
|
-
<pre>
|
|
160
|
-
<span class="ruby-comment cmt"># File lib/mu/curl/verify.rb, line 49</span>
|
|
161
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">json</span>
|
|
162
|
-
<span class="ruby-identifier">rs</span> = <span class="ruby-constant">Request</span>.<span class="ruby-identifier">parse</span> <span class="ruby-identifier">json</span>[<span class="ruby-value str">'bytes'</span>][<span class="ruby-value">1</span>][<span class="ruby-value str">'data'</span>]
|
|
163
|
-
<span class="ruby-ivar">@line</span> = <span class="ruby-identifier">rs</span>[<span class="ruby-identifier">:line</span>]
|
|
164
|
-
<span class="ruby-identifier">_</span>, <span class="ruby-ivar">@status</span>, <span class="ruby-ivar">@message</span> = <span class="ruby-identifier">rs</span>[<span class="ruby-identifier">:line</span>].<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">/\s+/</span>, <span class="ruby-value">3</span>)
|
|
165
|
-
<span class="ruby-ivar">@status</span> = <span class="ruby-ivar">@status</span>.<span class="ruby-identifier">to_i</span>
|
|
166
|
-
<span class="ruby-ivar">@content</span> = <span class="ruby-identifier">rs</span>[<span class="ruby-identifier">:content</span>]
|
|
167
|
-
<span class="ruby-ivar">@headers</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
|
|
168
|
-
<span class="ruby-identifier">rs</span>[<span class="ruby-identifier">:headers</span>].<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">h</span><span class="ruby-operator">|</span> <span class="ruby-ivar">@headers</span>[<span class="ruby-identifier">h</span>[<span class="ruby-identifier">:key</span>]] = <span class="ruby-identifier">h</span>[<span class="ruby-identifier">:val</span>] }
|
|
169
|
-
<span class="ruby-keyword kw">end</span>
|
|
170
|
-
</pre>
|
|
171
|
-
</div>
|
|
172
157
|
</div>
|
|
173
158
|
</div>
|
|
174
159
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>new (Mu::Curl::Verify::Response)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/mu/curl/verify.rb, line 49</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">json</span>
|
|
15
|
+
<span class="ruby-identifier">rs</span> = <span class="ruby-constant">Request</span>.<span class="ruby-identifier">parse</span> <span class="ruby-identifier">json</span>[<span class="ruby-value str">'bytes'</span>][<span class="ruby-value">1</span>][<span class="ruby-value str">'data'</span>]
|
|
16
|
+
<span class="ruby-ivar">@line</span> = <span class="ruby-identifier">rs</span>[<span class="ruby-identifier">:line</span>]
|
|
17
|
+
<span class="ruby-identifier">_</span>, <span class="ruby-ivar">@status</span>, <span class="ruby-ivar">@message</span> = <span class="ruby-identifier">rs</span>[<span class="ruby-identifier">:line</span>].<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">/\s+/</span>, <span class="ruby-value">3</span>)
|
|
18
|
+
<span class="ruby-ivar">@status</span> = <span class="ruby-ivar">@status</span>.<span class="ruby-identifier">to_i</span>
|
|
19
|
+
<span class="ruby-ivar">@content</span> = <span class="ruby-identifier">rs</span>[<span class="ruby-identifier">:content</span>]
|
|
20
|
+
<span class="ruby-ivar">@headers</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
|
|
21
|
+
<span class="ruby-identifier">rs</span>[<span class="ruby-identifier">:headers</span>].<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">h</span><span class="ruby-operator">|</span> <span class="ruby-ivar">@headers</span>[<span class="ruby-identifier">h</span>[<span class="ruby-identifier">:key</span>]] = <span class="ruby-identifier">h</span>[<span class="ruby-identifier">:val</span>] }
|
|
22
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
23
|
+
</body>
|
|
24
|
+
</html>
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
|
89
89
|
|
|
90
90
|
<div class="name-list">
|
|
91
|
-
<a href="#
|
|
91
|
+
<a href="#M000060">new</a>
|
|
92
92
|
</div>
|
|
93
93
|
</div>
|
|
94
94
|
|
|
@@ -143,33 +143,17 @@
|
|
|
143
143
|
<div id="methods">
|
|
144
144
|
<h3 class="section-bar">Public Class methods</h3>
|
|
145
145
|
|
|
146
|
-
<div id="method-
|
|
147
|
-
<a name="
|
|
146
|
+
<div id="method-M000060" class="method-detail">
|
|
147
|
+
<a name="M000060"></a>
|
|
148
148
|
|
|
149
149
|
<div class="method-heading">
|
|
150
|
-
<a href="
|
|
150
|
+
<a href="Result.src/M000060.html" target="Code" class="method-signature"
|
|
151
|
+
onclick="popupCode('Result.src/M000060.html');return false;">
|
|
151
152
|
<span class="method-name">new</span><span class="method-args">(json)</span>
|
|
152
153
|
</a>
|
|
153
154
|
</div>
|
|
154
155
|
|
|
155
156
|
<div class="method-description">
|
|
156
|
-
<p><a class="source-toggle" href="#"
|
|
157
|
-
onclick="toggleCode('M000057-source');return false;">[Source]</a></p>
|
|
158
|
-
<div class="method-source-code" id="M000057-source">
|
|
159
|
-
<pre>
|
|
160
|
-
<span class="ruby-comment cmt"># File lib/mu/curl/verify.rb, line 67</span>
|
|
161
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">json</span>
|
|
162
|
-
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">json</span>[<span class="ruby-value str">'result'</span>]
|
|
163
|
-
<span class="ruby-identifier">stats</span> = <span class="ruby-identifier">result</span>[<span class="ruby-value str">'statistics'</span>]
|
|
164
|
-
|
|
165
|
-
<span class="ruby-ivar">@region</span> = <span class="ruby-identifier">json</span>[<span class="ruby-value str">'region'</span>]
|
|
166
|
-
<span class="ruby-ivar">@duration</span> = <span class="ruby-identifier">stats</span>[<span class="ruby-value str">'duration'</span>][<span class="ruby-value str">'avg'</span>]
|
|
167
|
-
<span class="ruby-ivar">@connect</span> = <span class="ruby-identifier">stats</span>[<span class="ruby-value str">'steps'</span>][<span class="ruby-value">0</span>][<span class="ruby-value str">'duration'</span>][<span class="ruby-value str">'avg'</span>]
|
|
168
|
-
<span class="ruby-ivar">@request</span> = <span class="ruby-constant">Request</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">result</span>
|
|
169
|
-
<span class="ruby-ivar">@response</span> = <span class="ruby-constant">Response</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">result</span>
|
|
170
|
-
<span class="ruby-keyword kw">end</span>
|
|
171
|
-
</pre>
|
|
172
|
-
</div>
|
|
173
157
|
</div>
|
|
174
158
|
</div>
|
|
175
159
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>new (Mu::Curl::Verify::Result)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/mu/curl/verify.rb, line 67</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">json</span>
|
|
15
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">json</span>[<span class="ruby-value str">'result'</span>]
|
|
16
|
+
<span class="ruby-identifier">stats</span> = <span class="ruby-identifier">result</span>[<span class="ruby-value str">'statistics'</span>]
|
|
17
|
+
|
|
18
|
+
<span class="ruby-ivar">@region</span> = <span class="ruby-identifier">json</span>[<span class="ruby-value str">'region'</span>]
|
|
19
|
+
<span class="ruby-ivar">@duration</span> = <span class="ruby-identifier">stats</span>[<span class="ruby-value str">'duration'</span>][<span class="ruby-value str">'avg'</span>]
|
|
20
|
+
<span class="ruby-ivar">@connect</span> = <span class="ruby-identifier">stats</span>[<span class="ruby-value str">'steps'</span>][<span class="ruby-value">0</span>][<span class="ruby-value str">'duration'</span>][<span class="ruby-value str">'avg'</span>]
|
|
21
|
+
<span class="ruby-ivar">@request</span> = <span class="ruby-constant">Request</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">result</span>
|
|
22
|
+
<span class="ruby-ivar">@response</span> = <span class="ruby-constant">Response</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">result</span>
|
|
23
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
24
|
+
</body>
|
|
25
|
+
</html>
|
data/rdoc/classes/Mu/Ddt.html
CHANGED
|
@@ -88,29 +88,29 @@
|
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
|
89
89
|
|
|
90
90
|
<div class="name-list">
|
|
91
|
-
<a href="#
|
|
92
|
-
<a href="#
|
|
93
|
-
<a href="#
|
|
94
|
-
<a href="#
|
|
95
|
-
<a href="#
|
|
96
|
-
<a href="#
|
|
97
|
-
<a href="#
|
|
98
|
-
<a href="#
|
|
99
|
-
<a href="#
|
|
100
|
-
<a href="#
|
|
101
|
-
<a href="#
|
|
102
|
-
<a href="#
|
|
103
|
-
<a href="#
|
|
104
|
-
<a href="#
|
|
105
|
-
<a href="#
|
|
106
|
-
<a href="#
|
|
107
|
-
<a href="#
|
|
108
|
-
<a href="#
|
|
109
|
-
<a href="#
|
|
110
|
-
<a href="#
|
|
111
|
-
<a href="#
|
|
112
|
-
<a href="#
|
|
113
|
-
<a href="#
|
|
91
|
+
<a href="#M000248">close_all_sessions</a>
|
|
92
|
+
<a href="#M000246">close_session</a>
|
|
93
|
+
<a href="#M000259">collect_results</a>
|
|
94
|
+
<a href="#M000263">csv_export</a>
|
|
95
|
+
<a href="#M000264">csv_import</a>
|
|
96
|
+
<a href="#M000249">get_all_sessions</a>
|
|
97
|
+
<a href="#M000255">get_channels</a>
|
|
98
|
+
<a href="#M000253">get_hosts</a>
|
|
99
|
+
<a href="#M000257">get_options</a>
|
|
100
|
+
<a href="#M000247">get_sessions</a>
|
|
101
|
+
<a href="#M000262">get_testset_results</a>
|
|
102
|
+
<a href="#M000261">get_testset_status</a>
|
|
103
|
+
<a href="#M000252">load_scenario</a>
|
|
104
|
+
<a href="#M000242">new</a>
|
|
105
|
+
<a href="#M000245">new_session</a>
|
|
106
|
+
<a href="#M000243">run</a>
|
|
107
|
+
<a href="#M000244">run_testset</a>
|
|
108
|
+
<a href="#M000256">set_channels</a>
|
|
109
|
+
<a href="#M000254">set_hosts</a>
|
|
110
|
+
<a href="#M000258">set_options</a>
|
|
111
|
+
<a href="#M000250">setup_test</a>
|
|
112
|
+
<a href="#M000251">teardown_test</a>
|
|
113
|
+
<a href="#M000260">wait_until_done</a>
|
|
114
114
|
</div>
|
|
115
115
|
</div>
|
|
116
116
|
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
<h3 class="section-bar">Included Modules</h3>
|
|
123
123
|
|
|
124
124
|
<div id="includes-list">
|
|
125
|
-
<span class="include-name"
|
|
125
|
+
<span class="include-name">Helper</span>
|
|
126
126
|
</div>
|
|
127
127
|
</div>
|
|
128
128
|
|
|
@@ -172,42 +172,28 @@
|
|
|
172
172
|
<div id="methods">
|
|
173
173
|
<h3 class="section-bar">Public Class methods</h3>
|
|
174
174
|
|
|
175
|
-
<div id="method-
|
|
176
|
-
<a name="
|
|
175
|
+
<div id="method-M000242" class="method-detail">
|
|
176
|
+
<a name="M000242"></a>
|
|
177
177
|
|
|
178
178
|
<div class="method-heading">
|
|
179
|
-
<a href="
|
|
179
|
+
<a href="Ddt.src/M000242.html" target="Code" class="method-signature"
|
|
180
|
+
onclick="popupCode('Ddt.src/M000242.html');return false;">
|
|
180
181
|
<span class="method-name">new</span><span class="method-args">(host=ENV['MU_IP'], username=ENV['MU_ADMIN_USER'], password=ENV['MU_ADMIN_PASS'])</span>
|
|
181
182
|
</a>
|
|
182
183
|
</div>
|
|
183
184
|
|
|
184
185
|
<div class="method-description">
|
|
185
|
-
<p><a class="source-toggle" href="#"
|
|
186
|
-
onclick="toggleCode('M000306-source');return false;">[Source]</a></p>
|
|
187
|
-
<div class="method-source-code" id="M000306-source">
|
|
188
|
-
<pre>
|
|
189
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 7</span>
|
|
190
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">host</span>=<span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_IP'</span>], <span class="ruby-identifier">username</span>=<span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_ADMIN_USER'</span>], <span class="ruby-identifier">password</span>=<span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_ADMIN_PASS'</span>])
|
|
191
|
-
<span class="ruby-ivar">@host</span> = <span class="ruby-identifier">host</span>
|
|
192
|
-
<span class="ruby-ivar">@username</span> = <span class="ruby-identifier">username</span>
|
|
193
|
-
<span class="ruby-ivar">@password</span> = <span class="ruby-identifier">password</span>
|
|
194
|
-
<span class="ruby-ivar">@docroot</span> = <span class="ruby-value str">"/api/v5/ddt/"</span>
|
|
195
|
-
<span class="ruby-ivar">@session_id</span> = <span class="ruby-keyword kw">nil</span>
|
|
196
|
-
<span class="ruby-ivar">@http</span> = <span class="ruby-constant">HttpHelper</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>, <span class="ruby-ivar">@docroot</span>)
|
|
197
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-node">"Created Ddt Api object to :#{@host}"</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
198
|
-
<span class="ruby-keyword kw">end</span>
|
|
199
|
-
</pre>
|
|
200
|
-
</div>
|
|
201
186
|
</div>
|
|
202
187
|
</div>
|
|
203
188
|
|
|
204
189
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
205
190
|
|
|
206
|
-
<div id="method-
|
|
207
|
-
<a name="
|
|
191
|
+
<div id="method-M000248" class="method-detail">
|
|
192
|
+
<a name="M000248"></a>
|
|
208
193
|
|
|
209
194
|
<div class="method-heading">
|
|
210
|
-
<a href="
|
|
195
|
+
<a href="Ddt.src/M000248.html" target="Code" class="method-signature"
|
|
196
|
+
onclick="popupCode('Ddt.src/M000248.html');return false;">
|
|
211
197
|
<span class="method-name">close_all_sessions</span><span class="method-args">()</span>
|
|
212
198
|
</a>
|
|
213
199
|
</div>
|
|
@@ -216,26 +202,15 @@
|
|
|
216
202
|
<p>
|
|
217
203
|
closes all Studio Verify sessions
|
|
218
204
|
</p>
|
|
219
|
-
<p><a class="source-toggle" href="#"
|
|
220
|
-
onclick="toggleCode('M000312-source');return false;">[Source]</a></p>
|
|
221
|
-
<div class="method-source-code" id="M000312-source">
|
|
222
|
-
<pre>
|
|
223
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 69</span>
|
|
224
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close_all_sessions</span>
|
|
225
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post</span>(<span class="ruby-value str">"closeAllSessions"</span>)
|
|
226
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
227
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
228
|
-
<span class="ruby-keyword kw">end</span>
|
|
229
|
-
</pre>
|
|
230
|
-
</div>
|
|
231
205
|
</div>
|
|
232
206
|
</div>
|
|
233
207
|
|
|
234
|
-
<div id="method-
|
|
235
|
-
<a name="
|
|
208
|
+
<div id="method-M000246" class="method-detail">
|
|
209
|
+
<a name="M000246"></a>
|
|
236
210
|
|
|
237
211
|
<div class="method-heading">
|
|
238
|
-
<a href="
|
|
212
|
+
<a href="Ddt.src/M000246.html" target="Code" class="method-signature"
|
|
213
|
+
onclick="popupCode('Ddt.src/M000246.html');return false;">
|
|
239
214
|
<span class="method-name">close_session</span><span class="method-args">()</span>
|
|
240
215
|
</a>
|
|
241
216
|
</div>
|
|
@@ -244,26 +219,15 @@ closes all Studio Verify sessions
|
|
|
244
219
|
<p>
|
|
245
220
|
closes the existing Studio Verify session
|
|
246
221
|
</p>
|
|
247
|
-
<p><a class="source-toggle" href="#"
|
|
248
|
-
onclick="toggleCode('M000310-source');return false;">[Source]</a></p>
|
|
249
|
-
<div class="method-source-code" id="M000310-source">
|
|
250
|
-
<pre>
|
|
251
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 43</span>
|
|
252
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close_session</span>
|
|
253
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">"session/closeSession"</span>)
|
|
254
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
255
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
256
|
-
<span class="ruby-keyword kw">end</span>
|
|
257
|
-
</pre>
|
|
258
|
-
</div>
|
|
259
222
|
</div>
|
|
260
223
|
</div>
|
|
261
224
|
|
|
262
|
-
<div id="method-
|
|
263
|
-
<a name="
|
|
225
|
+
<div id="method-M000259" class="method-detail">
|
|
226
|
+
<a name="M000259"></a>
|
|
264
227
|
|
|
265
228
|
<div class="method-heading">
|
|
266
|
-
<a href="
|
|
229
|
+
<a href="Ddt.src/M000259.html" target="Code" class="method-signature"
|
|
230
|
+
onclick="popupCode('Ddt.src/M000259.html');return false;">
|
|
267
231
|
<span class="method-name">collect_results</span><span class="method-args">(timeout=120)</span>
|
|
268
232
|
</a>
|
|
269
233
|
</div>
|
|
@@ -275,26 +239,15 @@ collects results until the test is done or the timeout expires
|
|
|
275
239
|
<pre>
|
|
276
240
|
* timeout = time in seconds to wait for the test to complete
|
|
277
241
|
</pre>
|
|
278
|
-
<p><a class="source-toggle" href="#"
|
|
279
|
-
onclick="toggleCode('M000323-source');return false;">[Source]</a></p>
|
|
280
|
-
<div class="method-source-code" id="M000323-source">
|
|
281
|
-
<pre>
|
|
282
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 168</span>
|
|
283
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">collect_results</span>(<span class="ruby-identifier">timeout</span>=<span class="ruby-value">120</span>)
|
|
284
|
-
<span class="ruby-identifier">wait_until_done</span>(<span class="ruby-identifier">timeout</span>)
|
|
285
|
-
<span class="ruby-identifier">results</span> = <span class="ruby-identifier">get_testset_results</span>
|
|
286
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">results</span>
|
|
287
|
-
<span class="ruby-keyword kw">end</span>
|
|
288
|
-
</pre>
|
|
289
|
-
</div>
|
|
290
242
|
</div>
|
|
291
243
|
</div>
|
|
292
244
|
|
|
293
|
-
<div id="method-
|
|
294
|
-
<a name="
|
|
245
|
+
<div id="method-M000263" class="method-detail">
|
|
246
|
+
<a name="M000263"></a>
|
|
295
247
|
|
|
296
248
|
<div class="method-heading">
|
|
297
|
-
<a href="
|
|
249
|
+
<a href="Ddt.src/M000263.html" target="Code" class="method-signature"
|
|
250
|
+
onclick="popupCode('Ddt.src/M000263.html');return false;">
|
|
298
251
|
<span class="method-name">csv_export</span><span class="method-args">(uuid=@testset)</span>
|
|
299
252
|
</a>
|
|
300
253
|
</div>
|
|
@@ -306,26 +259,35 @@ exports a testset to a csv file
|
|
|
306
259
|
<pre>
|
|
307
260
|
* uuid = the uuid of the testset to export
|
|
308
261
|
</pre>
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
262
|
+
</div>
|
|
263
|
+
</div>
|
|
264
|
+
|
|
265
|
+
<div id="method-M000264" class="method-detail">
|
|
266
|
+
<a name="M000264"></a>
|
|
267
|
+
|
|
268
|
+
<div class="method-heading">
|
|
269
|
+
<a href="Ddt.src/M000264.html" target="Code" class="method-signature"
|
|
270
|
+
onclick="popupCode('Ddt.src/M000264.html');return false;">
|
|
271
|
+
<span class="method-name">csv_import</span><span class="method-args">(filepath)</span>
|
|
272
|
+
</a>
|
|
273
|
+
</div>
|
|
274
|
+
|
|
275
|
+
<div class="method-description">
|
|
276
|
+
<p>
|
|
277
|
+
imports a csv file to the <a href="../Mu.html">Mu</a>
|
|
278
|
+
</p>
|
|
312
279
|
<pre>
|
|
313
|
-
|
|
314
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">csv_export</span>(<span class="ruby-identifier">uuid</span>=<span class="ruby-ivar">@testset</span>)
|
|
315
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post</span>(<span class="ruby-node">"session/test/export/csv/#{uuid}"</span>)
|
|
316
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
317
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
318
|
-
<span class="ruby-keyword kw">end</span>
|
|
280
|
+
* filepath = the path to the csv file
|
|
319
281
|
</pre>
|
|
320
|
-
</div>
|
|
321
282
|
</div>
|
|
322
283
|
</div>
|
|
323
284
|
|
|
324
|
-
<div id="method-
|
|
325
|
-
<a name="
|
|
285
|
+
<div id="method-M000249" class="method-detail">
|
|
286
|
+
<a name="M000249"></a>
|
|
326
287
|
|
|
327
288
|
<div class="method-heading">
|
|
328
|
-
<a href="
|
|
289
|
+
<a href="Ddt.src/M000249.html" target="Code" class="method-signature"
|
|
290
|
+
onclick="popupCode('Ddt.src/M000249.html');return false;">
|
|
329
291
|
<span class="method-name">get_all_sessions</span><span class="method-args">()</span>
|
|
330
292
|
</a>
|
|
331
293
|
</div>
|
|
@@ -334,26 +296,15 @@ exports a testset to a csv file
|
|
|
334
296
|
<p>
|
|
335
297
|
returns the session id‘s of all existing Studio Verify sessions
|
|
336
298
|
</p>
|
|
337
|
-
<p><a class="source-toggle" href="#"
|
|
338
|
-
onclick="toggleCode('M000313-source');return false;">[Source]</a></p>
|
|
339
|
-
<div class="method-source-code" id="M000313-source">
|
|
340
|
-
<pre>
|
|
341
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 76</span>
|
|
342
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_all_sessions</span>
|
|
343
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">"getAllSessions"</span>)
|
|
344
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
345
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
346
|
-
<span class="ruby-keyword kw">end</span>
|
|
347
|
-
</pre>
|
|
348
|
-
</div>
|
|
349
299
|
</div>
|
|
350
300
|
</div>
|
|
351
301
|
|
|
352
|
-
<div id="method-
|
|
353
|
-
<a name="
|
|
302
|
+
<div id="method-M000255" class="method-detail">
|
|
303
|
+
<a name="M000255"></a>
|
|
354
304
|
|
|
355
305
|
<div class="method-heading">
|
|
356
|
-
<a href="
|
|
306
|
+
<a href="Ddt.src/M000255.html" target="Code" class="method-signature"
|
|
307
|
+
onclick="popupCode('Ddt.src/M000255.html');return false;">
|
|
357
308
|
<span class="method-name">get_channels</span><span class="method-args">()</span>
|
|
358
309
|
</a>
|
|
359
310
|
</div>
|
|
@@ -362,26 +313,15 @@ returns the session id‘s of all existing Studio Verify sessions
|
|
|
362
313
|
<p>
|
|
363
314
|
returns the channel elements of the loaded scenario
|
|
364
315
|
</p>
|
|
365
|
-
<p><a class="source-toggle" href="#"
|
|
366
|
-
onclick="toggleCode('M000319-source');return false;">[Source]</a></p>
|
|
367
|
-
<div class="method-source-code" id="M000319-source">
|
|
368
|
-
<pre>
|
|
369
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 127</span>
|
|
370
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_channels</span>
|
|
371
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">"session/scenario/channels"</span>)
|
|
372
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
373
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
374
|
-
<span class="ruby-keyword kw">end</span>
|
|
375
|
-
</pre>
|
|
376
|
-
</div>
|
|
377
316
|
</div>
|
|
378
317
|
</div>
|
|
379
318
|
|
|
380
|
-
<div id="method-
|
|
381
|
-
<a name="
|
|
319
|
+
<div id="method-M000253" class="method-detail">
|
|
320
|
+
<a name="M000253"></a>
|
|
382
321
|
|
|
383
322
|
<div class="method-heading">
|
|
384
|
-
<a href="
|
|
323
|
+
<a href="Ddt.src/M000253.html" target="Code" class="method-signature"
|
|
324
|
+
onclick="popupCode('Ddt.src/M000253.html');return false;">
|
|
385
325
|
<span class="method-name">get_hosts</span><span class="method-args">()</span>
|
|
386
326
|
</a>
|
|
387
327
|
</div>
|
|
@@ -390,26 +330,15 @@ returns the channel elements of the loaded scenario
|
|
|
390
330
|
<p>
|
|
391
331
|
returns the hosts in the loaded scenario
|
|
392
332
|
</p>
|
|
393
|
-
<p><a class="source-toggle" href="#"
|
|
394
|
-
onclick="toggleCode('M000317-source');return false;">[Source]</a></p>
|
|
395
|
-
<div class="method-source-code" id="M000317-source">
|
|
396
|
-
<pre>
|
|
397
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 105</span>
|
|
398
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_hosts</span>
|
|
399
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">"session/scenario/hosts"</span>)
|
|
400
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
401
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
402
|
-
<span class="ruby-keyword kw">end</span>
|
|
403
|
-
</pre>
|
|
404
|
-
</div>
|
|
405
333
|
</div>
|
|
406
334
|
</div>
|
|
407
335
|
|
|
408
|
-
<div id="method-
|
|
409
|
-
<a name="
|
|
336
|
+
<div id="method-M000257" class="method-detail">
|
|
337
|
+
<a name="M000257"></a>
|
|
410
338
|
|
|
411
339
|
<div class="method-heading">
|
|
412
|
-
<a href="
|
|
340
|
+
<a href="Ddt.src/M000257.html" target="Code" class="method-signature"
|
|
341
|
+
onclick="popupCode('Ddt.src/M000257.html');return false;">
|
|
413
342
|
<span class="method-name">get_options</span><span class="method-args">()</span>
|
|
414
343
|
</a>
|
|
415
344
|
</div>
|
|
@@ -418,26 +347,15 @@ returns the hosts in the loaded scenario
|
|
|
418
347
|
<p>
|
|
419
348
|
returns the options from the loaded scenario
|
|
420
349
|
</p>
|
|
421
|
-
<p><a class="source-toggle" href="#"
|
|
422
|
-
onclick="toggleCode('M000321-source');return false;">[Source]</a></p>
|
|
423
|
-
<div class="method-source-code" id="M000321-source">
|
|
424
|
-
<pre>
|
|
425
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 147</span>
|
|
426
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_options</span>
|
|
427
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">"session/scenario/options"</span>)
|
|
428
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
429
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
430
|
-
<span class="ruby-keyword kw">end</span>
|
|
431
|
-
</pre>
|
|
432
|
-
</div>
|
|
433
350
|
</div>
|
|
434
351
|
</div>
|
|
435
352
|
|
|
436
|
-
<div id="method-
|
|
437
|
-
<a name="
|
|
353
|
+
<div id="method-M000247" class="method-detail">
|
|
354
|
+
<a name="M000247"></a>
|
|
438
355
|
|
|
439
356
|
<div class="method-heading">
|
|
440
|
-
<a href="
|
|
357
|
+
<a href="Ddt.src/M000247.html" target="Code" class="method-signature"
|
|
358
|
+
onclick="popupCode('Ddt.src/M000247.html');return false;">
|
|
441
359
|
<span class="method-name">get_sessions</span><span class="method-args">()</span>
|
|
442
360
|
</a>
|
|
443
361
|
</div>
|
|
@@ -446,38 +364,15 @@ returns the options from the loaded scenario
|
|
|
446
364
|
<p>
|
|
447
365
|
returns array of session_ids
|
|
448
366
|
</p>
|
|
449
|
-
<p><a class="source-toggle" href="#"
|
|
450
|
-
onclick="toggleCode('M000311-source');return false;">[Source]</a></p>
|
|
451
|
-
<div class="method-source-code" id="M000311-source">
|
|
452
|
-
<pre>
|
|
453
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 50</span>
|
|
454
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_sessions</span>
|
|
455
|
-
<span class="ruby-identifier">all_sessions</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
|
456
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">""</span>) <span class="ruby-comment cmt"># with no args</span>
|
|
457
|
-
<span class="ruby-identifier">sessions</span> = <span class="ruby-identifier">response</span>[<span class="ruby-value str">"sessions"</span>]
|
|
458
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">sessions</span>[<span class="ruby-value str">"session"</span>].<span class="ruby-identifier">nil?</span>
|
|
459
|
-
<span class="ruby-identifier">num</span> = <span class="ruby-identifier">sessions</span>[<span class="ruby-value str">"session"</span>].<span class="ruby-identifier">size</span>
|
|
460
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">num</span> <span class="ruby-operator">></span> <span class="ruby-value">1</span>
|
|
461
|
-
<span class="ruby-identifier">sessions</span>[<span class="ruby-value str">"session"</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">s</span> <span class="ruby-operator">|</span>
|
|
462
|
-
<span class="ruby-identifier">all_sessions</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">s</span>[<span class="ruby-value str">"id"</span>]
|
|
463
|
-
<span class="ruby-keyword kw">end</span>
|
|
464
|
-
<span class="ruby-keyword kw">else</span> <span class="ruby-comment cmt"># special case if there is only one (there is no array)</span>
|
|
465
|
-
<span class="ruby-identifier">all_sessions</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">sessions</span>[<span class="ruby-value str">"session"</span>][<span class="ruby-value str">"id"</span>]
|
|
466
|
-
<span class="ruby-keyword kw">end</span>
|
|
467
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">all_sessions</span>
|
|
468
|
-
<span class="ruby-keyword kw">end</span>
|
|
469
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
|
470
|
-
<span class="ruby-keyword kw">end</span>
|
|
471
|
-
</pre>
|
|
472
|
-
</div>
|
|
473
367
|
</div>
|
|
474
368
|
</div>
|
|
475
369
|
|
|
476
|
-
<div id="method-
|
|
477
|
-
<a name="
|
|
370
|
+
<div id="method-M000262" class="method-detail">
|
|
371
|
+
<a name="M000262"></a>
|
|
478
372
|
|
|
479
373
|
<div class="method-heading">
|
|
480
|
-
<a href="
|
|
374
|
+
<a href="Ddt.src/M000262.html" target="Code" class="method-signature"
|
|
375
|
+
onclick="popupCode('Ddt.src/M000262.html');return false;">
|
|
481
376
|
<span class="method-name">get_testset_results</span><span class="method-args">()</span>
|
|
482
377
|
</a>
|
|
483
378
|
</div>
|
|
@@ -487,26 +382,15 @@ returns array of session_ids
|
|
|
487
382
|
returns the results of a running test set. can be called repeatedly. the
|
|
488
383
|
test is done when the results include the ‘END’ keyword
|
|
489
384
|
</p>
|
|
490
|
-
<p><a class="source-toggle" href="#"
|
|
491
|
-
onclick="toggleCode('M000326-source');return false;">[Source]</a></p>
|
|
492
|
-
<div class="method-source-code" id="M000326-source">
|
|
493
|
-
<pre>
|
|
494
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 206</span>
|
|
495
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_testset_results</span>
|
|
496
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">"session/test/runSuite/results"</span>)
|
|
497
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
498
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
499
|
-
<span class="ruby-keyword kw">end</span>
|
|
500
|
-
</pre>
|
|
501
|
-
</div>
|
|
502
385
|
</div>
|
|
503
386
|
</div>
|
|
504
387
|
|
|
505
|
-
<div id="method-
|
|
506
|
-
<a name="
|
|
388
|
+
<div id="method-M000261" class="method-detail">
|
|
389
|
+
<a name="M000261"></a>
|
|
507
390
|
|
|
508
391
|
<div class="method-heading">
|
|
509
|
-
<a href="
|
|
392
|
+
<a href="Ddt.src/M000261.html" target="Code" class="method-signature"
|
|
393
|
+
onclick="popupCode('Ddt.src/M000261.html');return false;">
|
|
510
394
|
<span class="method-name">get_testset_status</span><span class="method-args">()</span>
|
|
511
395
|
</a>
|
|
512
396
|
</div>
|
|
@@ -515,26 +399,15 @@ test is done when the results include the ‘END’ keyword
|
|
|
515
399
|
<p>
|
|
516
400
|
returns the status of a running test set
|
|
517
401
|
</p>
|
|
518
|
-
<p><a class="source-toggle" href="#"
|
|
519
|
-
onclick="toggleCode('M000325-source');return false;">[Source]</a></p>
|
|
520
|
-
<div class="method-source-code" id="M000325-source">
|
|
521
|
-
<pre>
|
|
522
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 198</span>
|
|
523
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_testset_status</span>
|
|
524
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">"session/test/runSuite/status"</span>)
|
|
525
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
526
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
527
|
-
<span class="ruby-keyword kw">end</span>
|
|
528
|
-
</pre>
|
|
529
|
-
</div>
|
|
530
402
|
</div>
|
|
531
403
|
</div>
|
|
532
404
|
|
|
533
|
-
<div id="method-
|
|
534
|
-
<a name="
|
|
405
|
+
<div id="method-M000252" class="method-detail">
|
|
406
|
+
<a name="M000252"></a>
|
|
535
407
|
|
|
536
408
|
<div class="method-heading">
|
|
537
|
-
<a href="
|
|
409
|
+
<a href="Ddt.src/M000252.html" target="Code" class="method-signature"
|
|
410
|
+
onclick="popupCode('Ddt.src/M000252.html');return false;">
|
|
538
411
|
<span class="method-name">load_scenario</span><span class="method-args">(uuid)</span>
|
|
539
412
|
</a>
|
|
540
413
|
</div>
|
|
@@ -546,58 +419,33 @@ loads a scenario
|
|
|
546
419
|
<pre>
|
|
547
420
|
* the uuid of a scenario present on the Mu
|
|
548
421
|
</pre>
|
|
549
|
-
<p><a class="source-toggle" href="#"
|
|
550
|
-
onclick="toggleCode('M000316-source');return false;">[Source]</a></p>
|
|
551
|
-
<div class="method-source-code" id="M000316-source">
|
|
552
|
-
<pre>
|
|
553
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 98</span>
|
|
554
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load_scenario</span>(<span class="ruby-identifier">uuid</span>)
|
|
555
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post</span>(<span class="ruby-node">"session/loadScenario/#{uuid}"</span>)
|
|
556
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
557
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
558
|
-
<span class="ruby-keyword kw">end</span>
|
|
559
|
-
</pre>
|
|
560
|
-
</div>
|
|
561
422
|
</div>
|
|
562
423
|
</div>
|
|
563
424
|
|
|
564
|
-
<div id="method-
|
|
565
|
-
<a name="
|
|
425
|
+
<div id="method-M000245" class="method-detail">
|
|
426
|
+
<a name="M000245"></a>
|
|
566
427
|
|
|
567
428
|
<div class="method-heading">
|
|
568
|
-
<a href="
|
|
429
|
+
<a href="Ddt.src/M000245.html" target="Code" class="method-signature"
|
|
430
|
+
onclick="popupCode('Ddt.src/M000245.html');return false;">
|
|
569
431
|
<span class="method-name">new_session</span><span class="method-args">()</span>
|
|
570
432
|
</a>
|
|
571
433
|
</div>
|
|
572
434
|
|
|
573
435
|
<div class="method-description">
|
|
574
436
|
<p>
|
|
575
|
-
must be called first to establish a <a href="Ddt.html#
|
|
437
|
+
must be called first to establish a <a href="Ddt.html#M000242">new</a>
|
|
576
438
|
Studio Verify session
|
|
577
439
|
</p>
|
|
578
|
-
<p><a class="source-toggle" href="#"
|
|
579
|
-
onclick="toggleCode('M000309-source');return false;">[Source]</a></p>
|
|
580
|
-
<div class="method-source-code" id="M000309-source">
|
|
581
|
-
<pre>
|
|
582
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 33</span>
|
|
583
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">new_session</span>
|
|
584
|
-
<span class="ruby-identifier">reply</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post</span>(<span class="ruby-value str">"newSession"</span>) <span class="ruby-comment cmt"># with no args</span>
|
|
585
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-identifier">reply</span>[<span class="ruby-value str">"response"</span>]
|
|
586
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
587
|
-
<span class="ruby-ivar">@session_id</span> = <span class="ruby-identifier">response</span>[<span class="ruby-value str">"sessionId"</span>]
|
|
588
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-ivar">@session_id</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
589
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@session_id</span>
|
|
590
|
-
<span class="ruby-keyword kw">end</span>
|
|
591
|
-
</pre>
|
|
592
|
-
</div>
|
|
593
440
|
</div>
|
|
594
441
|
</div>
|
|
595
442
|
|
|
596
|
-
<div id="method-
|
|
597
|
-
<a name="
|
|
443
|
+
<div id="method-M000243" class="method-detail">
|
|
444
|
+
<a name="M000243"></a>
|
|
598
445
|
|
|
599
446
|
<div class="method-heading">
|
|
600
|
-
<a href="
|
|
447
|
+
<a href="Ddt.src/M000243.html" target="Code" class="method-signature"
|
|
448
|
+
onclick="popupCode('Ddt.src/M000243.html');return false;">
|
|
601
449
|
<span class="method-name">run</span><span class="method-args">()</span>
|
|
602
450
|
</a>
|
|
603
451
|
</div>
|
|
@@ -606,26 +454,15 @@ Studio Verify session
|
|
|
606
454
|
<p>
|
|
607
455
|
verifies the loaded scenario
|
|
608
456
|
</p>
|
|
609
|
-
<p><a class="source-toggle" href="#"
|
|
610
|
-
onclick="toggleCode('M000307-source');return false;">[Source]</a></p>
|
|
611
|
-
<div class="method-source-code" id="M000307-source">
|
|
612
|
-
<pre>
|
|
613
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 18</span>
|
|
614
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>
|
|
615
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post</span>(<span class="ruby-value str">"session/test/run"</span>)
|
|
616
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
617
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
618
|
-
<span class="ruby-keyword kw">end</span>
|
|
619
|
-
</pre>
|
|
620
|
-
</div>
|
|
621
457
|
</div>
|
|
622
458
|
</div>
|
|
623
459
|
|
|
624
|
-
<div id="method-
|
|
625
|
-
<a name="
|
|
460
|
+
<div id="method-M000244" class="method-detail">
|
|
461
|
+
<a name="M000244"></a>
|
|
626
462
|
|
|
627
463
|
<div class="method-heading">
|
|
628
|
-
<a href="
|
|
464
|
+
<a href="Ddt.src/M000244.html" target="Code" class="method-signature"
|
|
465
|
+
onclick="popupCode('Ddt.src/M000244.html');return false;">
|
|
629
466
|
<span class="method-name">run_testset</span><span class="method-args">(uuid)</span>
|
|
630
467
|
</a>
|
|
631
468
|
</div>
|
|
@@ -637,26 +474,15 @@ sets and executes test suite
|
|
|
637
474
|
<pre>
|
|
638
475
|
* uuid = the uuid of a testset loaded on the Mu
|
|
639
476
|
</pre>
|
|
640
|
-
<p><a class="source-toggle" href="#"
|
|
641
|
-
onclick="toggleCode('M000308-source');return false;">[Source]</a></p>
|
|
642
|
-
<div class="method-source-code" id="M000308-source">
|
|
643
|
-
<pre>
|
|
644
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 26</span>
|
|
645
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_testset</span>(<span class="ruby-identifier">uuid</span>)
|
|
646
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post</span>(<span class="ruby-node">"session/test/runSuite/#{uuid}"</span>)
|
|
647
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
648
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
649
|
-
<span class="ruby-keyword kw">end</span>
|
|
650
|
-
</pre>
|
|
651
|
-
</div>
|
|
652
477
|
</div>
|
|
653
478
|
</div>
|
|
654
479
|
|
|
655
|
-
<div id="method-
|
|
656
|
-
<a name="
|
|
480
|
+
<div id="method-M000256" class="method-detail">
|
|
481
|
+
<a name="M000256"></a>
|
|
657
482
|
|
|
658
483
|
<div class="method-heading">
|
|
659
|
-
<a href="
|
|
484
|
+
<a href="Ddt.src/M000256.html" target="Code" class="method-signature"
|
|
485
|
+
onclick="popupCode('Ddt.src/M000256.html');return false;">
|
|
660
486
|
<span class="method-name">set_channels</span><span class="method-args">(roles=[], names=[])</span>
|
|
661
487
|
</a>
|
|
662
488
|
</div>
|
|
@@ -669,30 +495,15 @@ sets the channel elements of the loaded scenario
|
|
|
669
495
|
* roles = an array of the roles defined for the channels in the scenario ('channel')
|
|
670
496
|
* names = an array of host names to be mapped to the roles
|
|
671
497
|
</pre>
|
|
672
|
-
<p><a class="source-toggle" href="#"
|
|
673
|
-
onclick="toggleCode('M000320-source');return false;">[Source]</a></p>
|
|
674
|
-
<div class="method-source-code" id="M000320-source">
|
|
675
|
-
<pre>
|
|
676
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 136</span>
|
|
677
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_channels</span>(<span class="ruby-identifier">roles</span>=[], <span class="ruby-identifier">names</span>=[])
|
|
678
|
-
<span class="ruby-identifier">responses</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
|
679
|
-
<span class="ruby-identifier">roles</span>.<span class="ruby-identifier">length</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">i</span> <span class="ruby-operator">|</span>
|
|
680
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post</span>(<span class="ruby-node">"session/scenario/channels/#{roles[i]}/#{names[i]}"</span>)
|
|
681
|
-
<span class="ruby-identifier">responses</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">response</span>
|
|
682
|
-
<span class="ruby-keyword kw">end</span>
|
|
683
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">responses</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
684
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">responses</span>
|
|
685
|
-
<span class="ruby-keyword kw">end</span>
|
|
686
|
-
</pre>
|
|
687
|
-
</div>
|
|
688
498
|
</div>
|
|
689
499
|
</div>
|
|
690
500
|
|
|
691
|
-
<div id="method-
|
|
692
|
-
<a name="
|
|
501
|
+
<div id="method-M000254" class="method-detail">
|
|
502
|
+
<a name="M000254"></a>
|
|
693
503
|
|
|
694
504
|
<div class="method-heading">
|
|
695
|
-
<a href="
|
|
505
|
+
<a href="Ddt.src/M000254.html" target="Code" class="method-signature"
|
|
506
|
+
onclick="popupCode('Ddt.src/M000254.html');return false;">
|
|
696
507
|
<span class="method-name">set_hosts</span><span class="method-args">(roles=[], names=[], type="v4")</span>
|
|
697
508
|
</a>
|
|
698
509
|
</div>
|
|
@@ -706,31 +517,15 @@ sets the hosts in the loaded scenario
|
|
|
706
517
|
* names = an array of host names to be mapped to the roles
|
|
707
518
|
* type = network layer type (v4, v6 or l2) matching the defined hosts
|
|
708
519
|
</pre>
|
|
709
|
-
<p><a class="source-toggle" href="#"
|
|
710
|
-
onclick="toggleCode('M000318-source');return false;">[Source]</a></p>
|
|
711
|
-
<div class="method-source-code" id="M000318-source">
|
|
712
|
-
<pre>
|
|
713
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 115</span>
|
|
714
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_hosts</span>(<span class="ruby-identifier">roles</span>=[], <span class="ruby-identifier">names</span>=[], <span class="ruby-identifier">type</span>=<span class="ruby-value str">"v4"</span>)
|
|
715
|
-
<span class="ruby-identifier">responses</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
|
716
|
-
<span class="ruby-identifier">hosts</span> = <span class="ruby-identifier">roles</span>.<span class="ruby-identifier">length</span>.<span class="ruby-identifier">to_i</span>
|
|
717
|
-
<span class="ruby-identifier">hosts</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">i</span> <span class="ruby-operator">|</span>
|
|
718
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post</span>(<span class="ruby-node">"session/scenario/hosts/#{roles[i]}/#{names[i]}/#{type}"</span>)
|
|
719
|
-
<span class="ruby-identifier">responses</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">response</span>
|
|
720
|
-
<span class="ruby-keyword kw">end</span>
|
|
721
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">responses</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
722
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">responses</span>
|
|
723
|
-
<span class="ruby-keyword kw">end</span>
|
|
724
|
-
</pre>
|
|
725
|
-
</div>
|
|
726
520
|
</div>
|
|
727
521
|
</div>
|
|
728
522
|
|
|
729
|
-
<div id="method-
|
|
730
|
-
<a name="
|
|
523
|
+
<div id="method-M000258" class="method-detail">
|
|
524
|
+
<a name="M000258"></a>
|
|
731
525
|
|
|
732
526
|
<div class="method-heading">
|
|
733
|
-
<a href="
|
|
527
|
+
<a href="Ddt.src/M000258.html" target="Code" class="method-signature"
|
|
528
|
+
onclick="popupCode('Ddt.src/M000258.html');return false;">
|
|
734
529
|
<span class="method-name">set_options</span><span class="method-args">(names=[], values=[])</span>
|
|
735
530
|
</a>
|
|
736
531
|
</div>
|
|
@@ -743,58 +538,32 @@ sets the options for the loaded scenario
|
|
|
743
538
|
* an array of option names
|
|
744
539
|
* an array of option values
|
|
745
540
|
</pre>
|
|
746
|
-
<p><a class="source-toggle" href="#"
|
|
747
|
-
onclick="toggleCode('M000322-source');return false;">[Source]</a></p>
|
|
748
|
-
<div class="method-source-code" id="M000322-source">
|
|
749
|
-
<pre>
|
|
750
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 156</span>
|
|
751
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_options</span>(<span class="ruby-identifier">names</span>=[], <span class="ruby-identifier">values</span>=[])
|
|
752
|
-
<span class="ruby-identifier">responses</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
|
753
|
-
<span class="ruby-identifier">names</span>.<span class="ruby-identifier">length</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">i</span> <span class="ruby-operator">|</span>
|
|
754
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post</span>(<span class="ruby-node">"session/scenario/options/#{names[i]}/#{values[i]}"</span>)
|
|
755
|
-
<span class="ruby-identifier">responses</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">response</span>
|
|
756
|
-
<span class="ruby-keyword kw">end</span>
|
|
757
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">responses</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
758
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">responses</span>
|
|
759
|
-
<span class="ruby-keyword kw">end</span>
|
|
760
|
-
</pre>
|
|
761
|
-
</div>
|
|
762
541
|
</div>
|
|
763
542
|
</div>
|
|
764
543
|
|
|
765
|
-
<div id="method-
|
|
766
|
-
<a name="
|
|
544
|
+
<div id="method-M000250" class="method-detail">
|
|
545
|
+
<a name="M000250"></a>
|
|
767
546
|
|
|
768
547
|
<div class="method-heading">
|
|
769
|
-
<a href="
|
|
548
|
+
<a href="Ddt.src/M000250.html" target="Code" class="method-signature"
|
|
549
|
+
onclick="popupCode('Ddt.src/M000250.html');return false;">
|
|
770
550
|
<span class="method-name">setup_test</span><span class="method-args">()</span>
|
|
771
551
|
</a>
|
|
772
552
|
</div>
|
|
773
553
|
|
|
774
554
|
<div class="method-description">
|
|
775
555
|
<p>
|
|
776
|
-
sets up a test for <a href="Ddt.html#
|
|
556
|
+
sets up a test for <a href="Ddt.html#M000243">run</a>
|
|
777
557
|
</p>
|
|
778
|
-
<p><a class="source-toggle" href="#"
|
|
779
|
-
onclick="toggleCode('M000314-source');return false;">[Source]</a></p>
|
|
780
|
-
<div class="method-source-code" id="M000314-source">
|
|
781
|
-
<pre>
|
|
782
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 83</span>
|
|
783
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup_test</span>
|
|
784
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post</span>(<span class="ruby-value str">"session/setupTest"</span>)
|
|
785
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
786
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
787
|
-
<span class="ruby-keyword kw">end</span>
|
|
788
|
-
</pre>
|
|
789
|
-
</div>
|
|
790
558
|
</div>
|
|
791
559
|
</div>
|
|
792
560
|
|
|
793
|
-
<div id="method-
|
|
794
|
-
<a name="
|
|
561
|
+
<div id="method-M000251" class="method-detail">
|
|
562
|
+
<a name="M000251"></a>
|
|
795
563
|
|
|
796
564
|
<div class="method-heading">
|
|
797
|
-
<a href="
|
|
565
|
+
<a href="Ddt.src/M000251.html" target="Code" class="method-signature"
|
|
566
|
+
onclick="popupCode('Ddt.src/M000251.html');return false;">
|
|
798
567
|
<span class="method-name">teardown_test</span><span class="method-args">()</span>
|
|
799
568
|
</a>
|
|
800
569
|
</div>
|
|
@@ -803,26 +572,15 @@ sets up a test for <a href="Ddt.html#M000307">run</a>
|
|
|
803
572
|
<p>
|
|
804
573
|
tears down a test
|
|
805
574
|
</p>
|
|
806
|
-
<p><a class="source-toggle" href="#"
|
|
807
|
-
onclick="toggleCode('M000315-source');return false;">[Source]</a></p>
|
|
808
|
-
<div class="method-source-code" id="M000315-source">
|
|
809
|
-
<pre>
|
|
810
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 90</span>
|
|
811
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">teardown_test</span>
|
|
812
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post</span>(<span class="ruby-value str">"session/test/tearDownTest"</span>)
|
|
813
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
814
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
815
|
-
<span class="ruby-keyword kw">end</span>
|
|
816
|
-
</pre>
|
|
817
|
-
</div>
|
|
818
575
|
</div>
|
|
819
576
|
</div>
|
|
820
577
|
|
|
821
|
-
<div id="method-
|
|
822
|
-
<a name="
|
|
578
|
+
<div id="method-M000260" class="method-detail">
|
|
579
|
+
<a name="M000260"></a>
|
|
823
580
|
|
|
824
581
|
<div class="method-heading">
|
|
825
|
-
<a href="
|
|
582
|
+
<a href="Ddt.src/M000260.html" target="Code" class="method-signature"
|
|
583
|
+
onclick="popupCode('Ddt.src/M000260.html');return false;">
|
|
826
584
|
<span class="method-name">wait_until_done</span><span class="method-args">(timeout=120)</span>
|
|
827
585
|
</a>
|
|
828
586
|
</div>
|
|
@@ -834,68 +592,6 @@ waits until the test is done or the timeout expires
|
|
|
834
592
|
<pre>
|
|
835
593
|
* timeout = the time in seconds to wait for the test to complete
|
|
836
594
|
</pre>
|
|
837
|
-
<p><a class="source-toggle" href="#"
|
|
838
|
-
onclick="toggleCode('M000324-source');return false;">[Source]</a></p>
|
|
839
|
-
<div class="method-source-code" id="M000324-source">
|
|
840
|
-
<pre>
|
|
841
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 176</span>
|
|
842
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">wait_until_done</span>(<span class="ruby-identifier">timeout</span>=<span class="ruby-value">120</span>)
|
|
843
|
-
<span class="ruby-identifier">finished</span> = <span class="ruby-keyword kw">false</span>
|
|
844
|
-
<span class="ruby-identifier">interval</span> = <span class="ruby-identifier">timeout</span> <span class="ruby-operator">/</span> <span class="ruby-value">10</span>
|
|
845
|
-
<span class="ruby-value">10</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span>
|
|
846
|
-
<span class="ruby-keyword kw">begin</span>
|
|
847
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-identifier">get_testset_status</span>
|
|
848
|
-
<span class="ruby-comment cmt">#msg "wait_until_done, response = #{response}", Logger::DEBUG</span>
|
|
849
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">response</span>.<span class="ruby-identifier">nil?</span>
|
|
850
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">response</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">"Done"</span>)
|
|
851
|
-
<span class="ruby-identifier">finished</span> = <span class="ruby-keyword kw">true</span>
|
|
852
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">finished</span>
|
|
853
|
-
<span class="ruby-keyword kw">end</span>
|
|
854
|
-
<span class="ruby-keyword kw">end</span>
|
|
855
|
-
<span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
|
856
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">e</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span> <span class="ruby-comment cmt"># status may not be ready right away. may return a 500</span>
|
|
857
|
-
<span class="ruby-keyword kw">end</span>
|
|
858
|
-
<span class="ruby-identifier">sleep</span> <span class="ruby-identifier">interval</span>
|
|
859
|
-
<span class="ruby-keyword kw">end</span>
|
|
860
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">finished</span>
|
|
861
|
-
<span class="ruby-keyword kw">end</span>
|
|
862
|
-
</pre>
|
|
863
|
-
</div>
|
|
864
|
-
</div>
|
|
865
|
-
</div>
|
|
866
|
-
|
|
867
|
-
<h3 class="section-bar">Private Instance methods</h3>
|
|
868
|
-
|
|
869
|
-
<div id="method-M000328" class="method-detail">
|
|
870
|
-
<a name="M000328"></a>
|
|
871
|
-
|
|
872
|
-
<div class="method-heading">
|
|
873
|
-
<a href="#M000328" class="method-signature">
|
|
874
|
-
<span class="method-name">csv_import</span><span class="method-args">(filepath, filename)</span>
|
|
875
|
-
</a>
|
|
876
|
-
</div>
|
|
877
|
-
|
|
878
|
-
<div class="method-description">
|
|
879
|
-
<p>
|
|
880
|
-
imports a csv file to the <a href="../Mu.html">Mu</a> (TODO: this method is
|
|
881
|
-
not yet working)
|
|
882
|
-
</p>
|
|
883
|
-
<pre>
|
|
884
|
-
* filepath = the path to the csv file
|
|
885
|
-
* filename = the name with which to save the file on the Mu
|
|
886
|
-
</pre>
|
|
887
|
-
<p><a class="source-toggle" href="#"
|
|
888
|
-
onclick="toggleCode('M000328-source');return false;">[Source]</a></p>
|
|
889
|
-
<div class="method-source-code" id="M000328-source">
|
|
890
|
-
<pre>
|
|
891
|
-
<span class="ruby-comment cmt"># File lib/mu/api/ddt.rb, line 226</span>
|
|
892
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">csv_import</span>(<span class="ruby-identifier">filepath</span>, <span class="ruby-identifier">filename</span>)
|
|
893
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post_form</span>(<span class="ruby-value str">"session/test/import/csv"</span>, <span class="ruby-identifier">filepath</span>, <span class="ruby-identifier">filename</span>)
|
|
894
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
895
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
896
|
-
<span class="ruby-keyword kw">end</span>
|
|
897
|
-
</pre>
|
|
898
|
-
</div>
|
|
899
595
|
</div>
|
|
900
596
|
</div>
|
|
901
597
|
|