mu 5.7.2.3 → 5.7.2.4
Sign up to get free protection for your applications and to get access to all the features.
- 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,20 @@
|
|
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>test_homepage_status (TCTestMu)</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 test/tc_test_mu.rb, line 243</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_homepage_status</span>
|
15
|
+
<span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Command</span><span class="ruby-operator">::</span><span class="ruby-constant">Cmd_homepage</span>.<span class="ruby-identifier">new</span>
|
16
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-constant">JSON</span> <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_status</span> []
|
17
|
+
<span class="ruby-identifier">assert</span> <span class="ruby-identifier">result</span>[<span class="ruby-value">0</span>][<span class="ruby-value str">"title"</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">"Licenses"</span>, <span class="ruby-value str">"expected 'Licenses'"</span>
|
18
|
+
<span class="ruby-keyword kw">end</span></pre>
|
19
|
+
</body>
|
20
|
+
</html>
|
@@ -0,0 +1,20 @@
|
|
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>test_homepage_recent (TCTestMu)</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 test/tc_test_mu.rb, line 249</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_homepage_recent</span>
|
15
|
+
<span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Command</span><span class="ruby-operator">::</span><span class="ruby-constant">Cmd_homepage</span>.<span class="ruby-identifier">new</span>
|
16
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-constant">JSON</span> <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_recent</span> []
|
17
|
+
<span class="ruby-identifier">assert</span> <span class="ruby-operator">!</span><span class="ruby-identifier">result</span>[<span class="ruby-value">0</span>][<span class="ruby-value str">"summary"</span>].<span class="ruby-identifier">nil?</span>, <span class="ruby-value str">"expected to find a summary field but didn't"</span>
|
18
|
+
<span class="ruby-keyword kw">end</span></pre>
|
19
|
+
</body>
|
20
|
+
</html>
|
@@ -0,0 +1,20 @@
|
|
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>test_homepage_all (TCTestMu)</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 test/tc_test_mu.rb, line 255</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_homepage_all</span>
|
15
|
+
<span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Command</span><span class="ruby-operator">::</span><span class="ruby-constant">Cmd_homepage</span>.<span class="ruby-identifier">new</span>
|
16
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-constant">JSON</span> <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_all</span> []
|
17
|
+
<span class="ruby-identifier">assert</span> <span class="ruby-operator">!</span><span class="ruby-identifier">result</span>[<span class="ruby-value str">"status"</span>].<span class="ruby-identifier">nil?</span>, <span class="ruby-value str">"expected to find a status field but didn't"</span>
|
18
|
+
<span class="ruby-keyword kw">end</span></pre>
|
19
|
+
</body>
|
20
|
+
</html>
|
@@ -0,0 +1,20 @@
|
|
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>test_homepage_latest_test (TCTestMu)</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 test/tc_test_mu.rb, line 261</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_homepage_latest_test</span>
|
15
|
+
<span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Command</span><span class="ruby-operator">::</span><span class="ruby-constant">Cmd_homepage</span>.<span class="ruby-identifier">new</span>
|
16
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-constant">JSON</span> <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_latest_test</span> []
|
17
|
+
<span class="ruby-identifier">assert</span> <span class="ruby-operator">!</span><span class="ruby-identifier">result</span>.<span class="ruby-identifier">nil?</span>, <span class="ruby-value str">"expected to get something back but didn't"</span>
|
18
|
+
<span class="ruby-keyword kw">end</span></pre>
|
19
|
+
</body>
|
20
|
+
</html>
|
@@ -0,0 +1,20 @@
|
|
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>test_homepage_new (TCTestMu)</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 test/tc_test_mu.rb, line 269</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_homepage_new</span>
|
15
|
+
<span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Homepage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@mu_ip</span>, <span class="ruby-ivar">@mu_admin_user</span>, <span class="ruby-ivar">@mu_admin_pass</span>)
|
16
|
+
<span class="ruby-identifier">assert</span>(<span class="ruby-identifier">api</span>.<span class="ruby-identifier">host</span> <span class="ruby-operator">==</span> <span class="ruby-ivar">@mu_ip</span>, <span class="ruby-value str">"failed to set mu_ip"</span>)
|
17
|
+
<span class="ruby-identifier">assert</span>(<span class="ruby-identifier">api</span>.<span class="ruby-identifier">docroot</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"/api/v5/homepage/"</span>, <span class="ruby-value str">"failed to set docroot"</span>)
|
18
|
+
<span class="ruby-keyword kw">end</span></pre>
|
19
|
+
</body>
|
20
|
+
</html>
|
@@ -0,0 +1,20 @@
|
|
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>test_cmd_muapi_types (TCTestMu)</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 test/tc_test_mu.rb, line 277</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_muapi_types</span>
|
15
|
+
<span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Command</span><span class="ruby-operator">::</span><span class="ruby-constant">Cmd_muapi</span>.<span class="ruby-identifier">new</span>
|
16
|
+
<span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_types</span> []
|
17
|
+
<span class="ruby-identifier">assert</span>(<span class="ruby-identifier">response</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">"scenario"</span>), <span class="ruby-node">"expected scenario got #{response}"</span>)
|
18
|
+
<span class="ruby-keyword kw">end</span></pre>
|
19
|
+
</body>
|
20
|
+
</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>test_cmd_muapi_export_by_uuid (TCTestMu)</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 test/tc_test_mu.rb, line 283</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_muapi_export_by_uuid</span>
|
15
|
+
<span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Command</span><span class="ruby-operator">::</span><span class="ruby-constant">Cmd_muapi</span>.<span class="ruby-identifier">new</span>
|
16
|
+
<span class="ruby-identifier">scenario_uuid</span> = <span class="ruby-value str">"379a4cf8-8fe7-4d2d-8f6b-b8c6b71557b4"</span> <span class="ruby-comment cmt"># ftp_with_channel</span>
|
17
|
+
<span class="ruby-identifier">http_helper</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">HttpHelper</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@mu_ip</span>, <span class="ruby-ivar">@mu_admin_user</span>, <span class="ruby-ivar">@mu_admin_pass</span>, <span class="ruby-value str">"/api/v3/"</span>)
|
18
|
+
<span class="ruby-identifier">http_helper</span>.<span class="ruby-identifier">post_xml</span>(<span class="ruby-value str">"templates/import"</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-node">"#{Dir.pwd}/test/data/ftp_with_channel.xml"</span>))
|
19
|
+
<span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_export_by_uuid</span>([<span class="ruby-value str">"-u"</span>, <span class="ruby-identifier">scenario_uuid</span>]).<span class="ruby-identifier">to_s</span>
|
20
|
+
<span class="ruby-identifier">assert</span> <span class="ruby-identifier">response</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">scenario_uuid</span>), <span class="ruby-node">"expected #{scenario_uuid} but did not find it"</span>
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
22
|
+
</body>
|
23
|
+
</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>test_cmd_muapi_export_by_type_and_name (TCTestMu)</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 test/tc_test_mu.rb, line 292</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_muapi_export_by_type_and_name</span>
|
15
|
+
<span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Command</span><span class="ruby-operator">::</span><span class="ruby-constant">Cmd_muapi</span>.<span class="ruby-identifier">new</span>
|
16
|
+
<span class="ruby-identifier">scenario_uuid</span> = <span class="ruby-value str">"379a4cf8-8fe7-4d2d-8f6b-b8c6b71557b4"</span> <span class="ruby-comment cmt"># ftp_with_channel</span>
|
17
|
+
<span class="ruby-identifier">http_helper</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">HttpHelper</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@mu_ip</span>, <span class="ruby-ivar">@mu_admin_user</span>, <span class="ruby-ivar">@mu_admin_pass</span>, <span class="ruby-value str">"/api/v3/"</span>)
|
18
|
+
<span class="ruby-identifier">http_helper</span>.<span class="ruby-identifier">post_xml</span>(<span class="ruby-value str">"templates/import"</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-node">"#{Dir.pwd}/test/data/ftp_with_channel.xml"</span>))
|
19
|
+
<span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_export_by_type_and_name</span>([<span class="ruby-value str">"-n"</span>, <span class="ruby-value str">"ftp_with_channel"</span>, <span class="ruby-value str">"-t"</span>, <span class="ruby-value str">"scenario"</span>]).<span class="ruby-identifier">to_s</span>
|
20
|
+
<span class="ruby-identifier">assert</span> <span class="ruby-identifier">response</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">scenario_uuid</span>), <span class="ruby-node">"expected #{scenario_uuid} but did not find it"</span>
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
22
|
+
</body>
|
23
|
+
</html>
|
@@ -0,0 +1,44 @@
|
|
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>test_cmd_muapi_capture (TCTestMu)</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 test/tc_test_mu.rb, line 301</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_muapi_capture</span>
|
15
|
+
<span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Command</span><span class="ruby-operator">::</span><span class="ruby-constant">Cmd_muapi</span>.<span class="ruby-identifier">new</span>
|
16
|
+
<span class="ruby-identifier">run_args</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
17
|
+
<span class="ruby-identifier">run_args</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"-c"</span>
|
18
|
+
<span class="ruby-identifier">run_args</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"run"</span>
|
19
|
+
<span class="ruby-identifier">run_args</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"-p"</span>
|
20
|
+
<span class="ruby-identifier">run_args</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"a1"</span>
|
21
|
+
<span class="ruby-identifier">job_id</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_capture</span> <span class="ruby-identifier">run_args</span>
|
22
|
+
<span class="ruby-identifier">sleep</span> <span class="ruby-value">2</span>
|
23
|
+
<span class="ruby-identifier">status_args</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
24
|
+
<span class="ruby-identifier">status_args</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"-c"</span>
|
25
|
+
<span class="ruby-identifier">status_args</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"status"</span>
|
26
|
+
<span class="ruby-identifier">status_args</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"-p"</span>
|
27
|
+
<span class="ruby-identifier">status_args</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"a1"</span>
|
28
|
+
<span class="ruby-identifier">status_args</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"-u"</span>
|
29
|
+
<span class="ruby-identifier">status_args</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">job_id</span>
|
30
|
+
<span class="ruby-identifier">status</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_capture</span> <span class="ruby-identifier">status_args</span>
|
31
|
+
<span class="ruby-identifier">sleep</span> <span class="ruby-value">2</span>
|
32
|
+
<span class="ruby-identifier">get_args</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
33
|
+
<span class="ruby-identifier">get_args</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"-c"</span>
|
34
|
+
<span class="ruby-identifier">get_args</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"get"</span>
|
35
|
+
<span class="ruby-identifier">get_args</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"-p"</span>
|
36
|
+
<span class="ruby-identifier">get_args</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"a1"</span>
|
37
|
+
<span class="ruby-identifier">get_args</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"-u"</span>
|
38
|
+
<span class="ruby-identifier">get_args</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">job_id</span>
|
39
|
+
<span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_capture</span> <span class="ruby-identifier">get_args</span>
|
40
|
+
<span class="ruby-identifier">sleep</span> <span class="ruby-value">2</span>
|
41
|
+
<span class="ruby-identifier">assert</span>( <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-node">"#{job_id}.pcap"</span>), <span class="ruby-node">"expected to find #{job_id}.pcap but didn't"</span>)
|
42
|
+
<span class="ruby-keyword kw">end</span></pre>
|
43
|
+
</body>
|
44
|
+
</html>
|
@@ -0,0 +1,53 @@
|
|
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>test_cmd_muapi_analysis (TCTestMu)</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 test/tc_test_mu.rb, line 331</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_muapi_analysis</span>
|
15
|
+
<span class="ruby-comment cmt"># $log.level = Logger::DEBUG</span>
|
16
|
+
<span class="ruby-identifier">http_helper</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">HttpHelper</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@mu_ip</span>, <span class="ruby-ivar">@mu_admin_user</span>, <span class="ruby-ivar">@mu_admin_pass</span>, <span class="ruby-value str">"/api/v3/"</span>)
|
17
|
+
<span class="ruby-identifier">response</span> = <span class="ruby-identifier">http_helper</span>.<span class="ruby-identifier">post_xml</span>(<span class="ruby-value str">"templates/import"</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-node">"#{Dir.pwd}/test/data/irc.xml"</span>))
|
18
|
+
<span class="ruby-identifier">uuid</span> = <span class="ruby-identifier">response</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//uuid"</span>)[<span class="ruby-value">0</span>].<span class="ruby-identifier">content</span>
|
19
|
+
<span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Command</span><span class="ruby-operator">::</span><span class="ruby-constant">Cmd_muapi</span>.<span class="ruby-identifier">new</span>
|
20
|
+
|
21
|
+
<span class="ruby-identifier">run_uuid</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_run</span> <span class="ruby-identifier">make_uuid_args</span>(<span class="ruby-identifier">uuid</span>) <span class="ruby-comment cmt"># use the run_uuid for subsequent calls</span>
|
22
|
+
<span class="ruby-identifier">sleep</span> <span class="ruby-value">2</span>
|
23
|
+
<span class="ruby-identifier">status</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_status</span> <span class="ruby-identifier">make_uuid_args</span>(<span class="ruby-identifier">run_uuid</span>)
|
24
|
+
<span class="ruby-identifier">assert</span>(<span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"RUNNING"</span>, <span class="ruby-node">"after RUN, expected status=RUNNING, got #{status}"</span>)
|
25
|
+
<span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_pause</span> <span class="ruby-identifier">make_uuid_args</span>(<span class="ruby-identifier">run_uuid</span>)
|
26
|
+
<span class="ruby-keyword kw">while</span> <span class="ruby-keyword kw">true</span>
|
27
|
+
<span class="ruby-identifier">sleep</span> <span class="ruby-value">2</span>
|
28
|
+
<span class="ruby-identifier">status</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_status</span> <span class="ruby-identifier">make_uuid_args</span>(<span class="ruby-identifier">run_uuid</span>)
|
29
|
+
<span class="ruby-keyword kw">break</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"SUSPENDED"</span>
|
30
|
+
<span class="ruby-keyword kw">end</span>
|
31
|
+
<span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_resume</span> <span class="ruby-identifier">make_uuid_args</span>(<span class="ruby-identifier">run_uuid</span>)
|
32
|
+
<span class="ruby-keyword kw">while</span> <span class="ruby-keyword kw">true</span>
|
33
|
+
<span class="ruby-identifier">sleep</span> <span class="ruby-value">2</span>
|
34
|
+
<span class="ruby-identifier">status</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_status</span> <span class="ruby-identifier">make_uuid_args</span>(<span class="ruby-identifier">run_uuid</span>)
|
35
|
+
<span class="ruby-keyword kw">break</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"RUNNING"</span>
|
36
|
+
<span class="ruby-keyword kw">end</span>
|
37
|
+
<span class="ruby-identifier">list</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_list_by_status</span> [<span class="ruby-value str">"-s"</span>, <span class="ruby-value str">"running"</span>]
|
38
|
+
<span class="ruby-identifier">assert</span>(<span class="ruby-identifier">list</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">run_uuid</span>), <span class="ruby-node">"expected run_uuid #{run_uuid}in the list_by_status for running, but got #{list}"</span>)
|
39
|
+
<span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_stop</span> <span class="ruby-identifier">make_uuid_args</span>(<span class="ruby-identifier">run_uuid</span>)
|
40
|
+
<span class="ruby-identifier">sleep</span> <span class="ruby-value">2</span>
|
41
|
+
<span class="ruby-identifier">status</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_status</span> <span class="ruby-identifier">make_uuid_args</span>(<span class="ruby-identifier">run_uuid</span>)
|
42
|
+
<span class="ruby-identifier">assert</span>(<span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"ABORTED"</span>, <span class="ruby-node">"after STOP, expected status=ABORTED, got #{status}"</span>)
|
43
|
+
<span class="ruby-identifier">name</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_get_name</span> <span class="ruby-identifier">make_uuid_args</span>(<span class="ruby-identifier">run_uuid</span>) <span class="ruby-comment cmt"># returns a Nokogiri::XML::Attr</span>
|
44
|
+
<span class="ruby-identifier">assert</span>(<span class="ruby-identifier">name</span>.<span class="ruby-identifier">value</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">"irc_scenario_mugem"</span>), <span class="ruby-node">"expected name = irc_scenario_mugem but got #{name.value}"</span>)
|
45
|
+
<span class="ruby-keyword kw">ensure</span>
|
46
|
+
<span class="ruby-keyword kw">begin</span>
|
47
|
+
<span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_stop</span> <span class="ruby-identifier">make_uuid_args</span>(<span class="ruby-identifier">run_uuid</span>)
|
48
|
+
<span class="ruby-keyword kw">rescue</span>
|
49
|
+
<span class="ruby-comment cmt"># do nothing. probably already stopped</span>
|
50
|
+
<span class="ruby-keyword kw">end</span>
|
51
|
+
<span class="ruby-keyword kw">end</span></pre>
|
52
|
+
</body>
|
53
|
+
</html>
|
@@ -0,0 +1,22 @@
|
|
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>make_uuid_args (TCTestMu)</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 test/tc_test_mu.rb, line 370</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">make_uuid_args</span>(<span class="ruby-identifier">uuid</span>)
|
15
|
+
<span class="ruby-identifier">args</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
16
|
+
<span class="ruby-identifier">args</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"-u"</span>
|
17
|
+
<span class="ruby-identifier">args</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">uuid</span>
|
18
|
+
<span class="ruby-identifier">args</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"-v"</span>
|
19
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">args</span>
|
20
|
+
<span class="ruby-keyword kw">end</span></pre>
|
21
|
+
</body>
|
22
|
+
</html>
|
@@ -0,0 +1,49 @@
|
|
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>test_cmd_muapi_archive (TCTestMu)</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 test/tc_test_mu.rb, line 378</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_muapi_archive</span>
|
15
|
+
<span class="ruby-comment cmt"># $log.level = Logger::DEBUG</span>
|
16
|
+
<span class="ruby-comment cmt"># load it</span>
|
17
|
+
<span class="ruby-identifier">http_helper</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">HttpHelper</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@mu_ip</span>, <span class="ruby-ivar">@mu_admin_user</span>, <span class="ruby-ivar">@mu_admin_pass</span>, <span class="ruby-value str">"/api/v3/"</span>)
|
18
|
+
<span class="ruby-identifier">response</span> = <span class="ruby-identifier">http_helper</span>.<span class="ruby-identifier">post_xml</span>(<span class="ruby-value str">"templates/import"</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-node">"#{Dir.pwd}/test/data/irc.xml"</span>))
|
19
|
+
<span class="ruby-identifier">uuid</span> = <span class="ruby-identifier">response</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//uuid"</span>)[<span class="ruby-value">0</span>].<span class="ruby-identifier">content</span>
|
20
|
+
<span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Command</span><span class="ruby-operator">::</span><span class="ruby-constant">Cmd_muapi</span>.<span class="ruby-identifier">new</span>
|
21
|
+
|
22
|
+
<span class="ruby-comment cmt"># run it</span>
|
23
|
+
<span class="ruby-identifier">run_uuid</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_run</span> <span class="ruby-identifier">make_uuid_args</span>(<span class="ruby-identifier">uuid</span>) <span class="ruby-comment cmt"># use the run_uuid for subsequent calls</span>
|
24
|
+
<span class="ruby-identifier">sleep</span> <span class="ruby-value">2</span>
|
25
|
+
<span class="ruby-identifier">status</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_status</span> <span class="ruby-identifier">make_uuid_args</span>(<span class="ruby-identifier">run_uuid</span>)
|
26
|
+
<span class="ruby-identifier">assert</span>(<span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"RUNNING"</span>, <span class="ruby-node">"after RUN, expected status=RUNNING, got #{status}"</span>)
|
27
|
+
<span class="ruby-keyword kw">while</span> <span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"RUNNING"</span>
|
28
|
+
<span class="ruby-identifier">sleep</span> <span class="ruby-value">5</span>
|
29
|
+
<span class="ruby-identifier">status</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_status</span> <span class="ruby-identifier">make_uuid_args</span>(<span class="ruby-identifier">run_uuid</span>)
|
30
|
+
<span class="ruby-keyword kw">end</span>
|
31
|
+
|
32
|
+
<span class="ruby-comment cmt"># archive it</span>
|
33
|
+
<span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_archive</span> [<span class="ruby-value str">"-c"</span>, <span class="ruby-value str">"run"</span>, <span class="ruby-value str">"-u"</span>, <span class="ruby-identifier">run_uuid</span> ]
|
34
|
+
<span class="ruby-identifier">sleep</span> <span class="ruby-value">5</span>
|
35
|
+
<span class="ruby-identifier">status</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_archive</span> [<span class="ruby-value str">"-s"</span>, <span class="ruby-value str">"status"</span>, <span class="ruby-value str">"-u"</span>, <span class="ruby-identifier">run_uuid</span> ]
|
36
|
+
|
37
|
+
<span class="ruby-keyword kw">while</span> <span class="ruby-keyword kw">true</span>
|
38
|
+
<span class="ruby-identifier">status</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_archive</span> [<span class="ruby-value str">"-s"</span>, <span class="ruby-value str">"status"</span>, <span class="ruby-value str">"-u"</span>, <span class="ruby-identifier">run_uuid</span> ]
|
39
|
+
<span class="ruby-keyword kw">break</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">false</span>
|
40
|
+
<span class="ruby-identifier">sleep</span> <span class="ruby-value">5</span>
|
41
|
+
<span class="ruby-keyword kw">end</span>
|
42
|
+
|
43
|
+
<span class="ruby-comment cmt"># now get it</span>
|
44
|
+
<span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_archive</span> [<span class="ruby-value str">"-c"</span>, <span class="ruby-value str">"get"</span>, <span class="ruby-value str">"-u"</span>, <span class="ruby-identifier">run_uuid</span> ]
|
45
|
+
<span class="ruby-identifier">file_name</span> = <span class="ruby-identifier">run_uuid</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-value str">".zip"</span>
|
46
|
+
<span class="ruby-identifier">assert</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">file_name</span>), <span class="ruby-node">"did not find the expected file #{file_name}"</span>)
|
47
|
+
<span class="ruby-keyword kw">end</span></pre>
|
48
|
+
</body>
|
49
|
+
</html>
|
@@ -0,0 +1,40 @@
|
|
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>test_cmd_muapi_delete (TCTestMu)</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 test/tc_test_mu.rb, line 413</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_muapi_delete</span>
|
15
|
+
<span class="ruby-comment cmt"># $log.level = Logger::DEBUG"</span>
|
16
|
+
<span class="ruby-comment cmt"># load it</span>
|
17
|
+
<span class="ruby-identifier">http_helper</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">HttpHelper</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@mu_ip</span>, <span class="ruby-ivar">@mu_admin_user</span>, <span class="ruby-ivar">@mu_admin_pass</span>, <span class="ruby-value str">"/api/v3/"</span>)
|
18
|
+
<span class="ruby-identifier">response</span> = <span class="ruby-identifier">http_helper</span>.<span class="ruby-identifier">post_xml</span>(<span class="ruby-value str">"templates/import"</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-node">"#{Dir.pwd}/test/data/irc.xml"</span>))
|
19
|
+
<span class="ruby-identifier">uuid</span> = <span class="ruby-identifier">response</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//uuid"</span>)[<span class="ruby-value">0</span>].<span class="ruby-identifier">content</span>
|
20
|
+
<span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Command</span><span class="ruby-operator">::</span><span class="ruby-constant">Cmd_muapi</span>.<span class="ruby-identifier">new</span>
|
21
|
+
|
22
|
+
<span class="ruby-comment cmt"># run it</span>
|
23
|
+
<span class="ruby-identifier">run_uuid</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_run</span> <span class="ruby-identifier">make_uuid_args</span>(<span class="ruby-identifier">uuid</span>) <span class="ruby-comment cmt"># use the run_uuid for subsequent calls</span>
|
24
|
+
<span class="ruby-identifier">sleep</span> <span class="ruby-value">2</span>
|
25
|
+
<span class="ruby-identifier">status</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_status</span> <span class="ruby-identifier">make_uuid_args</span>(<span class="ruby-identifier">run_uuid</span>)
|
26
|
+
<span class="ruby-identifier">assert</span>(<span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"RUNNING"</span>, <span class="ruby-node">"after RUN, expected status=RUNNING, got #{status}"</span>)
|
27
|
+
<span class="ruby-keyword kw">while</span> <span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"RUNNING"</span>
|
28
|
+
<span class="ruby-identifier">sleep</span> <span class="ruby-value">5</span>
|
29
|
+
<span class="ruby-identifier">status</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_status</span> <span class="ruby-identifier">make_uuid_args</span>(<span class="ruby-identifier">run_uuid</span>)
|
30
|
+
<span class="ruby-keyword kw">end</span>
|
31
|
+
|
32
|
+
<span class="ruby-comment cmt"># now delete it</span>
|
33
|
+
<span class="ruby-identifier">status</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_delete</span> [ <span class="ruby-value str">"-u"</span>, <span class="ruby-identifier">run_uuid</span> ]
|
34
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">status</span>
|
35
|
+
|
36
|
+
<span class="ruby-identifier">status</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_status</span> <span class="ruby-identifier">make_uuid_args</span>(<span class="ruby-identifier">run_uuid</span>)
|
37
|
+
<span class="ruby-identifier">assert</span>(<span class="ruby-identifier">status</span>.<span class="ruby-identifier">nil?</span>, <span class="ruby-node">"expected status=nil, got #{status}"</span>)
|
38
|
+
<span class="ruby-keyword kw">end</span></pre>
|
39
|
+
</body>
|
40
|
+
</html>
|
@@ -0,0 +1,20 @@
|
|
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>test_muapi_new (TCTestMu)</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 test/tc_test_mu.rb, line 441</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_muapi_new</span>
|
15
|
+
<span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Muapi</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@mu_ip</span>, <span class="ruby-ivar">@mu_admin_user</span>, <span class="ruby-ivar">@mu_admin_pass</span>)
|
16
|
+
<span class="ruby-identifier">assert</span>(<span class="ruby-identifier">api</span>.<span class="ruby-identifier">host</span> <span class="ruby-operator">==</span> <span class="ruby-ivar">@mu_ip</span>, <span class="ruby-value str">"failed to set mu_ip"</span>)
|
17
|
+
<span class="ruby-identifier">assert</span>(<span class="ruby-identifier">api</span>.<span class="ruby-identifier">docroot</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"/api/v3/"</span>, <span class="ruby-value str">"failed to set docroot"</span>)
|
18
|
+
<span class="ruby-keyword kw">end</span></pre>
|
19
|
+
</body>
|
20
|
+
</html>
|
@@ -0,0 +1,20 @@
|
|
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>test_muapi_list_by_status (TCTestMu)</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 test/tc_test_mu.rb, line 447</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_muapi_list_by_status</span>
|
15
|
+
<span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Muapi</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@mu_ip</span>, <span class="ruby-ivar">@mu_admin_user</span>, <span class="ruby-ivar">@mu_admin_pass</span>)
|
16
|
+
<span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">list_by_status</span>(<span class="ruby-value str">"finished"</span>)
|
17
|
+
<span class="ruby-identifier">assert</span>(<span class="ruby-operator">!</span><span class="ruby-identifier">response</span>.<span class="ruby-identifier">empty?</span>, <span class="ruby-value str">"got empty response"</span>)
|
18
|
+
<span class="ruby-keyword kw">end</span></pre>
|
19
|
+
</body>
|
20
|
+
</html>
|
@@ -0,0 +1,20 @@
|
|
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>test_muapi_types (TCTestMu)</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 test/tc_test_mu.rb, line 453</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_muapi_types</span>
|
15
|
+
<span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Muapi</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@mu_ip</span>, <span class="ruby-ivar">@mu_admin_user</span>, <span class="ruby-ivar">@mu_admin_pass</span>)
|
16
|
+
<span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">types</span>
|
17
|
+
<span class="ruby-identifier">assert</span>(<span class="ruby-identifier">response</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">"scenario"</span>), <span class="ruby-node">"expected scenario, got\n#{response}"</span>)
|
18
|
+
<span class="ruby-keyword kw">end</span></pre>
|
19
|
+
</body>
|
20
|
+
</html>
|