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.
Files changed (384) hide show
  1. data/lib/mu.rb +1 -1
  2. data/lib/mu/api/netconfig.rb +5 -3
  3. data/lib/mu/api/scale.rb +16 -1
  4. data/lib/mu/command/cmd_netconfig.rb +1 -1
  5. data/lib/mu/command/cmd_runscale.rb +2 -2
  6. data/rdoc/classes/Mu.html +24 -142
  7. data/rdoc/classes/Mu.src/M000001.html +39 -0
  8. data/rdoc/classes/Mu.src/M000002.html +29 -0
  9. data/rdoc/classes/Mu.src/M000053.html +39 -0
  10. data/rdoc/classes/Mu.src/M000054.html +29 -0
  11. data/rdoc/classes/Mu/Client.html +26 -77
  12. data/rdoc/classes/Mu/Client.src/M000212.html +24 -0
  13. data/rdoc/classes/Mu/Client.src/M000213.html +18 -0
  14. data/rdoc/classes/Mu/Client.src/M000214.html +18 -0
  15. data/rdoc/classes/Mu/Client.src/M000215.html +18 -0
  16. data/rdoc/classes/Mu/Client.src/M000216.html +18 -0
  17. data/rdoc/classes/Mu/Command.html +1 -92
  18. data/rdoc/classes/Mu/Command/API.html +75 -237
  19. data/rdoc/classes/Mu/Command/API.src/M000130.html +22 -0
  20. data/rdoc/classes/Mu/Command/API.src/M000131.html +19 -0
  21. data/rdoc/classes/Mu/Command/API.src/M000132.html +19 -0
  22. data/rdoc/classes/Mu/Command/API.src/M000133.html +19 -0
  23. data/rdoc/classes/Mu/Command/API.src/M000134.html +18 -0
  24. data/rdoc/classes/Mu/Command/API.src/M000135.html +17 -0
  25. data/rdoc/classes/Mu/Command/API.src/M000136.html +23 -0
  26. data/rdoc/classes/Mu/Command/API.src/M000137.html +18 -0
  27. data/rdoc/classes/Mu/Command/API.src/M000138.html +29 -0
  28. data/rdoc/classes/Mu/Command/API.src/M000139.html +18 -0
  29. data/rdoc/classes/Mu/Command/API.src/M000140.html +22 -0
  30. data/rdoc/classes/Mu/Command/API.src/M000141.html +19 -0
  31. data/rdoc/classes/Mu/Command/API.src/M000142.html +18 -0
  32. data/rdoc/classes/Mu/Command/API.src/M000143.html +18 -0
  33. data/rdoc/classes/Mu/Command/API.src/M000144.html +17 -0
  34. data/rdoc/classes/Mu/Command/Cmd_appid.html +22 -718
  35. data/rdoc/classes/Mu/Command/Cmd_appid.src/M000145.html +18 -0
  36. data/rdoc/classes/Mu/Command/Cmd_appid.src/M000146.html +30 -0
  37. data/rdoc/classes/Mu/Command/Cmd_appid.src/M000147.html +39 -0
  38. data/rdoc/classes/Mu/Command/Cmd_appid.src/M000148.html +50 -0
  39. data/rdoc/classes/Mu/Command/Cmd_cli.html +32 -274
  40. data/rdoc/classes/Mu/Command/Cmd_cli.src/M000200.html +18 -0
  41. data/rdoc/classes/Mu/Command/Cmd_cli.src/M000201.html +19 -0
  42. data/rdoc/classes/Mu/Command/Cmd_cli.src/M000202.html +19 -0
  43. data/rdoc/classes/Mu/Command/Cmd_cli.src/M000203.html +19 -0
  44. data/rdoc/classes/Mu/Command/Cmd_cli.src/M000204.html +20 -0
  45. data/rdoc/classes/Mu/Command/Cmd_cli.src/M000205.html +20 -0
  46. data/rdoc/classes/Mu/Command/Cmd_ddt.html +126 -656
  47. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000101.html +18 -0
  48. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000102.html +21 -0
  49. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000103.html +22 -0
  50. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000104.html +21 -0
  51. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000105.html +21 -0
  52. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000106.html +21 -0
  53. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000107.html +21 -0
  54. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000108.html +21 -0
  55. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000109.html +21 -0
  56. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000110.html +21 -0
  57. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000111.html +22 -0
  58. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000112.html +21 -0
  59. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000113.html +43 -0
  60. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000114.html +21 -0
  61. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000115.html +38 -0
  62. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000116.html +21 -0
  63. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000117.html +38 -0
  64. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000118.html +21 -0
  65. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000119.html +21 -0
  66. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000120.html +21 -0
  67. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000121.html +24 -0
  68. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000122.html +24 -0
  69. data/rdoc/classes/Mu/Command/Cmd_homepage.html +31 -244
  70. data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000206.html +18 -0
  71. data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000207.html +21 -0
  72. data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000208.html +21 -0
  73. data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000209.html +21 -0
  74. data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000210.html +21 -0
  75. data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000211.html +21 -0
  76. data/rdoc/classes/Mu/Command/Cmd_muapi.html +86 -527
  77. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000164.html +18 -0
  78. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000165.html +27 -0
  79. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000166.html +22 -0
  80. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000167.html +27 -0
  81. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000168.html +22 -0
  82. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000169.html +22 -0
  83. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000170.html +22 -0
  84. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000171.html +22 -0
  85. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000172.html +28 -0
  86. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000173.html +22 -0
  87. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000174.html +21 -0
  88. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000175.html +28 -0
  89. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000176.html +23 -0
  90. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000177.html +22 -0
  91. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000178.html +23 -0
  92. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000179.html +23 -0
  93. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000180.html +24 -0
  94. data/rdoc/classes/Mu/Command/Cmd_netconfig.html +61 -405
  95. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000152.html +18 -0
  96. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000153.html +22 -0
  97. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000154.html +23 -0
  98. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000155.html +23 -0
  99. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000156.html +22 -0
  100. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000157.html +23 -0
  101. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000158.html +21 -0
  102. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000159.html +22 -0
  103. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000160.html +22 -0
  104. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000161.html +21 -0
  105. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000162.html +21 -0
  106. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000163.html +23 -0
  107. data/rdoc/classes/Mu/Command/Cmd_runscale.html +17 -766
  108. data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000003.html +18 -0
  109. data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000004.html +51 -0
  110. data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000005.html +50 -0
  111. data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000149.html +18 -0
  112. data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000150.html +51 -0
  113. data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000151.html +50 -0
  114. data/rdoc/classes/Mu/Command/Cmd_runscenario.html +11 -344
  115. data/rdoc/classes/Mu/Command/Cmd_runscenario.src/M000128.html +18 -0
  116. data/rdoc/classes/Mu/Command/Cmd_runscenario.src/M000129.html +144 -0
  117. data/rdoc/classes/Mu/Command/Cmd_runverify.html +11 -436
  118. data/rdoc/classes/Mu/Command/Cmd_runverify.src/M000198.html +18 -0
  119. data/rdoc/classes/Mu/Command/Cmd_runverify.src/M000199.html +200 -0
  120. data/rdoc/classes/Mu/Command/Cmd_scale.html +86 -514
  121. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000181.html +18 -0
  122. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000182.html +23 -0
  123. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000183.html +21 -0
  124. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000184.html +21 -0
  125. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000185.html +22 -0
  126. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000186.html +21 -0
  127. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000187.html +21 -0
  128. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000188.html +21 -0
  129. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000189.html +23 -0
  130. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000190.html +21 -0
  131. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000191.html +29 -0
  132. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000192.html +27 -0
  133. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000193.html +21 -0
  134. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000194.html +21 -0
  135. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000195.html +22 -0
  136. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000196.html +22 -0
  137. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000197.html +22 -0
  138. data/rdoc/classes/Mu/Command/Cmd_system.html +21 -211
  139. data/rdoc/classes/Mu/Command/Cmd_system.src/M000097.html +18 -0
  140. data/rdoc/classes/Mu/Command/Cmd_system.src/M000098.html +21 -0
  141. data/rdoc/classes/Mu/Command/Cmd_system.src/M000099.html +21 -0
  142. data/rdoc/classes/Mu/Command/Cmd_system.src/M000100.html +21 -0
  143. data/rdoc/classes/Mu/Command/Curl.html +19 -361
  144. data/rdoc/classes/Mu/Command/Curl.src/M000124.html +18 -0
  145. data/rdoc/classes/Mu/Command/Curl.src/M000125.html +21 -0
  146. data/rdoc/classes/Mu/Command/Curl.src/M000126.html +26 -0
  147. data/rdoc/classes/Mu/Command/Help.html +5 -34
  148. data/rdoc/classes/Mu/Command/Help.src/M000123.html +38 -0
  149. data/rdoc/classes/Mu/Curl/Error.html +5 -14
  150. data/rdoc/classes/Mu/Curl/Error.src/M000063.html +18 -0
  151. data/rdoc/classes/Mu/Curl/Error/Authorize.html +5 -18
  152. data/rdoc/classes/Mu/Curl/Error/Authorize.src/M000065.html +22 -0
  153. data/rdoc/classes/Mu/Curl/Error/Connect.html +5 -15
  154. data/rdoc/classes/Mu/Curl/Error/Connect.src/M000068.html +19 -0
  155. data/rdoc/classes/Mu/Curl/Error/Region.html +5 -15
  156. data/rdoc/classes/Mu/Curl/Error/Region.src/M000066.html +19 -0
  157. data/rdoc/classes/Mu/Curl/Error/Status.html +5 -15
  158. data/rdoc/classes/Mu/Curl/Error/Status.src/M000064.html +19 -0
  159. data/rdoc/classes/Mu/Curl/Error/Timeout.html +5 -15
  160. data/rdoc/classes/Mu/Curl/Error/Timeout.src/M000067.html +19 -0
  161. data/rdoc/classes/Mu/Curl/Verify.html +20 -95
  162. data/rdoc/classes/Mu/Curl/Verify.src/M000055.html +29 -0
  163. data/rdoc/classes/Mu/Curl/Verify.src/M000056.html +18 -0
  164. data/rdoc/classes/Mu/Curl/Verify.src/M000057.html +46 -0
  165. data/rdoc/classes/Mu/Curl/Verify.src/M000058.html +18 -0
  166. data/rdoc/classes/Mu/Curl/Verify/Request.html +10 -50
  167. data/rdoc/classes/Mu/Curl/Verify/Request.src/M000061.html +35 -0
  168. data/rdoc/classes/Mu/Curl/Verify/Request.src/M000062.html +23 -0
  169. data/rdoc/classes/Mu/Curl/Verify/Response.html +5 -20
  170. data/rdoc/classes/Mu/Curl/Verify/Response.src/M000059.html +24 -0
  171. data/rdoc/classes/Mu/Curl/Verify/Result.html +5 -21
  172. data/rdoc/classes/Mu/Curl/Verify/Result.src/M000060.html +25 -0
  173. data/rdoc/classes/Mu/Ddt.html +132 -436
  174. data/rdoc/classes/Mu/Ddt.src/M000242.html +24 -0
  175. data/rdoc/classes/Mu/Ddt.src/M000243.html +20 -0
  176. data/rdoc/classes/Mu/Ddt.src/M000244.html +20 -0
  177. data/rdoc/classes/Mu/Ddt.src/M000245.html +23 -0
  178. data/rdoc/classes/Mu/Ddt.src/M000246.html +20 -0
  179. data/rdoc/classes/Mu/Ddt.src/M000247.html +32 -0
  180. data/rdoc/classes/Mu/Ddt.src/M000248.html +20 -0
  181. data/rdoc/classes/Mu/Ddt.src/M000249.html +20 -0
  182. data/rdoc/classes/Mu/Ddt.src/M000250.html +20 -0
  183. data/rdoc/classes/Mu/Ddt.src/M000251.html +20 -0
  184. data/rdoc/classes/Mu/Ddt.src/M000252.html +20 -0
  185. data/rdoc/classes/Mu/Ddt.src/M000253.html +20 -0
  186. data/rdoc/classes/Mu/Ddt.src/M000254.html +25 -0
  187. data/rdoc/classes/Mu/Ddt.src/M000255.html +20 -0
  188. data/rdoc/classes/Mu/Ddt.src/M000256.html +24 -0
  189. data/rdoc/classes/Mu/Ddt.src/M000257.html +20 -0
  190. data/rdoc/classes/Mu/Ddt.src/M000258.html +24 -0
  191. data/rdoc/classes/Mu/Ddt.src/M000259.html +20 -0
  192. data/rdoc/classes/Mu/Ddt.src/M000260.html +35 -0
  193. data/rdoc/classes/Mu/Ddt.src/M000261.html +20 -0
  194. data/rdoc/classes/Mu/Ddt.src/M000262.html +20 -0
  195. data/rdoc/classes/Mu/Ddt.src/M000263.html +20 -0
  196. data/rdoc/classes/Mu/Ddt.src/M000264.html +22 -0
  197. data/rdoc/classes/Mu/Homepage.html +34 -105
  198. data/rdoc/classes/Mu/Homepage.src/M000236.html +25 -0
  199. data/rdoc/classes/Mu/Homepage.src/M000237.html +20 -0
  200. data/rdoc/classes/Mu/Homepage.src/M000238.html +20 -0
  201. data/rdoc/classes/Mu/Homepage.src/M000239.html +20 -0
  202. data/rdoc/classes/Mu/Homepage.src/M000240.html +20 -0
  203. data/rdoc/classes/Mu/Homepage.src/M000241.html +20 -0
  204. data/rdoc/classes/Mu/HttpHelper.html +68 -314
  205. data/rdoc/classes/Mu/HttpHelper.src/M000069.html +22 -0
  206. data/rdoc/classes/Mu/HttpHelper.src/M000070.html +25 -0
  207. data/rdoc/classes/Mu/HttpHelper.src/M000071.html +34 -0
  208. data/rdoc/classes/Mu/HttpHelper.src/M000072.html +39 -0
  209. data/rdoc/classes/Mu/HttpHelper.src/M000073.html +36 -0
  210. data/rdoc/classes/Mu/HttpHelper.src/M000074.html +34 -0
  211. data/rdoc/classes/Mu/HttpHelper.src/M000075.html +46 -0
  212. data/rdoc/classes/Mu/HttpHelper.src/M000076.html +24 -0
  213. data/rdoc/classes/Mu/HttpHelper.src/M000077.html +19 -0
  214. data/rdoc/classes/Mu/HttpHelper.src/M000078.html +33 -0
  215. data/rdoc/classes/Mu/HttpHelper.src/M000079.html +29 -0
  216. data/rdoc/classes/Mu/Muapi.html +92 -359
  217. data/rdoc/classes/Mu/Muapi.src/M000080.html +25 -0
  218. data/rdoc/classes/Mu/Muapi.src/M000081.html +27 -0
  219. data/rdoc/classes/Mu/Muapi.src/M000082.html +24 -0
  220. data/rdoc/classes/Mu/Muapi.src/M000083.html +27 -0
  221. data/rdoc/classes/Mu/Muapi.src/M000084.html +23 -0
  222. data/rdoc/classes/Mu/Muapi.src/M000085.html +23 -0
  223. data/rdoc/classes/Mu/Muapi.src/M000086.html +23 -0
  224. data/rdoc/classes/Mu/Muapi.src/M000087.html +23 -0
  225. data/rdoc/classes/Mu/Muapi.src/M000088.html +23 -0
  226. data/rdoc/classes/Mu/Muapi.src/M000089.html +22 -0
  227. data/rdoc/classes/Mu/Muapi.src/M000090.html +21 -0
  228. data/rdoc/classes/Mu/Muapi.src/M000091.html +19 -0
  229. data/rdoc/classes/Mu/Muapi.src/M000092.html +18 -0
  230. data/rdoc/classes/Mu/Muapi.src/M000093.html +18 -0
  231. data/rdoc/classes/Mu/Muapi.src/M000094.html +36 -0
  232. data/rdoc/classes/Mu/Muapi.src/M000095.html +34 -0
  233. data/rdoc/classes/Mu/Muapi.src/M000096.html +34 -0
  234. data/rdoc/classes/Mu/Netconfig.html +79 -382
  235. data/rdoc/classes/Mu/Netconfig.src/M000217.html +25 -0
  236. data/rdoc/classes/Mu/Netconfig.src/M000218.html +20 -0
  237. data/rdoc/classes/Mu/Netconfig.src/M000219.html +21 -0
  238. data/rdoc/classes/Mu/Netconfig.src/M000220.html +24 -0
  239. data/rdoc/classes/Mu/Netconfig.src/M000221.html +20 -0
  240. data/rdoc/classes/Mu/Netconfig.src/M000222.html +36 -0
  241. data/rdoc/classes/Mu/Netconfig.src/M000223.html +22 -0
  242. data/rdoc/classes/Mu/Netconfig.src/M000224.html +22 -0
  243. data/rdoc/classes/Mu/Netconfig.src/M000225.html +37 -0
  244. data/rdoc/classes/Mu/Netconfig.src/M000226.html +21 -0
  245. data/rdoc/classes/Mu/Netconfig.src/M000227.html +23 -0
  246. data/rdoc/classes/Mu/Netconfig.src/M000228.html +26 -0
  247. data/rdoc/classes/Mu/Netconfig.src/M000229.html +23 -0
  248. data/rdoc/classes/Mu/Netconfig.src/M000230.html +22 -0
  249. data/rdoc/classes/Mu/Netconfig.src/M000231.html +19 -0
  250. data/rdoc/classes/Mu/Scale.html +133 -385
  251. data/rdoc/classes/Mu/Scale.src/M000006.html +47 -0
  252. data/rdoc/classes/Mu/Scale.src/M000007.html +27 -0
  253. data/rdoc/classes/Mu/Scale.src/M000008.html +22 -0
  254. data/rdoc/classes/Mu/Scale.src/M000009.html +20 -0
  255. data/rdoc/classes/Mu/Scale.src/M000010.html +20 -0
  256. data/rdoc/classes/Mu/Scale.src/M000011.html +20 -0
  257. data/rdoc/classes/Mu/Scale.src/M000012.html +20 -0
  258. data/rdoc/classes/Mu/Scale.src/M000013.html +20 -0
  259. data/rdoc/classes/Mu/Scale.src/M000014.html +20 -0
  260. data/rdoc/classes/Mu/Scale.src/M000015.html +20 -0
  261. data/rdoc/classes/Mu/Scale.src/M000016.html +20 -0
  262. data/rdoc/classes/Mu/Scale.src/M000017.html +20 -0
  263. data/rdoc/classes/Mu/Scale.src/M000018.html +20 -0
  264. data/rdoc/classes/Mu/Scale.src/M000019.html +20 -0
  265. data/rdoc/classes/Mu/Scale.src/M000020.html +20 -0
  266. data/rdoc/classes/Mu/Scale.src/M000021.html +20 -0
  267. data/rdoc/classes/Mu/Scale.src/M000022.html +20 -0
  268. data/rdoc/classes/Mu/Scale.src/M000023.html +20 -0
  269. data/rdoc/classes/Mu/Scale.src/M000024.html +20 -0
  270. data/rdoc/classes/Mu/Scale.src/M000025.html +20 -0
  271. data/rdoc/classes/Mu/Scale.src/M000265.html +46 -0
  272. data/rdoc/classes/Mu/Scale.src/M000266.html +27 -0
  273. data/rdoc/classes/Mu/Scale.src/M000267.html +22 -0
  274. data/rdoc/classes/Mu/Scale.src/M000268.html +20 -0
  275. data/rdoc/classes/Mu/Scale.src/M000269.html +20 -0
  276. data/rdoc/classes/Mu/Scale.src/M000270.html +20 -0
  277. data/rdoc/classes/Mu/Scale.src/M000271.html +20 -0
  278. data/rdoc/classes/Mu/Scale.src/M000272.html +20 -0
  279. data/rdoc/classes/Mu/Scale.src/M000273.html +20 -0
  280. data/rdoc/classes/Mu/Scale.src/M000274.html +20 -0
  281. data/rdoc/classes/Mu/Scale.src/M000275.html +20 -0
  282. data/rdoc/classes/Mu/Scale.src/M000276.html +20 -0
  283. data/rdoc/classes/Mu/Scale.src/M000277.html +20 -0
  284. data/rdoc/classes/Mu/Scale.src/M000278.html +20 -0
  285. data/rdoc/classes/Mu/Scale.src/M000279.html +20 -0
  286. data/rdoc/classes/Mu/Scale.src/M000280.html +20 -0
  287. data/rdoc/classes/Mu/Scale.src/M000281.html +20 -0
  288. data/rdoc/classes/Mu/Scale.src/M000282.html +20 -0
  289. data/rdoc/classes/Mu/System.html +23 -72
  290. data/rdoc/classes/Mu/System.src/M000232.html +25 -0
  291. data/rdoc/classes/Mu/System.src/M000233.html +20 -0
  292. data/rdoc/classes/Mu/System.src/M000234.html +20 -0
  293. data/rdoc/classes/Mu/System.src/M000235.html +20 -0
  294. data/rdoc/classes/Object.html +5 -14
  295. data/rdoc/classes/Object.src/M000052.html +18 -0
  296. data/rdoc/classes/TCTestMu.html +254 -1099
  297. data/rdoc/classes/TCTestMu.src/M000001.html +24 -0
  298. data/rdoc/classes/TCTestMu.src/M000002.html +18 -0
  299. data/rdoc/classes/TCTestMu.src/M000003.html +32 -0
  300. data/rdoc/classes/TCTestMu.src/M000004.html +33 -0
  301. data/rdoc/classes/TCTestMu.src/M000005.html +21 -0
  302. data/rdoc/classes/TCTestMu.src/M000006.html +21 -0
  303. data/rdoc/classes/TCTestMu.src/M000007.html +26 -0
  304. data/rdoc/classes/TCTestMu.src/M000008.html +29 -0
  305. data/rdoc/classes/TCTestMu.src/M000009.html +39 -0
  306. data/rdoc/classes/TCTestMu.src/M000010.html +38 -0
  307. data/rdoc/classes/TCTestMu.src/M000011.html +38 -0
  308. data/rdoc/classes/TCTestMu.src/M000012.html +20 -0
  309. data/rdoc/classes/TCTestMu.src/M000013.html +25 -0
  310. data/rdoc/classes/TCTestMu.src/M000014.html +25 -0
  311. data/rdoc/classes/TCTestMu.src/M000015.html +33 -0
  312. data/rdoc/classes/TCTestMu.src/M000016.html +20 -0
  313. data/rdoc/classes/TCTestMu.src/M000017.html +20 -0
  314. data/rdoc/classes/TCTestMu.src/M000018.html +20 -0
  315. data/rdoc/classes/TCTestMu.src/M000019.html +20 -0
  316. data/rdoc/classes/TCTestMu.src/M000020.html +20 -0
  317. data/rdoc/classes/TCTestMu.src/M000021.html +20 -0
  318. data/rdoc/classes/TCTestMu.src/M000022.html +23 -0
  319. data/rdoc/classes/TCTestMu.src/M000023.html +23 -0
  320. data/rdoc/classes/TCTestMu.src/M000024.html +44 -0
  321. data/rdoc/classes/TCTestMu.src/M000025.html +53 -0
  322. data/rdoc/classes/TCTestMu.src/M000026.html +22 -0
  323. data/rdoc/classes/TCTestMu.src/M000027.html +49 -0
  324. data/rdoc/classes/TCTestMu.src/M000028.html +40 -0
  325. data/rdoc/classes/TCTestMu.src/M000029.html +20 -0
  326. data/rdoc/classes/TCTestMu.src/M000030.html +20 -0
  327. data/rdoc/classes/TCTestMu.src/M000031.html +20 -0
  328. data/rdoc/classes/TCTestMu.src/M000032.html +20 -0
  329. data/rdoc/classes/TCTestMu.src/M000033.html +27 -0
  330. data/rdoc/classes/TCTestMu.src/M000034.html +32 -0
  331. data/rdoc/classes/TCTestMu.src/M000035.html +23 -0
  332. data/rdoc/classes/TCTestMu.src/M000036.html +41 -0
  333. data/rdoc/classes/TCTestMu.src/M000037.html +23 -0
  334. data/rdoc/classes/TCTestMu.src/M000038.html +24 -0
  335. data/rdoc/classes/TCTestMu.src/M000039.html +20 -0
  336. data/rdoc/classes/TCTestMu.src/M000040.html +32 -0
  337. data/rdoc/classes/TCTestMu.src/M000041.html +32 -0
  338. data/rdoc/classes/TCTestMu.src/M000042.html +26 -0
  339. data/rdoc/classes/TCTestMu.src/M000043.html +28 -0
  340. data/rdoc/classes/TCTestMu.src/M000044.html +21 -0
  341. data/rdoc/classes/TCTestMu.src/M000045.html +23 -0
  342. data/rdoc/classes/TCTestMu.src/M000046.html +21 -0
  343. data/rdoc/classes/TCTestMu.src/M000047.html +20 -0
  344. data/rdoc/classes/TCTestMu.src/M000048.html +20 -0
  345. data/rdoc/classes/TCTestMu.src/M000049.html +22 -0
  346. data/rdoc/classes/TCTestMu.src/M000050.html +20 -0
  347. data/rdoc/classes/TCTestMu.src/M000051.html +35 -0
  348. data/rdoc/created.rid +1 -1
  349. data/rdoc/files/lib/mu/api/ddt_rb.html +1 -1
  350. data/rdoc/files/lib/mu/api/homepage_rb.html +1 -1
  351. data/rdoc/files/lib/mu/api/muapi_rb.html +1 -1
  352. data/rdoc/files/lib/mu/api/netconfig_rb.html +1 -1
  353. data/rdoc/files/lib/mu/api/scale_rb.html +1 -1
  354. data/rdoc/files/lib/mu/api/system_rb.html +1 -1
  355. data/rdoc/files/lib/mu/client_rb.html +1 -1
  356. data/rdoc/files/lib/mu/command/api_rb.html +1 -1
  357. data/rdoc/files/lib/mu/command/cmd_appid_rb.html +1 -1
  358. data/rdoc/files/lib/mu/command/cmd_cli_rb.html +1 -1
  359. data/rdoc/files/lib/mu/command/cmd_ddt_rb.html +4 -5
  360. data/rdoc/files/lib/mu/command/cmd_homepage_rb.html +1 -1
  361. data/rdoc/files/lib/mu/command/cmd_muapi_rb.html +3 -4
  362. data/rdoc/files/lib/mu/command/cmd_netconfig_rb.html +1 -1
  363. data/rdoc/files/lib/mu/command/cmd_runscale_rb.html +1 -1
  364. data/rdoc/files/lib/mu/command/cmd_runscenario_rb.html +1 -1
  365. data/rdoc/files/lib/mu/command/cmd_runverify_rb.html +5 -4
  366. data/rdoc/files/lib/mu/command/cmd_scale_rb.html +1 -1
  367. data/rdoc/files/lib/mu/command/cmd_system_rb.html +1 -1
  368. data/rdoc/files/lib/mu/command/curl_rb.html +1 -1
  369. data/rdoc/files/lib/mu/command/help_rb.html +1 -1
  370. data/rdoc/files/lib/mu/command_rb.html +1 -1
  371. data/rdoc/files/lib/mu/curl/error_rb.html +1 -1
  372. data/rdoc/files/lib/mu/curl/verify_rb.html +1 -1
  373. data/rdoc/files/lib/mu/http_helper_rb.html +1 -1
  374. data/rdoc/files/lib/mu_rb.html +1 -1
  375. data/rdoc/files/test/tc_test_mu_rb.html +1 -1
  376. data/rdoc/fr_class_index.html +0 -38
  377. data/rdoc/fr_file_index.html +0 -26
  378. data/rdoc/fr_method_index.html +25 -348
  379. data/rdoc/index.html +3 -3
  380. data/test/data/app_id_stats.csv +1 -1
  381. data/test/data/app_id_status.json +156 -0
  382. data/test/tc_test_mu.rb +1 -1
  383. metadata +314 -8
  384. data/Mu_Gem.html +0 -1591
@@ -88,10 +88,10 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000296">new</a>&nbsp;&nbsp;
92
- <a href="#M000297">restart</a>&nbsp;&nbsp;
93
- <a href="#M000298">status</a>&nbsp;&nbsp;
94
- <a href="#M000299">status2</a>&nbsp;&nbsp;
91
+ <a href="#M000232">new</a>&nbsp;&nbsp;
92
+ <a href="#M000233">restart</a>&nbsp;&nbsp;
93
+ <a href="#M000234">status</a>&nbsp;&nbsp;
94
+ <a href="#M000235">status2</a>&nbsp;&nbsp;
95
95
  </div>
96
96
  </div>
97
97
 
@@ -103,7 +103,7 @@
103
103
  <h3 class="section-bar">Included Modules</h3>
104
104
 
105
105
  <div id="includes-list">
106
- <span class="include-name"><a href="Helper.html">Helper</a></span>
106
+ <span class="include-name">Helper</span>
107
107
  </div>
108
108
  </div>
109
109
 
@@ -148,43 +148,28 @@
148
148
  <div id="methods">
149
149
  <h3 class="section-bar">Public Class methods</h3>
150
150
 
151
- <div id="method-M000296" class="method-detail">
152
- <a name="M000296"></a>
151
+ <div id="method-M000232" class="method-detail">
152
+ <a name="M000232"></a>
153
153
 
154
154
  <div class="method-heading">
155
- <a href="#M000296" class="method-signature">
155
+ <a href="System.src/M000232.html" target="Code" class="method-signature"
156
+ onclick="popupCode('System.src/M000232.html');return false;">
156
157
  <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>
157
158
  </a>
158
159
  </div>
159
160
 
160
161
  <div class="method-description">
161
- <p><a class="source-toggle" href="#"
162
- onclick="toggleCode('M000296-source');return false;">[Source]</a></p>
163
- <div class="method-source-code" id="M000296-source">
164
- <pre>
165
- <span class="ruby-comment cmt"># File lib/mu/api/system.rb, line 7</span>
166
- <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>])
167
- <span class="ruby-ivar">@host</span> = <span class="ruby-identifier">host</span>
168
- <span class="ruby-ivar">@username</span> = <span class="ruby-identifier">username</span>
169
- <span class="ruby-ivar">@password</span> = <span class="ruby-identifier">password</span>
170
- <span class="ruby-ivar">@docroot</span> = <span class="ruby-value str">&quot;/api/v5/system/&quot;</span>
171
- <span class="ruby-ivar">@cookie</span> = <span class="ruby-value str">&quot;&quot;</span>
172
- <span class="ruby-ivar">@response</span> = <span class="ruby-keyword kw">nil</span>
173
- <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>)
174
- <span class="ruby-identifier">msg</span> <span class="ruby-node">&quot;Created System Api object to :#{@host}&quot;</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
175
- <span class="ruby-keyword kw">end</span>
176
- </pre>
177
- </div>
178
162
  </div>
179
163
  </div>
180
164
 
181
165
  <h3 class="section-bar">Public Instance methods</h3>
182
166
 
183
- <div id="method-M000297" class="method-detail">
184
- <a name="M000297"></a>
167
+ <div id="method-M000233" class="method-detail">
168
+ <a name="M000233"></a>
185
169
 
186
170
  <div class="method-heading">
187
- <a href="#M000297" class="method-signature">
171
+ <a href="System.src/M000233.html" target="Code" class="method-signature"
172
+ onclick="popupCode('System.src/M000233.html');return false;">
188
173
  <span class="method-name">restart</span><span class="method-args">()</span>
189
174
  </a>
190
175
  </div>
@@ -193,26 +178,15 @@
193
178
  <p>
194
179
  restarts the <a href="../Mu.html">Mu</a> system
195
180
  </p>
196
- <p><a class="source-toggle" href="#"
197
- onclick="toggleCode('M000297-source');return false;">[Source]</a></p>
198
- <div class="method-source-code" id="M000297-source">
199
- <pre>
200
- <span class="ruby-comment cmt"># File lib/mu/api/system.rb, line 19</span>
201
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">restart</span>
202
- <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">&quot;restart/&quot;</span>)
203
- <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>
204
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
205
- <span class="ruby-keyword kw">end</span>
206
- </pre>
207
- </div>
208
181
  </div>
209
182
  </div>
210
183
 
211
- <div id="method-M000298" class="method-detail">
212
- <a name="M000298"></a>
184
+ <div id="method-M000234" class="method-detail">
185
+ <a name="M000234"></a>
213
186
 
214
187
  <div class="method-heading">
215
- <a href="#M000298" class="method-signature">
188
+ <a href="System.src/M000234.html" target="Code" class="method-signature"
189
+ onclick="popupCode('System.src/M000234.html');return false;">
216
190
  <span class="method-name">status</span><span class="method-args">()</span>
217
191
  </a>
218
192
  </div>
@@ -220,28 +194,17 @@ restarts the <a href="../Mu.html">Mu</a> system
220
194
  <div class="method-description">
221
195
  <p>
222
196
  returns <a href="../Mu.html">Mu</a> <a href="System.html">System</a> <a
223
- href="System.html#M000298">status</a>
197
+ href="System.html#M000234">status</a>
224
198
  </p>
225
- <p><a class="source-toggle" href="#"
226
- onclick="toggleCode('M000298-source');return false;">[Source]</a></p>
227
- <div class="method-source-code" id="M000298-source">
228
- <pre>
229
- <span class="ruby-comment cmt"># File lib/mu/api/system.rb, line 26</span>
230
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">status</span>
231
- <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">&quot;status/&quot;</span>)
232
- <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>
233
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
234
- <span class="ruby-keyword kw">end</span>
235
- </pre>
236
- </div>
237
199
  </div>
238
200
  </div>
239
201
 
240
- <div id="method-M000299" class="method-detail">
241
- <a name="M000299"></a>
202
+ <div id="method-M000235" class="method-detail">
203
+ <a name="M000235"></a>
242
204
 
243
205
  <div class="method-heading">
244
- <a href="#M000299" class="method-signature">
206
+ <a href="System.src/M000235.html" target="Code" class="method-signature"
207
+ onclick="popupCode('System.src/M000235.html');return false;">
245
208
  <span class="method-name">status2</span><span class="method-args">()</span>
246
209
  </a>
247
210
  </div>
@@ -249,20 +212,8 @@ href="System.html#M000298">status</a>
249
212
  <div class="method-description">
250
213
  <p>
251
214
  returns more <a href="../Mu.html">Mu</a> <a href="System.html">System</a>
252
- <a href="System.html#M000298">status</a>
215
+ <a href="System.html#M000234">status</a>
253
216
  </p>
254
- <p><a class="source-toggle" href="#"
255
- onclick="toggleCode('M000299-source');return false;">[Source]</a></p>
256
- <div class="method-source-code" id="M000299-source">
257
- <pre>
258
- <span class="ruby-comment cmt"># File lib/mu/api/system.rb, line 33</span>
259
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">status2</span>
260
- <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">&quot;status2/&quot;</span>)
261
- <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>
262
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
263
- <span class="ruby-keyword kw">end</span>
264
- </pre>
265
- </div>
266
217
  </div>
267
218
  </div>
268
219
 
@@ -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::System)</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/api/system.rb, line 7</span>
14
+ <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>])
15
+ <span class="ruby-ivar">@host</span> = <span class="ruby-identifier">host</span>
16
+ <span class="ruby-ivar">@username</span> = <span class="ruby-identifier">username</span>
17
+ <span class="ruby-ivar">@password</span> = <span class="ruby-identifier">password</span>
18
+ <span class="ruby-ivar">@docroot</span> = <span class="ruby-value str">&quot;/api/v5/system/&quot;</span>
19
+ <span class="ruby-ivar">@cookie</span> = <span class="ruby-value str">&quot;&quot;</span>
20
+ <span class="ruby-ivar">@response</span> = <span class="ruby-keyword kw">nil</span>
21
+ <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>)
22
+ <span class="ruby-identifier">msg</span> <span class="ruby-node">&quot;Created System Api object to :#{@host}&quot;</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
23
+ <span class="ruby-keyword kw">end</span></pre>
24
+ </body>
25
+ </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>restart (Mu::System)</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/api/system.rb, line 19</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">restart</span>
15
+ <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">&quot;restart/&quot;</span>)
16
+ <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>
17
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">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>status (Mu::System)</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/api/system.rb, line 26</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">status</span>
15
+ <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">&quot;status/&quot;</span>)
16
+ <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>
17
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">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>status2 (Mu::System)</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/api/system.rb, line 33</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">status2</span>
15
+ <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">&quot;status2/&quot;</span>)
16
+ <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>
17
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
18
+ <span class="ruby-keyword kw">end</span></pre>
19
+ </body>
20
+ </html>
@@ -88,7 +88,7 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000050">deep_clone</a>&nbsp;&nbsp;
91
+ <a href="#M000052">deep_clone</a>&nbsp;&nbsp;
92
92
  </div>
93
93
  </div>
94
94
 
@@ -110,26 +110,17 @@
110
110
  <div id="methods">
111
111
  <h3 class="section-bar">Public Instance methods</h3>
112
112
 
113
- <div id="method-M000050" class="method-detail">
114
- <a name="M000050"></a>
113
+ <div id="method-M000052" class="method-detail">
114
+ <a name="M000052"></a>
115
115
 
116
116
  <div class="method-heading">
117
- <a href="#M000050" class="method-signature">
117
+ <a href="Object.src/M000052.html" target="Code" class="method-signature"
118
+ onclick="popupCode('Object.src/M000052.html');return false;">
118
119
  <span class="method-name">deep_clone</span><span class="method-args">()</span>
119
120
  </a>
120
121
  </div>
121
122
 
122
123
  <div class="method-description">
123
- <p><a class="source-toggle" href="#"
124
- onclick="toggleCode('M000050-source');return false;">[Source]</a></p>
125
- <div class="method-source-code" id="M000050-source">
126
- <pre>
127
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 7</span>
128
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">deep_clone</span>
129
- <span class="ruby-constant">Marshal</span><span class="ruby-operator">::</span><span class="ruby-identifier">load</span>(<span class="ruby-constant">Marshal</span>.<span class="ruby-identifier">dump</span>(<span class="ruby-keyword kw">self</span>))
130
- <span class="ruby-keyword kw">end</span>
131
- </pre>
132
- </div>
133
124
  </div>
134
125
  </div>
135
126
 
@@ -0,0 +1,18 @@
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>deep_clone (Object)</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 7</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">deep_clone</span>
15
+ <span class="ruby-constant">Marshal</span><span class="ruby-operator">::</span><span class="ruby-identifier">load</span>(<span class="ruby-constant">Marshal</span>.<span class="ruby-identifier">dump</span>(<span class="ruby-keyword kw">self</span>))
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -65,9 +65,7 @@
65
65
  <tr class="top-aligned-row">
66
66
  <td><strong>Parent:</strong></td>
67
67
  <td>
68
- <a href="Test/Unit/TestCase.html">
69
68
  Test::Unit::TestCase
70
- </a>
71
69
  </td>
72
70
  </tr>
73
71
  </table>
@@ -88,55 +86,57 @@
88
86
  <h3 class="section-bar">Methods</h3>
89
87
 
90
88
  <div class="name-list">
91
- <a href="#M000025">make_uuid_args</a>&nbsp;&nbsp;
89
+ <a href="#M000051">add_localhost_with_channel</a>&nbsp;&nbsp;
90
+ <a href="#M000026">make_uuid_args</a>&nbsp;&nbsp;
92
91
  <a href="#M000001">setup</a>&nbsp;&nbsp;
93
92
  <a href="#M000002">teardown</a>&nbsp;&nbsp;
94
93
  <a href="#M000005">test_cli_history</a>&nbsp;&nbsp;
95
94
  <a href="#M000006">test_cli_question</a>&nbsp;&nbsp;
96
95
  <a href="#M000004">test_cmd_appid_run_dir</a>&nbsp;&nbsp;
97
96
  <a href="#M000003">test_cmd_appid_run_file</a>&nbsp;&nbsp;
97
+ <a href="#M000008">test_cmd_ddt_csv_import_export</a>&nbsp;&nbsp;
98
98
  <a href="#M000007">test_cmd_ddt_get_all_sessions</a>&nbsp;&nbsp;
99
- <a href="#M000010">test_cmd_ddt_get_set_channels</a>&nbsp;&nbsp;
100
- <a href="#M000009">test_cmd_ddt_get_set_hosts</a>&nbsp;&nbsp;
101
- <a href="#M000008">test_cmd_ddt_get_set_options</a>&nbsp;&nbsp;
102
- <a href="#M000024">test_cmd_muapi_analysis</a>&nbsp;&nbsp;
103
- <a href="#M000026">test_cmd_muapi_archive</a>&nbsp;&nbsp;
104
- <a href="#M000023">test_cmd_muapi_capture</a>&nbsp;&nbsp;
105
- <a href="#M000027">test_cmd_muapi_delete</a>&nbsp;&nbsp;
106
- <a href="#M000022">test_cmd_muapi_export_by_type_and_name</a>&nbsp;&nbsp;
107
- <a href="#M000021">test_cmd_muapi_export_by_uuid</a>&nbsp;&nbsp;
108
- <a href="#M000020">test_cmd_muapi_types</a>&nbsp;&nbsp;
109
- <a href="#M000035">test_cmd_netconfig_add_modify_delete_route</a>&nbsp;&nbsp;
110
- <a href="#M000034">test_cmd_netconfig_create_delete_host</a>&nbsp;&nbsp;
111
- <a href="#M000031">test_cmd_netconfig_get_interfaces_a1</a>&nbsp;&nbsp;
112
- <a href="#M000032">test_cmd_netconfig_modify_interfaces_a1</a>&nbsp;&nbsp;
113
- <a href="#M000036">test_cmd_netconfig_resolve_hosts</a>&nbsp;&nbsp;
114
- <a href="#M000037">test_cmd_netconfig_save</a>&nbsp;&nbsp;
115
- <a href="#M000033">test_cmd_netconfig_vlans</a>&nbsp;&nbsp;
116
- <a href="#M000040">test_cmd_runscale_run_dir</a>&nbsp;&nbsp;
117
- <a href="#M000039">test_cmd_runscale_run_file</a>&nbsp;&nbsp;
118
- <a href="#M000041">test_cmd_runscenario</a>&nbsp;&nbsp;
119
- <a href="#M000042">test_cmd_runverify</a>&nbsp;&nbsp;
120
- <a href="#M000048">test_cmd_system_status</a>&nbsp;&nbsp;
121
- <a href="#M000049">test_cmd_system_status2</a>&nbsp;&nbsp;
122
- <a href="#M000013">test_ddt_close_all_sessions</a>&nbsp;&nbsp;
123
- <a href="#M000012">test_ddt_get_all_sessions</a>&nbsp;&nbsp;
124
- <a href="#M000011">test_ddt_new</a>&nbsp;&nbsp;
125
- <a href="#M000014">test_ddt_set_hosts</a>&nbsp;&nbsp;
126
- <a href="#M000017">test_homepage_all</a>&nbsp;&nbsp;
127
- <a href="#M000018">test_homepage_latest_test</a>&nbsp;&nbsp;
128
- <a href="#M000019">test_homepage_new</a>&nbsp;&nbsp;
129
- <a href="#M000016">test_homepage_recent</a>&nbsp;&nbsp;
130
- <a href="#M000015">test_homepage_status</a>&nbsp;&nbsp;
131
- <a href="#M000029">test_muapi_list_by_status</a>&nbsp;&nbsp;
132
- <a href="#M000028">test_muapi_new</a>&nbsp;&nbsp;
133
- <a href="#M000030">test_muapi_types</a>&nbsp;&nbsp;
134
- <a href="#M000038">test_netconfig_new</a>&nbsp;&nbsp;
135
- <a href="#M000044">test_scale_about</a>&nbsp;&nbsp;
136
- <a href="#M000045">test_scale_list</a>&nbsp;&nbsp;
137
- <a href="#M000043">test_scale_new</a>&nbsp;&nbsp;
138
- <a href="#M000046">test_scale_session</a>&nbsp;&nbsp;
139
- <a href="#M000047">test_system_new</a>&nbsp;&nbsp;
99
+ <a href="#M000011">test_cmd_ddt_get_set_channels</a>&nbsp;&nbsp;
100
+ <a href="#M000010">test_cmd_ddt_get_set_hosts</a>&nbsp;&nbsp;
101
+ <a href="#M000009">test_cmd_ddt_get_set_options</a>&nbsp;&nbsp;
102
+ <a href="#M000025">test_cmd_muapi_analysis</a>&nbsp;&nbsp;
103
+ <a href="#M000027">test_cmd_muapi_archive</a>&nbsp;&nbsp;
104
+ <a href="#M000024">test_cmd_muapi_capture</a>&nbsp;&nbsp;
105
+ <a href="#M000028">test_cmd_muapi_delete</a>&nbsp;&nbsp;
106
+ <a href="#M000023">test_cmd_muapi_export_by_type_and_name</a>&nbsp;&nbsp;
107
+ <a href="#M000022">test_cmd_muapi_export_by_uuid</a>&nbsp;&nbsp;
108
+ <a href="#M000021">test_cmd_muapi_types</a>&nbsp;&nbsp;
109
+ <a href="#M000036">test_cmd_netconfig_add_modify_delete_route</a>&nbsp;&nbsp;
110
+ <a href="#M000035">test_cmd_netconfig_create_delete_host</a>&nbsp;&nbsp;
111
+ <a href="#M000032">test_cmd_netconfig_get_interfaces_a1</a>&nbsp;&nbsp;
112
+ <a href="#M000033">test_cmd_netconfig_modify_interfaces_a1</a>&nbsp;&nbsp;
113
+ <a href="#M000037">test_cmd_netconfig_resolve_hosts</a>&nbsp;&nbsp;
114
+ <a href="#M000038">test_cmd_netconfig_save</a>&nbsp;&nbsp;
115
+ <a href="#M000034">test_cmd_netconfig_vlans</a>&nbsp;&nbsp;
116
+ <a href="#M000041">test_cmd_runscale_run_dir</a>&nbsp;&nbsp;
117
+ <a href="#M000040">test_cmd_runscale_run_file</a>&nbsp;&nbsp;
118
+ <a href="#M000042">test_cmd_runscenario</a>&nbsp;&nbsp;
119
+ <a href="#M000043">test_cmd_runverify</a>&nbsp;&nbsp;
120
+ <a href="#M000049">test_cmd_system_status</a>&nbsp;&nbsp;
121
+ <a href="#M000050">test_cmd_system_status2</a>&nbsp;&nbsp;
122
+ <a href="#M000014">test_ddt_close_all_sessions</a>&nbsp;&nbsp;
123
+ <a href="#M000013">test_ddt_get_all_sessions</a>&nbsp;&nbsp;
124
+ <a href="#M000012">test_ddt_new</a>&nbsp;&nbsp;
125
+ <a href="#M000015">test_ddt_set_hosts</a>&nbsp;&nbsp;
126
+ <a href="#M000018">test_homepage_all</a>&nbsp;&nbsp;
127
+ <a href="#M000019">test_homepage_latest_test</a>&nbsp;&nbsp;
128
+ <a href="#M000020">test_homepage_new</a>&nbsp;&nbsp;
129
+ <a href="#M000017">test_homepage_recent</a>&nbsp;&nbsp;
130
+ <a href="#M000016">test_homepage_status</a>&nbsp;&nbsp;
131
+ <a href="#M000030">test_muapi_list_by_status</a>&nbsp;&nbsp;
132
+ <a href="#M000029">test_muapi_new</a>&nbsp;&nbsp;
133
+ <a href="#M000031">test_muapi_types</a>&nbsp;&nbsp;
134
+ <a href="#M000039">test_netconfig_new</a>&nbsp;&nbsp;
135
+ <a href="#M000045">test_scale_about</a>&nbsp;&nbsp;
136
+ <a href="#M000046">test_scale_list</a>&nbsp;&nbsp;
137
+ <a href="#M000044">test_scale_new</a>&nbsp;&nbsp;
138
+ <a href="#M000047">test_scale_session</a>&nbsp;&nbsp;
139
+ <a href="#M000048">test_system_new</a>&nbsp;&nbsp;
140
140
  </div>
141
141
  </div>
142
142
 
@@ -158,30 +158,31 @@
158
158
  <div id="methods">
159
159
  <h3 class="section-bar">Public Instance methods</h3>
160
160
 
161
- <div id="method-M000025" class="method-detail">
162
- <a name="M000025"></a>
161
+ <div id="method-M000051" class="method-detail">
162
+ <a name="M000051"></a>
163
+
164
+ <div class="method-heading">
165
+ <a href="TCTestMu.src/M000051.html" target="Code" class="method-signature"
166
+ onclick="popupCode('TCTestMu.src/M000051.html');return false;">
167
+ <span class="method-name">add_localhost_with_channel</span><span class="method-args">()</span>
168
+ </a>
169
+ </div>
170
+
171
+ <div class="method-description">
172
+ </div>
173
+ </div>
174
+
175
+ <div id="method-M000026" class="method-detail">
176
+ <a name="M000026"></a>
163
177
 
164
178
  <div class="method-heading">
165
- <a href="#M000025" class="method-signature">
179
+ <a href="TCTestMu.src/M000026.html" target="Code" class="method-signature"
180
+ onclick="popupCode('TCTestMu.src/M000026.html');return false;">
166
181
  <span class="method-name">make_uuid_args</span><span class="method-args">(uuid)</span>
167
182
  </a>
168
183
  </div>
169
184
 
170
185
  <div class="method-description">
171
- <p><a class="source-toggle" href="#"
172
- onclick="toggleCode('M000025-source');return false;">[Source]</a></p>
173
- <div class="method-source-code" id="M000025-source">
174
- <pre>
175
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 352</span>
176
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">make_uuid_args</span>(<span class="ruby-identifier">uuid</span>)
177
- <span class="ruby-identifier">args</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
178
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-u&quot;</span>
179
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">uuid</span>
180
- <span class="ruby-comment cmt"># args &lt;&lt; &quot;-v&quot;</span>
181
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">args</span>
182
- <span class="ruby-keyword kw">end</span>
183
- </pre>
184
- </div>
185
186
  </div>
186
187
  </div>
187
188
 
@@ -189,28 +190,13 @@
189
190
  <a name="M000001"></a>
190
191
 
191
192
  <div class="method-heading">
192
- <a href="#M000001" class="method-signature">
193
+ <a href="TCTestMu.src/M000001.html" target="Code" class="method-signature"
194
+ onclick="popupCode('TCTestMu.src/M000001.html');return false;">
193
195
  <span class="method-name">setup</span><span class="method-args">()</span>
194
196
  </a>
195
197
  </div>
196
198
 
197
199
  <div class="method-description">
198
- <p><a class="source-toggle" href="#"
199
- onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
200
- <div class="method-source-code" id="M000001-source">
201
- <pre>
202
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 16</span>
203
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span>
204
- <span class="ruby-identifier">$log</span>.<span class="ruby-identifier">level</span> = <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">INFO</span>
205
- <span class="ruby-ivar">@mu_ip</span> = <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_IP'</span>]
206
- <span class="ruby-ivar">@mu_admin_user</span> = <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_ADMIN_USER'</span>]
207
- <span class="ruby-ivar">@mu_admin_pass</span> = <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_ADMIN_PASS'</span>]
208
- <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>(<span class="ruby-identifier">$dir</span>)
209
- <span class="ruby-identifier">$cookie</span> = <span class="ruby-keyword kw">nil</span> <span class="ruby-comment cmt"># reset for htto_helper</span>
210
- <span class="ruby-comment cmt"># puts &quot;pwd = #{Dir.pwd}&quot;</span>
211
- <span class="ruby-keyword kw">end</span>
212
- </pre>
213
- </div>
214
200
  </div>
215
201
  </div>
216
202
 
@@ -218,22 +204,13 @@
218
204
  <a name="M000002"></a>
219
205
 
220
206
  <div class="method-heading">
221
- <a href="#M000002" class="method-signature">
207
+ <a href="TCTestMu.src/M000002.html" target="Code" class="method-signature"
208
+ onclick="popupCode('TCTestMu.src/M000002.html');return false;">
222
209
  <span class="method-name">teardown</span><span class="method-args">()</span>
223
210
  </a>
224
211
  </div>
225
212
 
226
213
  <div class="method-description">
227
- <p><a class="source-toggle" href="#"
228
- onclick="toggleCode('M000002-source');return false;">[Source]</a></p>
229
- <div class="method-source-code" id="M000002-source">
230
- <pre>
231
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 26</span>
232
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">teardown</span>
233
-
234
- <span class="ruby-keyword kw">end</span>
235
- </pre>
236
- </div>
237
214
  </div>
238
215
  </div>
239
216
 
@@ -241,7 +218,8 @@
241
218
  <a name="M000005"></a>
242
219
 
243
220
  <div class="method-heading">
244
- <a href="#M000005" class="method-signature">
221
+ <a href="TCTestMu.src/M000005.html" target="Code" class="method-signature"
222
+ onclick="popupCode('TCTestMu.src/M000005.html');return false;">
245
223
  <span class="method-name">test_cli_history</span><span class="method-args">()</span>
246
224
  </a>
247
225
  </div>
@@ -251,19 +229,6 @@
251
229
  &#8212;&#8212;&#8212;&#8212;&#8212; cmd_cli
252
230
  &#8212;&#8212;&#8212;&#8212;&#8212;-
253
231
  </p>
254
- <p><a class="source-toggle" href="#"
255
- onclick="toggleCode('M000005-source');return false;">[Source]</a></p>
256
- <div class="method-source-code" id="M000005-source">
257
- <pre>
258
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 74</span>
259
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cli_history</span>
260
- <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_cli</span>.<span class="ruby-identifier">new</span>
261
- <span class="ruby-identifier">result</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_history</span> []
262
- <span class="ruby-identifier">puts</span> <span class="ruby-identifier">result</span>
263
- <span class="ruby-identifier">assert</span> <span class="ruby-identifier">result</span><span class="ruby-operator">==</span><span class="ruby-keyword kw">true</span>, <span class="ruby-value str">&quot;expected 'true'&quot;</span>
264
- <span class="ruby-keyword kw">end</span>
265
- </pre>
266
- </div>
267
232
  </div>
268
233
  </div>
269
234
 
@@ -271,25 +236,13 @@
271
236
  <a name="M000006"></a>
272
237
 
273
238
  <div class="method-heading">
274
- <a href="#M000006" class="method-signature">
239
+ <a href="TCTestMu.src/M000006.html" target="Code" class="method-signature"
240
+ onclick="popupCode('TCTestMu.src/M000006.html');return false;">
275
241
  <span class="method-name">test_cli_question</span><span class="method-args">()</span>
276
242
  </a>
277
243
  </div>
278
244
 
279
245
  <div class="method-description">
280
- <p><a class="source-toggle" href="#"
281
- onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
282
- <div class="method-source-code" id="M000006-source">
283
- <pre>
284
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 81</span>
285
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cli_question</span>
286
- <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_cli</span>.<span class="ruby-identifier">new</span>
287
- <span class="ruby-identifier">result</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_question</span> []
288
- <span class="ruby-identifier">puts</span> <span class="ruby-identifier">result</span>
289
- <span class="ruby-identifier">assert</span> <span class="ruby-identifier">result</span><span class="ruby-operator">==</span><span class="ruby-keyword kw">true</span>, <span class="ruby-value str">&quot;expected 'true'&quot;</span>
290
- <span class="ruby-keyword kw">end</span>
291
- </pre>
292
- </div>
293
246
  </div>
294
247
  </div>
295
248
 
@@ -297,7 +250,8 @@
297
250
  <a name="M000004"></a>
298
251
 
299
252
  <div class="method-heading">
300
- <a href="#M000004" class="method-signature">
253
+ <a href="TCTestMu.src/M000004.html" target="Code" class="method-signature"
254
+ onclick="popupCode('TCTestMu.src/M000004.html');return false;">
301
255
  <span class="method-name">test_cmd_appid_run_dir</span><span class="method-args">()</span>
302
256
  </a>
303
257
  </div>
@@ -306,31 +260,6 @@
306
260
  <p>
307
261
  use ip range setting and a brief pattern
308
262
  </p>
309
- <p><a class="source-toggle" href="#"
310
- onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
311
- <div class="method-source-code" id="M000004-source">
312
- <pre>
313
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 52</span>
314
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_appid_run_dir</span>
315
- <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>)
316
- <span class="ruby-identifier">app</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_appid</span>.<span class="ruby-identifier">new</span>
317
- <span class="ruby-identifier">args</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
318
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-d&quot;</span>
319
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{Dir.pwd}/test/data&quot;</span>
320
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-i&quot;</span>
321
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;b1-10000,b2&quot;</span>
322
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-p&quot;</span>
323
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;1-100:10&quot;</span>
324
- <span class="ruby-identifier">app</span>.<span class="ruby-identifier">cmd_run_dir</span> <span class="ruby-identifier">args</span>
325
- <span class="ruby-identifier">sleep</span> <span class="ruby-value">2</span>
326
- <span class="ruby-identifier">assert</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>), <span class="ruby-value str">&quot;app_id_status.json file was not created&quot;</span>)
327
- <span class="ruby-identifier">j</span> = <span class="ruby-constant">JSON</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>)
328
- <span class="ruby-identifier">status</span> = <span class="ruby-identifier">j</span>[<span class="ruby-value str">&quot;status&quot;</span>]
329
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">status</span>[<span class="ruby-value str">&quot;statistics&quot;</span>][<span class="ruby-value str">&quot;summary&quot;</span>][<span class="ruby-value str">&quot;duration&quot;</span>].<span class="ruby-identifier">to_f</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-value">10.0</span>, <span class="ruby-node">&quot;expected summary duration &gt; 10, but got #{status[&quot;statistics&quot;][&quot;summary&quot;][&quot;duration&quot;]}&quot;</span>)
330
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">status</span>[<span class="ruby-value str">&quot;statistics&quot;</span>][<span class="ruby-value str">&quot;summary&quot;</span>][<span class="ruby-value str">&quot;instances&quot;</span>][<span class="ruby-value str">&quot;executed&quot;</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">10</span>, <span class="ruby-node">&quot;expected instances executed &gt; 0, but got #{status[&quot;statistics&quot;][&quot;summary&quot;][&quot;instances&quot;][&quot;executed&quot;]}&quot;</span>)
331
- <span class="ruby-keyword kw">end</span>
332
- </pre>
333
- </div>
334
263
  </div>
335
264
  </div>
336
265
 
@@ -338,7 +267,8 @@ use ip range setting and a brief pattern
338
267
  <a name="M000003"></a>
339
268
 
340
269
  <div class="method-heading">
341
- <a href="#M000003" class="method-signature">
270
+ <a href="TCTestMu.src/M000003.html" target="Code" class="method-signature"
271
+ onclick="popupCode('TCTestMu.src/M000003.html');return false;">
342
272
  <span class="method-name">test_cmd_appid_run_file</span><span class="method-args">()</span>
343
273
  </a>
344
274
  </div>
@@ -347,30 +277,20 @@ use ip range setting and a brief pattern
347
277
  <p>
348
278
  use ip range setting and a brief pattern
349
279
  </p>
350
- <p><a class="source-toggle" href="#"
351
- onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
352
- <div class="method-source-code" id="M000003-source">
353
- <pre>
354
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 33</span>
355
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_appid_run_file</span>
356
- <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>)
357
- <span class="ruby-identifier">app</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_appid</span>.<span class="ruby-identifier">new</span>
358
- <span class="ruby-identifier">args</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
359
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-s&quot;</span>
360
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{Dir.pwd}/test/data/data_cgi.msl&quot;</span>
361
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-i&quot;</span>
362
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;b1-10000,b2&quot;</span>
363
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-p&quot;</span>
364
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;1-100:10&quot;</span>
365
- <span class="ruby-identifier">app</span>.<span class="ruby-identifier">cmd_run_file</span> <span class="ruby-identifier">args</span>
366
- <span class="ruby-identifier">assert</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>), <span class="ruby-value str">&quot;app_id_status.json file was not created&quot;</span>)
367
- <span class="ruby-identifier">j</span> = <span class="ruby-constant">JSON</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>)
368
- <span class="ruby-identifier">status</span> = <span class="ruby-identifier">j</span>[<span class="ruby-value str">&quot;status&quot;</span>]
369
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">status</span>[<span class="ruby-value str">&quot;statistics&quot;</span>][<span class="ruby-value str">&quot;summary&quot;</span>][<span class="ruby-value str">&quot;duration&quot;</span>].<span class="ruby-identifier">to_f</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-value">10.0</span>, <span class="ruby-node">&quot;expected summary duration &gt; 10, but got #{status[&quot;statistics&quot;][&quot;summary&quot;][&quot;duration&quot;]}&quot;</span>)
370
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">status</span>[<span class="ruby-value str">&quot;statistics&quot;</span>][<span class="ruby-value str">&quot;summary&quot;</span>][<span class="ruby-value str">&quot;instances&quot;</span>][<span class="ruby-value str">&quot;executed&quot;</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">10</span>, <span class="ruby-node">&quot;expected instances executed &gt; 0, but got #{status[&quot;statistics&quot;][&quot;summary&quot;][&quot;instances&quot;][&quot;executed&quot;]}&quot;</span>)
371
- <span class="ruby-keyword kw">end</span>
372
- </pre>
373
- </div>
280
+ </div>
281
+ </div>
282
+
283
+ <div id="method-M000008" class="method-detail">
284
+ <a name="M000008"></a>
285
+
286
+ <div class="method-heading">
287
+ <a href="TCTestMu.src/M000008.html" target="Code" class="method-signature"
288
+ onclick="popupCode('TCTestMu.src/M000008.html');return false;">
289
+ <span class="method-name">test_cmd_ddt_csv_import_export</span><span class="method-args">()</span>
290
+ </a>
291
+ </div>
292
+
293
+ <div class="method-description">
374
294
  </div>
375
295
  </div>
376
296
 
@@ -378,7 +298,8 @@ use ip range setting and a brief pattern
378
298
  <a name="M000007"></a>
379
299
 
380
300
  <div class="method-heading">
381
- <a href="#M000007" class="method-signature">
301
+ <a href="TCTestMu.src/M000007.html" target="Code" class="method-signature"
302
+ onclick="popupCode('TCTestMu.src/M000007.html');return false;">
382
303
  <span class="method-name">test_cmd_ddt_get_all_sessions</span><span class="method-args">()</span>
383
304
  </a>
384
305
  </div>
@@ -388,435 +309,141 @@ use ip range setting and a brief pattern
388
309
  &#8212;&#8212;&#8212;&#8212;&#8212; cmd_ddt
389
310
  &#8212;&#8212;&#8212;&#8212;&#8212;
390
311
  </p>
391
- <p><a class="source-toggle" href="#"
392
- onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
393
- <div class="method-source-code" id="M000007-source">
394
- <pre>
395
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 90</span>
396
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_ddt_get_all_sessions</span>
397
- <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_ddt</span>.<span class="ruby-identifier">new</span>
398
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_close_all_sessions</span> []
399
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_new_session</span> []
400
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_new_session</span> []
401
- <span class="ruby-identifier">sessions</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span>(<span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_get_all_sessions</span> [])
402
- <span class="ruby-identifier">sess</span> = <span class="ruby-identifier">sessions</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">&quot;//session&quot;</span>)
403
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">sess</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">==</span> <span class="ruby-value">2</span>, <span class="ruby-node">&quot;expected 2 sessions, got #{sess.length}&quot;</span>)
404
- <span class="ruby-keyword kw">ensure</span>
405
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_close_all_sessions</span> []
406
- <span class="ruby-keyword kw">end</span>
407
- </pre>
408
- </div>
409
312
  </div>
410
313
  </div>
411
314
 
412
- <div id="method-M000010" class="method-detail">
413
- <a name="M000010"></a>
315
+ <div id="method-M000011" class="method-detail">
316
+ <a name="M000011"></a>
414
317
 
415
318
  <div class="method-heading">
416
- <a href="#M000010" class="method-signature">
319
+ <a href="TCTestMu.src/M000011.html" target="Code" class="method-signature"
320
+ onclick="popupCode('TCTestMu.src/M000011.html');return false;">
417
321
  <span class="method-name">test_cmd_ddt_get_set_channels</span><span class="method-args">()</span>
418
322
  </a>
419
323
  </div>
420
324
 
421
325
  <div class="method-description">
422
- <p><a class="source-toggle" href="#"
423
- onclick="toggleCode('M000010-source');return false;">[Source]</a></p>
424
- <div class="method-source-code" id="M000010-source">
425
- <pre>
426
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 151</span>
427
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_ddt_get_set_channels</span>
428
- <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;expects SSH channel defined on a host named dell-eth1&quot;</span>
429
- <span class="ruby-identifier">scenario_uuid</span> = <span class="ruby-value str">&quot;379a4cf8-8fe7-4d2d-8f6b-b8c6b71557b4&quot;</span> <span class="ruby-comment cmt"># ftp_with_channel</span>
430
- <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_ddt</span>.<span class="ruby-identifier">new</span>
431
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_close_all_sessions</span> [ <span class="ruby-value str">&quot;-v&quot;</span> ]
432
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_new_session</span> []
433
- <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">&quot;/api/v3/&quot;</span>)
434
- <span class="ruby-identifier">http_helper</span>.<span class="ruby-identifier">post_xml</span>(<span class="ruby-value str">&quot;templates/import&quot;</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-node">&quot;#{Dir.pwd}/test/data/ftp_with_channel.xml&quot;</span>))
435
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_load_scenario</span> [ <span class="ruby-value str">&quot;-u&quot;</span>, <span class="ruby-identifier">scenario_uuid</span> ]
436
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_setup_test</span> []
437
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_get_channels</span> []
438
- <span class="ruby-identifier">doc</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span>(<span class="ruby-identifier">response</span>)
439
- <span class="ruby-identifier">channels</span> = <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">&quot;//channel&quot;</span>)
440
- <span class="ruby-identifier">assert</span> <span class="ruby-identifier">channels</span>.<span class="ruby-identifier">length</span><span class="ruby-operator">==</span><span class="ruby-value">1</span>, <span class="ruby-node">&quot;expected 1 scenario channel, found #{channels.length}&quot;</span>
441
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_set_channels</span> [ <span class="ruby-value str">&quot;-r&quot;</span>, <span class="ruby-value str">&quot;channel&quot;</span>, <span class="ruby-value str">&quot;-n&quot;</span>, <span class="ruby-value str">&quot;dell-eth1&quot;</span> ]
442
- <span class="ruby-identifier">response</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">resp</span> <span class="ruby-operator">|</span>
443
- <span class="ruby-identifier">doc</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span>(<span class="ruby-identifier">resp</span>)
444
- <span class="ruby-identifier">message</span> = <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">&quot;//message&quot;</span>).<span class="ruby-identifier">text</span>
445
- <span class="ruby-identifier">assert</span> <span class="ruby-identifier">message</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">&quot;Bind channel successfully&quot;</span>) , <span class="ruby-node">&quot;expected 'Bind host successfully' but got #{message}&quot;</span>
446
- <span class="ruby-keyword kw">end</span>
447
- <span class="ruby-keyword kw">ensure</span>
448
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_close_all_sessions</span> []
449
- <span class="ruby-keyword kw">end</span>
450
- </pre>
451
- </div>
452
326
  </div>
453
327
  </div>
454
328
 
455
- <div id="method-M000009" class="method-detail">
456
- <a name="M000009"></a>
329
+ <div id="method-M000010" class="method-detail">
330
+ <a name="M000010"></a>
457
331
 
458
332
  <div class="method-heading">
459
- <a href="#M000009" class="method-signature">
333
+ <a href="TCTestMu.src/M000010.html" target="Code" class="method-signature"
334
+ onclick="popupCode('TCTestMu.src/M000010.html');return false;">
460
335
  <span class="method-name">test_cmd_ddt_get_set_hosts</span><span class="method-args">()</span>
461
336
  </a>
462
337
  </div>
463
338
 
464
339
  <div class="method-description">
465
- <p><a class="source-toggle" href="#"
466
- onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
467
- <div class="method-source-code" id="M000009-source">
468
- <pre>
469
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 127</span>
470
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_ddt_get_set_hosts</span>
471
- <span class="ruby-identifier">scenario_uuid</span> = <span class="ruby-value str">&quot;ef6fe3eb-4e9f-44b5-a99e-c431d82e4eeb&quot;</span>
472
- <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_ddt</span>.<span class="ruby-identifier">new</span>
473
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_close_all_sessions</span> [ <span class="ruby-value str">&quot;-v&quot;</span> ]
474
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_new_session</span> []
475
- <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">&quot;/api/v3/&quot;</span>)
476
- <span class="ruby-identifier">http_helper</span>.<span class="ruby-identifier">post_xml</span>(<span class="ruby-value str">&quot;templates/import&quot;</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-node">&quot;#{Dir.pwd}/test/data/data_cgi.xml&quot;</span>))
477
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_load_scenario</span> [ <span class="ruby-value str">&quot;-u&quot;</span>, <span class="ruby-identifier">scenario_uuid</span> ]
478
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_setup_test</span> []
479
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_get_hosts</span> []
480
- <span class="ruby-identifier">doc</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span>(<span class="ruby-identifier">response</span>)
481
- <span class="ruby-identifier">hosts</span> = <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">&quot;//host&quot;</span>)
482
- <span class="ruby-identifier">role</span> = <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">&quot;//host/role&quot;</span>)[<span class="ruby-value">0</span>].<span class="ruby-identifier">text</span>
483
- <span class="ruby-identifier">assert</span> <span class="ruby-identifier">hosts</span>.<span class="ruby-identifier">length</span><span class="ruby-operator">==</span><span class="ruby-value">2</span>, <span class="ruby-node">&quot;expected 2 scenario hosts, found #{hosts.length}&quot;</span>
484
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_set_hosts</span> [ <span class="ruby-value str">&quot;-r&quot;</span>, <span class="ruby-identifier">role</span>, <span class="ruby-value str">&quot;-n&quot;</span>, <span class="ruby-value str">&quot;a3&quot;</span> ]
485
- <span class="ruby-identifier">response</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">resp</span> <span class="ruby-operator">|</span>
486
- <span class="ruby-identifier">doc</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span>(<span class="ruby-identifier">resp</span>)
487
- <span class="ruby-identifier">message</span> = <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">&quot;//message&quot;</span>).<span class="ruby-identifier">text</span>
488
- <span class="ruby-identifier">assert</span> <span class="ruby-identifier">message</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">&quot;Bind host successfully&quot;</span>) , <span class="ruby-node">&quot;expected 'Bind host successfully' but got #{message}&quot;</span>
489
- <span class="ruby-keyword kw">end</span>
490
- <span class="ruby-keyword kw">ensure</span>
491
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_close_all_sessions</span> []
492
- <span class="ruby-keyword kw">end</span>
493
- </pre>
494
- </div>
495
340
  </div>
496
341
  </div>
497
342
 
498
- <div id="method-M000008" class="method-detail">
499
- <a name="M000008"></a>
343
+ <div id="method-M000009" class="method-detail">
344
+ <a name="M000009"></a>
500
345
 
501
346
  <div class="method-heading">
502
- <a href="#M000008" class="method-signature">
347
+ <a href="TCTestMu.src/M000009.html" target="Code" class="method-signature"
348
+ onclick="popupCode('TCTestMu.src/M000009.html');return false;">
503
349
  <span class="method-name">test_cmd_ddt_get_set_options</span><span class="method-args">()</span>
504
350
  </a>
505
351
  </div>
506
352
 
507
353
  <div class="method-description">
508
- <p><a class="source-toggle" href="#"
509
- onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
510
- <div class="method-source-code" id="M000008-source">
511
- <pre>
512
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 102</span>
513
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_ddt_get_set_options</span>
514
- <span class="ruby-identifier">scenario_uuid</span> = <span class="ruby-value str">&quot;ef6fe3eb-4e9f-44b5-a99e-c431d82e4eeb&quot;</span>
515
- <span class="ruby-comment cmt">#test_set_uuid = &quot;49cd406e-a8ca-4360-a115-e7ac33e8034f&quot;</span>
516
- <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_ddt</span>.<span class="ruby-identifier">new</span>
517
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_close_all_sessions</span> []
518
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_new_session</span> []
519
- <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">&quot;/api/v3/&quot;</span>)
520
- <span class="ruby-identifier">http_helper</span>.<span class="ruby-identifier">post_xml</span>(<span class="ruby-value str">&quot;templates/import&quot;</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-node">&quot;#{Dir.pwd}/test/data/data_cgi.xml&quot;</span>))
521
- <span class="ruby-comment cmt"># http_helper.post_xml(&quot;templates/import&quot;, File.read(&quot;#{Dir.pwd}/test/data/test_data_cgi_error.xml&quot;))</span>
522
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_load_scenario</span> [ <span class="ruby-value str">&quot;-u&quot;</span>, <span class="ruby-identifier">scenario_uuid</span> ]
523
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_setup_test</span> []
524
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_get_options</span> []
525
- <span class="ruby-identifier">doc</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span>(<span class="ruby-identifier">response</span>)
526
- <span class="ruby-identifier">options</span> = <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">&quot;//option/name&quot;</span>)
527
- <span class="ruby-identifier">assert</span> <span class="ruby-identifier">options</span>.<span class="ruby-identifier">length</span><span class="ruby-operator">==</span><span class="ruby-value">8</span>, <span class="ruby-node">&quot;expected 8 scenario options, found #{options.length}&quot;</span>
528
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_set_options</span> [ <span class="ruby-value str">&quot;-n&quot;</span>, <span class="ruby-value str">&quot;scenario_user_options.url&quot;</span>, <span class="ruby-value str">&quot;-p&quot;</span>, <span class="ruby-value str">&quot;hullo&quot;</span> ]
529
- <span class="ruby-identifier">response</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">resp</span> <span class="ruby-operator">|</span>
530
- <span class="ruby-identifier">doc</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span>(<span class="ruby-identifier">resp</span>)
531
- <span class="ruby-identifier">message</span> = <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">&quot;//message&quot;</span>).<span class="ruby-identifier">text</span>
532
- <span class="ruby-identifier">assert</span> <span class="ruby-identifier">message</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">&quot;Option set&quot;</span>) , <span class="ruby-node">&quot;expected 'Option set' but got #{message}&quot;</span>
533
- <span class="ruby-keyword kw">end</span>
534
- <span class="ruby-keyword kw">ensure</span>
535
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_close_all_sessions</span> []
536
- <span class="ruby-keyword kw">end</span>
537
- </pre>
538
- </div>
539
354
  </div>
540
355
  </div>
541
356
 
542
- <div id="method-M000024" class="method-detail">
543
- <a name="M000024"></a>
357
+ <div id="method-M000025" class="method-detail">
358
+ <a name="M000025"></a>
544
359
 
545
360
  <div class="method-heading">
546
- <a href="#M000024" class="method-signature">
361
+ <a href="TCTestMu.src/M000025.html" target="Code" class="method-signature"
362
+ onclick="popupCode('TCTestMu.src/M000025.html');return false;">
547
363
  <span class="method-name">test_cmd_muapi_analysis</span><span class="method-args">()</span>
548
364
  </a>
549
365
  </div>
550
366
 
551
367
  <div class="method-description">
552
- <p>
553
- assumes hosts a1.v4 -&gt; dell-eth1.v4
554
- </p>
555
- <p><a class="source-toggle" href="#"
556
- onclick="toggleCode('M000024-source');return false;">[Source]</a></p>
557
- <div class="method-source-code" id="M000024-source">
558
- <pre>
559
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 315</span>
560
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_muapi_analysis</span>
561
- <span class="ruby-comment cmt"># $log.level = Logger::DEBUG</span>
562
- <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;assumes hosts a1.v4 -&gt; dell-eth1.v4&quot;</span>
563
- <span class="ruby-identifier">uuid</span> = <span class="ruby-value str">&quot;f07f3cb9-b1a0-4840-a7fd-e733c89f303c&quot;</span>
564
- <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">&quot;/api/v3/&quot;</span>)
565
- <span class="ruby-identifier">http_helper</span>.<span class="ruby-identifier">post_xml</span>(<span class="ruby-value str">&quot;templates/import&quot;</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-node">&quot;#{Dir.pwd}/test/data/proto_arp.xml&quot;</span>))
566
- <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>
567
-
568
- <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>
569
- <span class="ruby-identifier">sleep</span> <span class="ruby-value">2</span>
570
- <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>)
571
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;RUNNING&quot;</span>, <span class="ruby-node">&quot;after RUN, expected status=RUNNING, got #{status}&quot;</span>)
572
- <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>)
573
- <span class="ruby-identifier">sleep</span> <span class="ruby-value">2</span>
574
- <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>)
575
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;SUSPENDED&quot;</span>, <span class="ruby-node">&quot;after PAUSE, expected status=SUSPENDED, got #{status}&quot;</span>)
576
- <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>)
577
- <span class="ruby-identifier">sleep</span> <span class="ruby-value">2</span>
578
- <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>)
579
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;RUNNING&quot;</span>, <span class="ruby-node">&quot;after RESUME, expected status=RUNNING, got #{status}&quot;</span>)
580
- <span class="ruby-identifier">sleep</span> <span class="ruby-value">2</span>
581
- <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">&quot;-s&quot;</span>, <span class="ruby-value str">&quot;running&quot;</span>]
582
- <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">&quot;expected run_uuid #{run_uuid}in the list_by_status for running, but got #{list}&quot;</span>)
583
- <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>)
584
- <span class="ruby-identifier">sleep</span> <span class="ruby-value">2</span>
585
- <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>)
586
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;ABORTED&quot;</span>, <span class="ruby-node">&quot;after STOP, expected status=ABORTED, got #{status}&quot;</span>)
587
- <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>
588
- <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">&quot;proto/arp&quot;</span>), <span class="ruby-node">&quot;expected name = proto/arp but got #{name.value}&quot;</span>)
589
- <span class="ruby-keyword kw">ensure</span>
590
- <span class="ruby-keyword kw">begin</span>
591
- <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>)
592
- <span class="ruby-keyword kw">rescue</span>
593
- <span class="ruby-comment cmt"># do nothing. probably already stopped</span>
594
- <span class="ruby-keyword kw">end</span>
595
- <span class="ruby-keyword kw">end</span>
596
- </pre>
597
- </div>
598
368
  </div>
599
369
  </div>
600
370
 
601
- <div id="method-M000026" class="method-detail">
602
- <a name="M000026"></a>
371
+ <div id="method-M000027" class="method-detail">
372
+ <a name="M000027"></a>
603
373
 
604
374
  <div class="method-heading">
605
- <a href="#M000026" class="method-signature">
375
+ <a href="TCTestMu.src/M000027.html" target="Code" class="method-signature"
376
+ onclick="popupCode('TCTestMu.src/M000027.html');return false;">
606
377
  <span class="method-name">test_cmd_muapi_archive</span><span class="method-args">()</span>
607
378
  </a>
608
379
  </div>
609
380
 
610
381
  <div class="method-description">
611
- <p>
612
- assumes hosts a1.v4 -&gt; dell-eth1.v4
613
- </p>
614
- <p><a class="source-toggle" href="#"
615
- onclick="toggleCode('M000026-source');return false;">[Source]</a></p>
616
- <div class="method-source-code" id="M000026-source">
617
- <pre>
618
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 361</span>
619
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_muapi_archive</span>
620
- <span class="ruby-comment cmt"># $log.level = Logger::DEBUG</span>
621
- <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;assumes hosts a1.v4 -&gt; dell-eth1.v4&quot;</span>
622
- <span class="ruby-identifier">uuid</span> = <span class="ruby-value str">&quot;f07f3cb9-b1a0-4840-a7fd-e733c89f303c&quot;</span>
623
-
624
- <span class="ruby-comment cmt"># load it</span>
625
- <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">&quot;/api/v3/&quot;</span>)
626
- <span class="ruby-identifier">http_helper</span>.<span class="ruby-identifier">post_xml</span>(<span class="ruby-value str">&quot;templates/import&quot;</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-node">&quot;#{Dir.pwd}/test/data/proto_arp.xml&quot;</span>))
627
- <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>
628
-
629
- <span class="ruby-comment cmt"># run it</span>
630
- <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>
631
- <span class="ruby-identifier">sleep</span> <span class="ruby-value">2</span>
632
- <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>)
633
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;RUNNING&quot;</span>, <span class="ruby-node">&quot;after RUN, expected status=RUNNING, got #{status}&quot;</span>)
634
- <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;RUNNING&quot;</span>
635
- <span class="ruby-identifier">sleep</span> <span class="ruby-value">5</span>
636
- <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>)
637
- <span class="ruby-keyword kw">end</span>
638
-
639
- <span class="ruby-comment cmt"># archive it</span>
640
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_archive</span> [<span class="ruby-value str">&quot;-c&quot;</span>, <span class="ruby-value str">&quot;run&quot;</span>, <span class="ruby-value str">&quot;-u&quot;</span>, <span class="ruby-identifier">run_uuid</span> ]
641
- <span class="ruby-identifier">sleep</span> <span class="ruby-value">5</span>
642
- <span class="ruby-identifier">status</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_archive</span> [<span class="ruby-value str">&quot;-s&quot;</span>, <span class="ruby-value str">&quot;status&quot;</span>, <span class="ruby-value str">&quot;-u&quot;</span>, <span class="ruby-identifier">run_uuid</span> ]
643
-
644
- <span class="ruby-keyword kw">while</span> <span class="ruby-keyword kw">true</span>
645
- <span class="ruby-identifier">status</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_archive</span> [<span class="ruby-value str">&quot;-s&quot;</span>, <span class="ruby-value str">&quot;status&quot;</span>, <span class="ruby-value str">&quot;-u&quot;</span>, <span class="ruby-identifier">run_uuid</span> ]
646
- <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>
647
- <span class="ruby-identifier">sleep</span> <span class="ruby-value">5</span>
648
- <span class="ruby-keyword kw">end</span>
649
-
650
- <span class="ruby-comment cmt"># now get it</span>
651
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_archive</span> [<span class="ruby-value str">&quot;-c&quot;</span>, <span class="ruby-value str">&quot;get&quot;</span>, <span class="ruby-value str">&quot;-u&quot;</span>, <span class="ruby-identifier">run_uuid</span> ]
652
- <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">&quot;.zip&quot;</span>
653
- <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">&quot;did not find the expected file #{file_name}&quot;</span>)
654
- <span class="ruby-keyword kw">end</span>
655
- </pre>
656
- </div>
657
382
  </div>
658
383
  </div>
659
384
 
660
- <div id="method-M000023" class="method-detail">
661
- <a name="M000023"></a>
385
+ <div id="method-M000024" class="method-detail">
386
+ <a name="M000024"></a>
662
387
 
663
388
  <div class="method-heading">
664
- <a href="#M000023" class="method-signature">
389
+ <a href="TCTestMu.src/M000024.html" target="Code" class="method-signature"
390
+ onclick="popupCode('TCTestMu.src/M000024.html');return false;">
665
391
  <span class="method-name">test_cmd_muapi_capture</span><span class="method-args">()</span>
666
392
  </a>
667
393
  </div>
668
394
 
669
395
  <div class="method-description">
670
- <p><a class="source-toggle" href="#"
671
- onclick="toggleCode('M000023-source');return false;">[Source]</a></p>
672
- <div class="method-source-code" id="M000023-source">
673
- <pre>
674
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 284</span>
675
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_muapi_capture</span>
676
- <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>
677
- <span class="ruby-identifier">run_args</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
678
- <span class="ruby-identifier">run_args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-c&quot;</span>
679
- <span class="ruby-identifier">run_args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;run&quot;</span>
680
- <span class="ruby-identifier">run_args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-p&quot;</span>
681
- <span class="ruby-identifier">run_args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;a1&quot;</span>
682
- <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>
683
- <span class="ruby-identifier">sleep</span> <span class="ruby-value">2</span>
684
- <span class="ruby-identifier">status_args</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
685
- <span class="ruby-identifier">status_args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-c&quot;</span>
686
- <span class="ruby-identifier">status_args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;status&quot;</span>
687
- <span class="ruby-identifier">status_args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-p&quot;</span>
688
- <span class="ruby-identifier">status_args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;a1&quot;</span>
689
- <span class="ruby-identifier">status_args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-u&quot;</span>
690
- <span class="ruby-identifier">status_args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">job_id</span>
691
- <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>
692
- <span class="ruby-identifier">sleep</span> <span class="ruby-value">2</span>
693
- <span class="ruby-identifier">get_args</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
694
- <span class="ruby-identifier">get_args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-c&quot;</span>
695
- <span class="ruby-identifier">get_args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;get&quot;</span>
696
- <span class="ruby-identifier">get_args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-p&quot;</span>
697
- <span class="ruby-identifier">get_args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;a1&quot;</span>
698
- <span class="ruby-identifier">get_args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-u&quot;</span>
699
- <span class="ruby-identifier">get_args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">job_id</span>
700
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_capture</span> <span class="ruby-identifier">get_args</span>
701
- <span class="ruby-identifier">sleep</span> <span class="ruby-value">2</span>
702
- <span class="ruby-identifier">assert</span>( <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-node">&quot;#{job_id}.pcap&quot;</span>), <span class="ruby-node">&quot;expected to find #{job_id}.pcap but didn't&quot;</span>)
703
- <span class="ruby-keyword kw">end</span>
704
- </pre>
705
- </div>
706
396
  </div>
707
397
  </div>
708
398
 
709
- <div id="method-M000027" class="method-detail">
710
- <a name="M000027"></a>
399
+ <div id="method-M000028" class="method-detail">
400
+ <a name="M000028"></a>
711
401
 
712
402
  <div class="method-heading">
713
- <a href="#M000027" class="method-signature">
403
+ <a href="TCTestMu.src/M000028.html" target="Code" class="method-signature"
404
+ onclick="popupCode('TCTestMu.src/M000028.html');return false;">
714
405
  <span class="method-name">test_cmd_muapi_delete</span><span class="method-args">()</span>
715
406
  </a>
716
407
  </div>
717
408
 
718
409
  <div class="method-description">
719
- <p>
720
- assumes hosts a1.v4 -&gt; dell-eth1.v4
721
- </p>
722
- <p><a class="source-toggle" href="#"
723
- onclick="toggleCode('M000027-source');return false;">[Source]</a></p>
724
- <div class="method-source-code" id="M000027-source">
725
- <pre>
726
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 399</span>
727
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_muapi_delete</span>
728
- <span class="ruby-comment cmt"># $log.level = Logger::DEBUG</span>
729
- <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;assumes hosts a1.v4 -&gt; dell-eth1.v4&quot;</span>
730
- <span class="ruby-identifier">uuid</span> = <span class="ruby-value str">&quot;f07f3cb9-b1a0-4840-a7fd-e733c89f303c&quot;</span>
731
-
732
- <span class="ruby-comment cmt"># load it</span>
733
- <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">&quot;/api/v3/&quot;</span>)
734
- <span class="ruby-identifier">http_helper</span>.<span class="ruby-identifier">post_xml</span>(<span class="ruby-value str">&quot;templates/import&quot;</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-node">&quot;#{Dir.pwd}/test/data/proto_arp.xml&quot;</span>))
735
- <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>
736
-
737
- <span class="ruby-comment cmt"># run it</span>
738
- <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>
739
- <span class="ruby-identifier">sleep</span> <span class="ruby-value">2</span>
740
- <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>)
741
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;RUNNING&quot;</span>, <span class="ruby-node">&quot;after RUN, expected status=RUNNING, got #{status}&quot;</span>)
742
- <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;RUNNING&quot;</span>
743
- <span class="ruby-identifier">sleep</span> <span class="ruby-value">5</span>
744
- <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>)
745
- <span class="ruby-keyword kw">end</span>
746
-
747
- <span class="ruby-comment cmt"># now delete it</span>
748
- <span class="ruby-identifier">status</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_delete</span> [ <span class="ruby-value str">&quot;-u&quot;</span>, <span class="ruby-identifier">run_uuid</span> ]
749
- <span class="ruby-identifier">puts</span> <span class="ruby-identifier">status</span>
750
-
751
- <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>)
752
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">status</span>.<span class="ruby-identifier">nil?</span>, <span class="ruby-node">&quot;expected status=nil, got #{status}&quot;</span>)
753
- <span class="ruby-keyword kw">end</span>
754
- </pre>
755
- </div>
756
410
  </div>
757
411
  </div>
758
412
 
759
- <div id="method-M000022" class="method-detail">
760
- <a name="M000022"></a>
413
+ <div id="method-M000023" class="method-detail">
414
+ <a name="M000023"></a>
761
415
 
762
416
  <div class="method-heading">
763
- <a href="#M000022" class="method-signature">
417
+ <a href="TCTestMu.src/M000023.html" target="Code" class="method-signature"
418
+ onclick="popupCode('TCTestMu.src/M000023.html');return false;">
764
419
  <span class="method-name">test_cmd_muapi_export_by_type_and_name</span><span class="method-args">()</span>
765
420
  </a>
766
421
  </div>
767
422
 
768
423
  <div class="method-description">
769
- <p><a class="source-toggle" href="#"
770
- onclick="toggleCode('M000022-source');return false;">[Source]</a></p>
771
- <div class="method-source-code" id="M000022-source">
772
- <pre>
773
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 275</span>
774
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_muapi_export_by_type_and_name</span>
775
- <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>
776
- <span class="ruby-identifier">scenario_uuid</span> = <span class="ruby-value str">&quot;379a4cf8-8fe7-4d2d-8f6b-b8c6b71557b4&quot;</span> <span class="ruby-comment cmt"># ftp_with_channel</span>
777
- <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">&quot;/api/v3/&quot;</span>)
778
- <span class="ruby-identifier">http_helper</span>.<span class="ruby-identifier">post_xml</span>(<span class="ruby-value str">&quot;templates/import&quot;</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-node">&quot;#{Dir.pwd}/test/data/ftp_with_channel.xml&quot;</span>))
779
- <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">&quot;-n&quot;</span>, <span class="ruby-value str">&quot;ftp_with_channel&quot;</span>, <span class="ruby-value str">&quot;-t&quot;</span>, <span class="ruby-value str">&quot;scenario&quot;</span>]).<span class="ruby-identifier">to_s</span>
780
- <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">&quot;expected #{scenario_uuid} but did not find it&quot;</span>
781
- <span class="ruby-keyword kw">end</span>
782
- </pre>
783
- </div>
784
424
  </div>
785
425
  </div>
786
426
 
787
- <div id="method-M000021" class="method-detail">
788
- <a name="M000021"></a>
427
+ <div id="method-M000022" class="method-detail">
428
+ <a name="M000022"></a>
789
429
 
790
430
  <div class="method-heading">
791
- <a href="#M000021" class="method-signature">
431
+ <a href="TCTestMu.src/M000022.html" target="Code" class="method-signature"
432
+ onclick="popupCode('TCTestMu.src/M000022.html');return false;">
792
433
  <span class="method-name">test_cmd_muapi_export_by_uuid</span><span class="method-args">()</span>
793
434
  </a>
794
435
  </div>
795
436
 
796
437
  <div class="method-description">
797
- <p><a class="source-toggle" href="#"
798
- onclick="toggleCode('M000021-source');return false;">[Source]</a></p>
799
- <div class="method-source-code" id="M000021-source">
800
- <pre>
801
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 266</span>
802
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_muapi_export_by_uuid</span>
803
- <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>
804
- <span class="ruby-identifier">scenario_uuid</span> = <span class="ruby-value str">&quot;379a4cf8-8fe7-4d2d-8f6b-b8c6b71557b4&quot;</span> <span class="ruby-comment cmt"># ftp_with_channel</span>
805
- <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">&quot;/api/v3/&quot;</span>)
806
- <span class="ruby-identifier">http_helper</span>.<span class="ruby-identifier">post_xml</span>(<span class="ruby-value str">&quot;templates/import&quot;</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-node">&quot;#{Dir.pwd}/test/data/ftp_with_channel.xml&quot;</span>))
807
- <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">&quot;-u&quot;</span>, <span class="ruby-identifier">scenario_uuid</span>]).<span class="ruby-identifier">to_s</span>
808
- <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">&quot;expected #{scenario_uuid} but did not find it&quot;</span>
809
- <span class="ruby-keyword kw">end</span>
810
- </pre>
811
- </div>
812
438
  </div>
813
439
  </div>
814
440
 
815
- <div id="method-M000020" class="method-detail">
816
- <a name="M000020"></a>
441
+ <div id="method-M000021" class="method-detail">
442
+ <a name="M000021"></a>
817
443
 
818
444
  <div class="method-heading">
819
- <a href="#M000020" class="method-signature">
445
+ <a href="TCTestMu.src/M000021.html" target="Code" class="method-signature"
446
+ onclick="popupCode('TCTestMu.src/M000021.html');return false;">
820
447
  <span class="method-name">test_cmd_muapi_types</span><span class="method-args">()</span>
821
448
  </a>
822
449
  </div>
@@ -825,100 +452,43 @@ assumes hosts a1.v4 -&gt; dell-eth1.v4
825
452
  <p>
826
453
  &#8212;&#8212;&#8212;&#8212;&#8212; cmd_muapi &#8212;&#8212;&#8212;&#8212;
827
454
  </p>
828
- <p><a class="source-toggle" href="#"
829
- onclick="toggleCode('M000020-source');return false;">[Source]</a></p>
830
- <div class="method-source-code" id="M000020-source">
831
- <pre>
832
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 260</span>
833
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_muapi_types</span>
834
- <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>
835
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_types</span> []
836
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">response</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">&quot;scenario&quot;</span>), <span class="ruby-node">&quot;expected scenario got #{response}&quot;</span>)
837
- <span class="ruby-keyword kw">end</span>
838
- </pre>
839
- </div>
840
455
  </div>
841
456
  </div>
842
457
 
843
- <div id="method-M000035" class="method-detail">
844
- <a name="M000035"></a>
458
+ <div id="method-M000036" class="method-detail">
459
+ <a name="M000036"></a>
845
460
 
846
461
  <div class="method-heading">
847
- <a href="#M000035" class="method-signature">
462
+ <a href="TCTestMu.src/M000036.html" target="Code" class="method-signature"
463
+ onclick="popupCode('TCTestMu.src/M000036.html');return false;">
848
464
  <span class="method-name">test_cmd_netconfig_add_modify_delete_route</span><span class="method-args">()</span>
849
465
  </a>
850
466
  </div>
851
467
 
852
468
  <div class="method-description">
853
- <p><a class="source-toggle" href="#"
854
- onclick="toggleCode('M000035-source');return false;">[Source]</a></p>
855
- <div class="method-source-code" id="M000035-source">
856
- <pre>
857
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 495</span>
858
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_netconfig_add_modify_delete_route</span>
859
- <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;assumes a1 on 192.168.30.x subnet and a router at 192.168.30.247&quot;</span>
860
- <span class="ruby-comment cmt"># $log.level = Logger::DEBUG</span>
861
- <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_netconfig</span>.<span class="ruby-identifier">new</span>
862
- <span class="ruby-identifier">system</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_get</span> [<span class="ruby-value str">&quot;-e&quot;</span>, <span class="ruby-value str">&quot;system&quot;</span>]
863
- <span class="ruby-comment cmt"># delete route if if already existsname&quot;] ==</span>
864
- <span class="ruby-keyword kw">begin</span>
865
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_delete</span> [<span class="ruby-value str">&quot;-e&quot;</span>, <span class="ruby-value str">&quot;routes/192.168.100.0-192.168.30.247-a1&quot;</span>]
866
- <span class="ruby-keyword kw">rescue</span>
867
- <span class="ruby-comment cmt"># do nothing. route may not exists</span>
868
- <span class="ruby-keyword kw">end</span>
869
- <span class="ruby-comment cmt"># turn dhcp on</span>
870
- <span class="ruby-identifier">dhcp</span> = {<span class="ruby-value str">&quot;name&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-value str">&quot;a1&quot;</span>,<span class="ruby-value str">&quot;v4_dhcp&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-value str">&quot;Enabled&quot;</span>}
871
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_modify</span> [<span class="ruby-value str">&quot;-j&quot;</span>, <span class="ruby-identifier">dhcp</span>, <span class="ruby-value str">&quot;-e&quot;</span>, <span class="ruby-value str">&quot;interfaces/a1&quot;</span>]
872
- <span class="ruby-identifier">sleep</span> <span class="ruby-value">3</span>
873
- <span class="ruby-identifier">g</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_get</span> [<span class="ruby-value str">&quot;-e&quot;</span>, <span class="ruby-value str">&quot;interfaces/a1&quot;</span>]
874
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">g</span>[<span class="ruby-value str">&quot;v4_addrs&quot;</span>][<span class="ruby-value str">&quot;begin&quot;</span>].<span class="ruby-identifier">include?</span>(<span class="ruby-value str">&quot;192.168.30&quot;</span>),<span class="ruby-value str">&quot;A1 DHCP failed&quot;</span>)
875
- <span class="ruby-identifier">new_route</span> = {<span class="ruby-value str">&quot;interface&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-value str">&quot;a1&quot;</span>, <span class="ruby-value str">&quot;dst&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-value str">&quot;192.168.100.0&quot;</span>, <span class="ruby-value str">&quot;gateway&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-value str">&quot;192.168.30.247&quot;</span>, <span class="ruby-value str">&quot;dst_pfx_len&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-value">24</span>}
876
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_create</span> [<span class="ruby-value str">&quot;-j&quot;</span>, <span class="ruby-identifier">new_route</span>, <span class="ruby-value str">&quot;-e&quot;</span>, <span class="ruby-value str">&quot;routes&quot;</span>]
877
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">response</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">&quot;192.168.100.0-192.168.30.247-a1 created.&quot;</span>), <span class="ruby-identifier">response</span>) <span class="ruby-comment cmt"># not sure what this will be</span>
878
- <span class="ruby-identifier">update_mask</span> = {<span class="ruby-value str">&quot;dst_pfx_len&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-value">24</span>}
879
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_modify</span> [<span class="ruby-value str">&quot;-j&quot;</span>, <span class="ruby-identifier">update_mask</span>, <span class="ruby-value str">&quot;-e&quot;</span>, <span class="ruby-value str">&quot;routes/192.168.100.0-192.168.30.247-a1&quot;</span>]
880
- <span class="ruby-keyword kw">ensure</span>
881
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_delete</span> [<span class="ruby-value str">&quot;-e&quot;</span>, <span class="ruby-value str">&quot;routes/192.168.100.0-192.168.30.247-a1&quot;</span>]
882
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">response</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">&quot;deleted&quot;</span>),<span class="ruby-identifier">response</span>)
883
- <span class="ruby-keyword kw">end</span>
884
- </pre>
885
- </div>
886
469
  </div>
887
470
  </div>
888
471
 
889
- <div id="method-M000034" class="method-detail">
890
- <a name="M000034"></a>
472
+ <div id="method-M000035" class="method-detail">
473
+ <a name="M000035"></a>
891
474
 
892
475
  <div class="method-heading">
893
- <a href="#M000034" class="method-signature">
476
+ <a href="TCTestMu.src/M000035.html" target="Code" class="method-signature"
477
+ onclick="popupCode('TCTestMu.src/M000035.html');return false;">
894
478
  <span class="method-name">test_cmd_netconfig_create_delete_host</span><span class="method-args">()</span>
895
479
  </a>
896
480
  </div>
897
481
 
898
482
  <div class="method-description">
899
- <p><a class="source-toggle" href="#"
900
- onclick="toggleCode('M000034-source');return false;">[Source]</a></p>
901
- <div class="method-source-code" id="M000034-source">
902
- <pre>
903
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 486</span>
904
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_netconfig_create_delete_host</span>
905
- <span class="ruby-comment cmt"># $log.level = Logger::DEBUG</span>
906
- <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_netconfig</span>.<span class="ruby-identifier">new</span>
907
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_create</span> [<span class="ruby-value str">&quot;-j&quot;</span>, <span class="ruby-value str">'{&quot;name&quot;=&gt;&quot;deleteme&quot;,&quot;v4_addr&quot;=&gt;&quot;192.168.30.9&quot;}'</span>, <span class="ruby-value str">&quot;-e&quot;</span>, <span class="ruby-value str">&quot;hosts&quot;</span>]
908
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">response</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">&quot;created&quot;</span>), <span class="ruby-value str">&quot;Failed to create host:&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">response</span>.<span class="ruby-identifier">to_s</span>)
909
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_delete</span> [<span class="ruby-value str">&quot;-e&quot;</span>, <span class="ruby-value str">&quot;hosts/deleteme&quot;</span>]
910
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">response</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">&quot;deleted&quot;</span>), <span class="ruby-value str">&quot;Failed to delete host:&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">response</span>.<span class="ruby-identifier">to_s</span>)
911
- <span class="ruby-keyword kw">end</span>
912
- </pre>
913
- </div>
914
483
  </div>
915
484
  </div>
916
485
 
917
- <div id="method-M000031" class="method-detail">
918
- <a name="M000031"></a>
486
+ <div id="method-M000032" class="method-detail">
487
+ <a name="M000032"></a>
919
488
 
920
489
  <div class="method-heading">
921
- <a href="#M000031" class="method-signature">
490
+ <a href="TCTestMu.src/M000032.html" target="Code" class="method-signature"
491
+ onclick="popupCode('TCTestMu.src/M000032.html');return false;">
922
492
  <span class="method-name">test_cmd_netconfig_get_interfaces_a1</span><span class="method-args">()</span>
923
493
  </a>
924
494
  </div>
@@ -927,154 +497,71 @@ assumes hosts a1.v4 -&gt; dell-eth1.v4
927
497
  <p>
928
498
  &#8212;&#8212;&#8212;&#8212;&#8212; cmd_netfconfig &#8212;&#8212;-
929
499
  </p>
930
- <p><a class="source-toggle" href="#"
931
- onclick="toggleCode('M000031-source');return false;">[Source]</a></p>
932
- <div class="method-source-code" id="M000031-source">
933
- <pre>
934
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 449</span>
935
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_netconfig_get_interfaces_a1</span>
936
- <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_netconfig</span>.<span class="ruby-identifier">new</span>
937
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_get</span> [<span class="ruby-value str">&quot;-e&quot;</span>, <span class="ruby-value str">&quot;interfaces/a1&quot;</span>]
938
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;display_name&quot;</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;A1&quot;</span>, <span class="ruby-node">&quot;expected A1 got #{response[&quot;display_name&quot;]}&quot;</span>)
939
- <span class="ruby-keyword kw">end</span>
940
- </pre>
941
- </div>
942
500
  </div>
943
501
  </div>
944
502
 
945
- <div id="method-M000032" class="method-detail">
946
- <a name="M000032"></a>
503
+ <div id="method-M000033" class="method-detail">
504
+ <a name="M000033"></a>
947
505
 
948
506
  <div class="method-heading">
949
- <a href="#M000032" class="method-signature">
507
+ <a href="TCTestMu.src/M000033.html" target="Code" class="method-signature"
508
+ onclick="popupCode('TCTestMu.src/M000033.html');return false;">
950
509
  <span class="method-name">test_cmd_netconfig_modify_interfaces_a1</span><span class="method-args">()</span>
951
510
  </a>
952
511
  </div>
953
512
 
954
513
  <div class="method-description">
955
- <p><a class="source-toggle" href="#"
956
- onclick="toggleCode('M000032-source');return false;">[Source]</a></p>
957
- <div class="method-source-code" id="M000032-source">
958
- <pre>
959
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 455</span>
960
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_netconfig_modify_interfaces_a1</span>
961
- <span class="ruby-comment cmt"># $log.level = Logger::DEBUG</span>
962
- <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_netconfig</span>.<span class="ruby-identifier">new</span>
963
- <span class="ruby-identifier">saved</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_get</span> [<span class="ruby-value str">&quot;-e&quot;</span>, <span class="ruby-value str">&quot;interfaces/a1&quot;</span>]
964
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">saved</span>[<span class="ruby-value str">&quot;display_name&quot;</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;A1&quot;</span>, <span class="ruby-node">&quot;expected A1 got #{saved[&quot;display_name&quot;]}&quot;</span>)
965
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_modify</span> [<span class="ruby-value str">&quot;-e&quot;</span>, <span class="ruby-value str">&quot;interfaces/a1&quot;</span>, <span class="ruby-value str">&quot;-j&quot;</span>, <span class="ruby-value str">'{&quot;v4_dhcp&quot;=&gt;false}'</span>]
966
- <span class="ruby-identifier">sleep</span> <span class="ruby-value">2</span>
967
- <span class="ruby-identifier">modified</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_get</span> [<span class="ruby-value str">&quot;-e&quot;</span>, <span class="ruby-value str">&quot;interfaces/a1&quot;</span>]
968
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">modified</span>[<span class="ruby-value str">&quot;v4_dhcp&quot;</span>] <span class="ruby-operator">==</span> <span class="ruby-keyword kw">false</span>, <span class="ruby-value str">&quot;expected dhcp false but it wasn't&quot;</span>)
969
- <span class="ruby-keyword kw">ensure</span>
970
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_modify</span> [<span class="ruby-value str">&quot;-e&quot;</span>, <span class="ruby-value str">&quot;interfaces/a1&quot;</span>, <span class="ruby-value str">&quot;-j&quot;</span>, <span class="ruby-value str">'{&quot;v4_dhcp&quot;=&gt;true}'</span>]
971
- <span class="ruby-keyword kw">end</span>
972
- </pre>
973
- </div>
974
514
  </div>
975
515
  </div>
976
516
 
977
- <div id="method-M000036" class="method-detail">
978
- <a name="M000036"></a>
517
+ <div id="method-M000037" class="method-detail">
518
+ <a name="M000037"></a>
979
519
 
980
520
  <div class="method-heading">
981
- <a href="#M000036" class="method-signature">
521
+ <a href="TCTestMu.src/M000037.html" target="Code" class="method-signature"
522
+ onclick="popupCode('TCTestMu.src/M000037.html');return false;">
982
523
  <span class="method-name">test_cmd_netconfig_resolve_hosts</span><span class="method-args">()</span>
983
524
  </a>
984
525
  </div>
985
526
 
986
527
  <div class="method-description">
987
- <p><a class="source-toggle" href="#"
988
- onclick="toggleCode('M000036-source');return false;">[Source]</a></p>
989
- <div class="method-source-code" id="M000036-source">
990
- <pre>
991
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 522</span>
992
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_netconfig_resolve_hosts</span>
993
- <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;assumes the Mu can resolve a host named mrtwig&quot;</span>
994
- <span class="ruby-comment cmt"># $log.level = Logger::DEBUG</span>
995
- <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_netconfig</span>.<span class="ruby-identifier">new</span>
996
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_delete</span> [<span class="ruby-value str">&quot;-e&quot;</span>, <span class="ruby-value str">&quot;hosts/mrtwig&quot;</span>] <span class="ruby-comment cmt"># delete it if it exists</span>
997
- <span class="ruby-comment cmt"># assert response.include?(&quot;deleted&quot;), &quot;expected to find 'deleted' but got #{response}&quot;</span>
998
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_resolve_hosts</span> [<span class="ruby-value str">&quot;-n&quot;</span>, <span class="ruby-value str">&quot;mrtwig&quot;</span>]
999
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_get</span> [<span class="ruby-value str">&quot;-e&quot;</span>, <span class="ruby-value str">&quot;hosts/mrtwig&quot;</span>]
1000
- <span class="ruby-identifier">assert</span> <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;name&quot;</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;mrtwig&quot;</span>, <span class="ruby-node">&quot;expected to find mrtwig but found #{response[&quot;name&quot;]}&quot;</span>
1001
- <span class="ruby-keyword kw">end</span>
1002
- </pre>
1003
- </div>
1004
528
  </div>
1005
529
  </div>
1006
530
 
1007
- <div id="method-M000037" class="method-detail">
1008
- <a name="M000037"></a>
531
+ <div id="method-M000038" class="method-detail">
532
+ <a name="M000038"></a>
1009
533
 
1010
534
  <div class="method-heading">
1011
- <a href="#M000037" class="method-signature">
535
+ <a href="TCTestMu.src/M000038.html" target="Code" class="method-signature"
536
+ onclick="popupCode('TCTestMu.src/M000038.html');return false;">
1012
537
  <span class="method-name">test_cmd_netconfig_save</span><span class="method-args">()</span>
1013
538
  </a>
1014
539
  </div>
1015
540
 
1016
541
  <div class="method-description">
1017
- <p><a class="source-toggle" href="#"
1018
- onclick="toggleCode('M000037-source');return false;">[Source]</a></p>
1019
- <div class="method-source-code" id="M000037-source">
1020
- <pre>
1021
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 533</span>
1022
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_netconfig_save</span>
1023
- <span class="ruby-comment cmt"># $log.level = Logger::DEBUG</span>
1024
- <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_netconfig</span>.<span class="ruby-identifier">new</span>
1025
- <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;save.json&quot;</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-value str">&quot;save.json&quot;</span>)
1026
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_save</span> [<span class="ruby-value str">&quot;-f&quot;</span>, <span class="ruby-value str">&quot;save.json&quot;</span>]
1027
- <span class="ruby-identifier">assert</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-value str">&quot;save.json&quot;</span>), <span class="ruby-value str">&quot;wxpected for find file 'save.json but did not&quot;</span>)
1028
- <span class="ruby-keyword kw">ensure</span>
1029
- <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;save.json&quot;</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-value str">&quot;save.json&quot;</span>)
1030
- <span class="ruby-keyword kw">end</span>
1031
- </pre>
1032
- </div>
1033
542
  </div>
1034
543
  </div>
1035
544
 
1036
- <div id="method-M000033" class="method-detail">
1037
- <a name="M000033"></a>
545
+ <div id="method-M000034" class="method-detail">
546
+ <a name="M000034"></a>
1038
547
 
1039
548
  <div class="method-heading">
1040
- <a href="#M000033" class="method-signature">
549
+ <a href="TCTestMu.src/M000034.html" target="Code" class="method-signature"
550
+ onclick="popupCode('TCTestMu.src/M000034.html');return false;">
1041
551
  <span class="method-name">test_cmd_netconfig_vlans</span><span class="method-args">()</span>
1042
552
  </a>
1043
553
  </div>
1044
554
 
1045
555
  <div class="method-description">
1046
- <p><a class="source-toggle" href="#"
1047
- onclick="toggleCode('M000033-source');return false;">[Source]</a></p>
1048
- <div class="method-source-code" id="M000033-source">
1049
- <pre>
1050
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 468</span>
1051
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_netconfig_vlans</span>
1052
- <span class="ruby-comment cmt"># $log.level = Logger::DEBUG</span>
1053
- <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_netconfig</span>.<span class="ruby-identifier">new</span>
1054
- <span class="ruby-keyword kw">begin</span>
1055
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_delete</span> [<span class="ruby-value str">&quot;-e&quot;</span>, <span class="ruby-value str">&quot;interfaces/b1.222&quot;</span>]
1056
- <span class="ruby-keyword kw">rescue</span>
1057
- <span class="ruby-comment cmt"># ignore. the vlan probably did not exist</span>
1058
- <span class="ruby-keyword kw">end</span>
1059
- <span class="ruby-identifier">vlan_222</span> = {<span class="ruby-value str">&quot;v4_addrs&quot;</span>=<span class="ruby-operator">&gt;</span>[<span class="ruby-value str">&quot;2.2.2.2&quot;</span>],<span class="ruby-value str">&quot;v4_mask&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-value str">&quot;26&quot;</span>,<span class="ruby-value str">&quot;v6_addrs&quot;</span>=<span class="ruby-operator">&gt;</span>[<span class="ruby-value str">&quot;2222:0:0:0:0:0:0:2&quot;</span>],<span class="ruby-value str">&quot;v6_mask&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-value str">&quot;64&quot;</span>}
1060
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_create</span> [<span class="ruby-value str">&quot;-j&quot;</span>, <span class="ruby-value str">'{&quot;name&quot;=&gt;&quot;b1&quot;,&quot;vlan&quot;=&gt;&quot;222&quot;}'</span>, <span class="ruby-value str">&quot;-e&quot;</span>, <span class="ruby-value str">&quot;interfaces&quot;</span> ]
1061
- <span class="ruby-identifier">sleep</span> <span class="ruby-value">3</span>
1062
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_modify</span> [ <span class="ruby-value str">&quot;-j&quot;</span>, <span class="ruby-identifier">vlan_222</span>, <span class="ruby-value str">&quot;-e&quot;</span>, <span class="ruby-value str">&quot;interfaces/b1.222&quot;</span>]
1063
- <span class="ruby-identifier">b1</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_get</span> [<span class="ruby-value str">&quot;-e&quot;</span>, <span class="ruby-value str">&quot;interfaces/b1.222&quot;</span>]
1064
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">b1</span>[<span class="ruby-value str">&quot;v4_addrs&quot;</span>][<span class="ruby-value str">&quot;begin&quot;</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;2.2.2.2&quot;</span>,<span class="ruby-node">&quot;vlan v4_addrs incorrect: #{b1[&quot;v4_addrs&quot;][&quot;begin&quot;]}&quot;</span>)
1065
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_delete</span> [<span class="ruby-value str">&quot;-e&quot;</span>, <span class="ruby-value str">&quot;interfaces/b1.222&quot;</span>]
1066
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">response</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">&quot;deleted&quot;</span>), <span class="ruby-value str">&quot;Failed to delete host:&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">response</span>)
1067
- <span class="ruby-keyword kw">end</span>
1068
- </pre>
1069
- </div>
1070
556
  </div>
1071
557
  </div>
1072
558
 
1073
- <div id="method-M000040" class="method-detail">
1074
- <a name="M000040"></a>
559
+ <div id="method-M000041" class="method-detail">
560
+ <a name="M000041"></a>
1075
561
 
1076
562
  <div class="method-heading">
1077
- <a href="#M000040" class="method-signature">
563
+ <a href="TCTestMu.src/M000041.html" target="Code" class="method-signature"
564
+ onclick="popupCode('TCTestMu.src/M000041.html');return false;">
1078
565
  <span class="method-name">test_cmd_runscale_run_dir</span><span class="method-args">()</span>
1079
566
  </a>
1080
567
  </div>
@@ -1083,38 +570,15 @@ assumes hosts a1.v4 -&gt; dell-eth1.v4
1083
570
  <p>
1084
571
  use ip range setting and a brief pattern
1085
572
  </p>
1086
- <p><a class="source-toggle" href="#"
1087
- onclick="toggleCode('M000040-source');return false;">[Source]</a></p>
1088
- <div class="method-source-code" id="M000040-source">
1089
- <pre>
1090
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 573</span>
1091
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_runscale_run_dir</span>
1092
- <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>)
1093
- <span class="ruby-identifier">app</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_runscale</span>.<span class="ruby-identifier">new</span>
1094
- <span class="ruby-identifier">args</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
1095
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-d&quot;</span>
1096
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{Dir.pwd}/test/data&quot;</span>
1097
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-i&quot;</span>
1098
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;b1-10000,b2&quot;</span>
1099
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-p&quot;</span>
1100
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;1-100:10&quot;</span>
1101
- <span class="ruby-identifier">app</span>.<span class="ruby-identifier">cmd_run_dir</span> <span class="ruby-identifier">args</span>
1102
- <span class="ruby-identifier">assert</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>), <span class="ruby-value str">&quot;app_id_status.json file was not created&quot;</span>)
1103
- <span class="ruby-identifier">j</span> = <span class="ruby-constant">JSON</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>)
1104
- <span class="ruby-identifier">status</span> = <span class="ruby-identifier">j</span>[<span class="ruby-value str">&quot;status&quot;</span>]
1105
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">status</span>[<span class="ruby-value str">&quot;statistics&quot;</span>][<span class="ruby-value str">&quot;summary&quot;</span>][<span class="ruby-value str">&quot;duration&quot;</span>].<span class="ruby-identifier">to_f</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-value">10.0</span>, <span class="ruby-node">&quot;expected summary duration &gt; 10, but got #{status[&quot;statistics&quot;][&quot;summary&quot;][&quot;duration&quot;]}&quot;</span>)
1106
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">status</span>[<span class="ruby-value str">&quot;statistics&quot;</span>][<span class="ruby-value str">&quot;summary&quot;</span>][<span class="ruby-value str">&quot;instances&quot;</span>][<span class="ruby-value str">&quot;executed&quot;</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">10</span>, <span class="ruby-node">&quot;expected instances executed &gt; 0, but got #{status[&quot;statistics&quot;][&quot;summary&quot;][&quot;instances&quot;][&quot;executed&quot;]}&quot;</span>)
1107
- <span class="ruby-keyword kw">end</span>
1108
- </pre>
1109
- </div>
1110
573
  </div>
1111
574
  </div>
1112
575
 
1113
- <div id="method-M000039" class="method-detail">
1114
- <a name="M000039"></a>
576
+ <div id="method-M000040" class="method-detail">
577
+ <a name="M000040"></a>
1115
578
 
1116
579
  <div class="method-heading">
1117
- <a href="#M000039" class="method-signature">
580
+ <a href="TCTestMu.src/M000040.html" target="Code" class="method-signature"
581
+ onclick="popupCode('TCTestMu.src/M000040.html');return false;">
1118
582
  <span class="method-name">test_cmd_runscale_run_file</span><span class="method-args">()</span>
1119
583
  </a>
1120
584
  </div>
@@ -1123,38 +587,15 @@ use ip range setting and a brief pattern
1123
587
  <p>
1124
588
  use ip range setting and a brief pattern
1125
589
  </p>
1126
- <p><a class="source-toggle" href="#"
1127
- onclick="toggleCode('M000039-source');return false;">[Source]</a></p>
1128
- <div class="method-source-code" id="M000039-source">
1129
- <pre>
1130
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 554</span>
1131
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_runscale_run_file</span>
1132
- <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>)
1133
- <span class="ruby-identifier">app</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_runscale</span>.<span class="ruby-identifier">new</span>
1134
- <span class="ruby-identifier">args</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
1135
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-s&quot;</span>
1136
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{Dir.pwd}/test/data/data_cgi.msl&quot;</span>
1137
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-i&quot;</span>
1138
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;b1-10000,b2&quot;</span>
1139
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-p&quot;</span>
1140
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;1-100:10&quot;</span>
1141
- <span class="ruby-identifier">app</span>.<span class="ruby-identifier">cmd_run_file</span> <span class="ruby-identifier">args</span>
1142
- <span class="ruby-identifier">assert</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>), <span class="ruby-value str">&quot;app_id_status.json file was not created&quot;</span>)
1143
- <span class="ruby-identifier">j</span> = <span class="ruby-constant">JSON</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>)
1144
- <span class="ruby-identifier">status</span> = <span class="ruby-identifier">j</span>[<span class="ruby-value str">&quot;status&quot;</span>]
1145
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">status</span>[<span class="ruby-value str">&quot;statistics&quot;</span>][<span class="ruby-value str">&quot;summary&quot;</span>][<span class="ruby-value str">&quot;duration&quot;</span>].<span class="ruby-identifier">to_f</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-value">10.0</span>, <span class="ruby-node">&quot;expected summary duration &gt; 10, but got #{status[&quot;statistics&quot;][&quot;summary&quot;][&quot;duration&quot;]}&quot;</span>)
1146
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">status</span>[<span class="ruby-value str">&quot;statistics&quot;</span>][<span class="ruby-value str">&quot;summary&quot;</span>][<span class="ruby-value str">&quot;instances&quot;</span>][<span class="ruby-value str">&quot;executed&quot;</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">10</span>, <span class="ruby-node">&quot;expected instances executed &gt; 0, but got #{status[&quot;statistics&quot;][&quot;summary&quot;][&quot;instances&quot;][&quot;executed&quot;]}&quot;</span>)
1147
- <span class="ruby-keyword kw">end</span>
1148
- </pre>
1149
- </div>
1150
590
  </div>
1151
591
  </div>
1152
592
 
1153
- <div id="method-M000041" class="method-detail">
1154
- <a name="M000041"></a>
593
+ <div id="method-M000042" class="method-detail">
594
+ <a name="M000042"></a>
1155
595
 
1156
596
  <div class="method-heading">
1157
- <a href="#M000041" class="method-signature">
597
+ <a href="TCTestMu.src/M000042.html" target="Code" class="method-signature"
598
+ onclick="popupCode('TCTestMu.src/M000042.html');return false;">
1158
599
  <span class="method-name">test_cmd_runscenario</span><span class="method-args">()</span>
1159
600
  </a>
1160
601
  </div>
@@ -1163,31 +604,15 @@ use ip range setting and a brief pattern
1163
604
  <p>
1164
605
  &#8212;&#8212;&#8212;&#8212;&#8212; cmd_runscenario &#8212;&#8212;&#8212;-
1165
606
  </p>
1166
- <p><a class="source-toggle" href="#"
1167
- onclick="toggleCode('M000041-source');return false;">[Source]</a></p>
1168
- <div class="method-source-code" id="M000041-source">
1169
- <pre>
1170
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 594</span>
1171
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_runscenario</span>
1172
- <span class="ruby-identifier">app</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_runscenario</span>.<span class="ruby-identifier">new</span>
1173
- <span class="ruby-identifier">args</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
1174
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-s&quot;</span>
1175
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{Dir.pwd}/test/data/data_cgi.xml&quot;</span>
1176
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-i&quot;</span>
1177
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;b1,b2&quot;</span>
1178
- <span class="ruby-identifier">app</span>.<span class="ruby-identifier">cmd_run</span> <span class="ruby-identifier">args</span>
1179
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">app</span>.<span class="ruby-identifier">errors</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>, <span class="ruby-node">&quot;expected 0 errors but got #{app.errors}&quot;</span>)
1180
- <span class="ruby-keyword kw">end</span>
1181
- </pre>
1182
- </div>
1183
607
  </div>
1184
608
  </div>
1185
609
 
1186
- <div id="method-M000042" class="method-detail">
1187
- <a name="M000042"></a>
610
+ <div id="method-M000043" class="method-detail">
611
+ <a name="M000043"></a>
1188
612
 
1189
613
  <div class="method-heading">
1190
- <a href="#M000042" class="method-signature">
614
+ <a href="TCTestMu.src/M000043.html" target="Code" class="method-signature"
615
+ onclick="popupCode('TCTestMu.src/M000043.html');return false;">
1191
616
  <span class="method-name">test_cmd_runverify</span><span class="method-args">()</span>
1192
617
  </a>
1193
618
  </div>
@@ -1197,34 +622,15 @@ use ip range setting and a brief pattern
1197
622
  &#8212;&#8212;&#8212;&#8212;&#8212; cmd_runverify
1198
623
  &#8212;&#8212;&#8212;&#8212;
1199
624
  </p>
1200
- <p><a class="source-toggle" href="#"
1201
- onclick="toggleCode('M000042-source');return false;">[Source]</a></p>
1202
- <div class="method-source-code" id="M000042-source">
1203
- <pre>
1204
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 608</span>
1205
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_runverify</span>
1206
- <span class="ruby-identifier">app</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_runverify</span>.<span class="ruby-identifier">new</span>
1207
- <span class="ruby-identifier">args</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
1208
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-s&quot;</span>
1209
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{Dir.pwd}/test/data/data_cgi.xml&quot;</span>
1210
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-t&quot;</span>
1211
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{Dir.pwd}/test/data/test_data_cgi_error.xml&quot;</span>
1212
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-i&quot;</span>
1213
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;b1,b2&quot;</span>
1214
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;-v&quot;</span>
1215
- <span class="ruby-identifier">app</span>.<span class="ruby-identifier">cmd_run</span> <span class="ruby-identifier">args</span>
1216
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">app</span>.<span class="ruby-identifier">errors</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>, <span class="ruby-value str">&quot;expected errors but got none&quot;</span>)
1217
- <span class="ruby-keyword kw">end</span>
1218
- </pre>
1219
- </div>
1220
625
  </div>
1221
626
  </div>
1222
627
 
1223
- <div id="method-M000048" class="method-detail">
1224
- <a name="M000048"></a>
628
+ <div id="method-M000049" class="method-detail">
629
+ <a name="M000049"></a>
1225
630
 
1226
631
  <div class="method-heading">
1227
- <a href="#M000048" class="method-signature">
632
+ <a href="TCTestMu.src/M000049.html" target="Code" class="method-signature"
633
+ onclick="popupCode('TCTestMu.src/M000049.html');return false;">
1228
634
  <span class="method-name">test_cmd_system_status</span><span class="method-args">()</span>
1229
635
  </a>
1230
636
  </div>
@@ -1233,113 +639,57 @@ use ip range setting and a brief pattern
1233
639
  <p>
1234
640
  do NOT write a test for cmd_system:restart please!
1235
641
  </p>
1236
- <p><a class="source-toggle" href="#"
1237
- onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
1238
- <div class="method-source-code" id="M000048-source">
1239
- <pre>
1240
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 668</span>
1241
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_system_status</span>
1242
- <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_system</span>.<span class="ruby-identifier">new</span>
1243
- <span class="ruby-identifier">result</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_status</span> []
1244
- <span class="ruby-identifier">doc</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span>(<span class="ruby-identifier">result</span>)
1245
- <span class="ruby-identifier">ports</span> = <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">&quot;//ports&quot;</span>)
1246
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">ports</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-value">5</span>, <span class="ruby-node">&quot;expected to find at least 5 ports, but got #{ports.length}&quot;</span>)
1247
- <span class="ruby-keyword kw">end</span>
1248
- </pre>
1249
- </div>
1250
642
  </div>
1251
643
  </div>
1252
644
 
1253
- <div id="method-M000049" class="method-detail">
1254
- <a name="M000049"></a>
645
+ <div id="method-M000050" class="method-detail">
646
+ <a name="M000050"></a>
1255
647
 
1256
648
  <div class="method-heading">
1257
- <a href="#M000049" class="method-signature">
649
+ <a href="TCTestMu.src/M000050.html" target="Code" class="method-signature"
650
+ onclick="popupCode('TCTestMu.src/M000050.html');return false;">
1258
651
  <span class="method-name">test_cmd_system_status2</span><span class="method-args">()</span>
1259
652
  </a>
1260
653
  </div>
1261
654
 
1262
655
  <div class="method-description">
1263
- <p><a class="source-toggle" href="#"
1264
- onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
1265
- <div class="method-source-code" id="M000049-source">
1266
- <pre>
1267
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 676</span>
1268
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cmd_system_status2</span>
1269
- <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_system</span>.<span class="ruby-identifier">new</span>
1270
- <span class="ruby-identifier">result</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">cmd_status2</span> []
1271
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">result</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">&quot;raid&quot;</span>), <span class="ruby-node">&quot;expected to find 'raid' in results, but got #{result}&quot;</span>)
1272
- <span class="ruby-keyword kw">end</span>
1273
- </pre>
1274
- </div>
1275
656
  </div>
1276
657
  </div>
1277
658
 
1278
- <div id="method-M000013" class="method-detail">
1279
- <a name="M000013"></a>
659
+ <div id="method-M000014" class="method-detail">
660
+ <a name="M000014"></a>
1280
661
 
1281
662
  <div class="method-heading">
1282
- <a href="#M000013" class="method-signature">
663
+ <a href="TCTestMu.src/M000014.html" target="Code" class="method-signature"
664
+ onclick="popupCode('TCTestMu.src/M000014.html');return false;">
1283
665
  <span class="method-name">test_ddt_close_all_sessions</span><span class="method-args">()</span>
1284
666
  </a>
1285
667
  </div>
1286
668
 
1287
669
  <div class="method-description">
1288
- <p><a class="source-toggle" href="#"
1289
- onclick="toggleCode('M000013-source');return false;">[Source]</a></p>
1290
- <div class="method-source-code" id="M000013-source">
1291
- <pre>
1292
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 194</span>
1293
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_ddt_close_all_sessions</span>
1294
- <span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Ddt</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>)
1295
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">new_session</span>
1296
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">new_session</span>
1297
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">new_session</span>
1298
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">close_all_sessions</span>
1299
- <span class="ruby-identifier">sessions</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span>(<span class="ruby-identifier">api</span>.<span class="ruby-identifier">get_all_sessions</span>)
1300
- <span class="ruby-identifier">sess</span> = <span class="ruby-identifier">sessions</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">&quot;//session&quot;</span>)
1301
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">sess</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>, <span class="ruby-node">&quot;expected 0 sessions, got #{sess.length}&quot;</span>)
1302
- <span class="ruby-keyword kw">end</span>
1303
- </pre>
1304
- </div>
1305
670
  </div>
1306
671
  </div>
1307
672
 
1308
- <div id="method-M000012" class="method-detail">
1309
- <a name="M000012"></a>
673
+ <div id="method-M000013" class="method-detail">
674
+ <a name="M000013"></a>
1310
675
 
1311
676
  <div class="method-heading">
1312
- <a href="#M000012" class="method-signature">
677
+ <a href="TCTestMu.src/M000013.html" target="Code" class="method-signature"
678
+ onclick="popupCode('TCTestMu.src/M000013.html');return false;">
1313
679
  <span class="method-name">test_ddt_get_all_sessions</span><span class="method-args">()</span>
1314
680
  </a>
1315
681
  </div>
1316
682
 
1317
683
  <div class="method-description">
1318
- <p><a class="source-toggle" href="#"
1319
- onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
1320
- <div class="method-source-code" id="M000012-source">
1321
- <pre>
1322
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 183</span>
1323
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_ddt_get_all_sessions</span>
1324
- <span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Ddt</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>)
1325
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">new_session</span>
1326
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">new_session</span>
1327
- <span class="ruby-identifier">sessions</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span>(<span class="ruby-identifier">api</span>.<span class="ruby-identifier">get_all_sessions</span>)
1328
- <span class="ruby-identifier">sess</span> = <span class="ruby-identifier">sessions</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">&quot;//session&quot;</span>)
1329
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">sess</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">==</span> <span class="ruby-value">2</span>, <span class="ruby-node">&quot;expected 2 sessions, got #{sess.length}&quot;</span>)
1330
- <span class="ruby-keyword kw">ensure</span>
1331
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">close_all_sessions</span>
1332
- <span class="ruby-keyword kw">end</span>
1333
- </pre>
1334
- </div>
1335
684
  </div>
1336
685
  </div>
1337
686
 
1338
- <div id="method-M000011" class="method-detail">
1339
- <a name="M000011"></a>
687
+ <div id="method-M000012" class="method-detail">
688
+ <a name="M000012"></a>
1340
689
 
1341
690
  <div class="method-heading">
1342
- <a href="#M000011" class="method-signature">
691
+ <a href="TCTestMu.src/M000012.html" target="Code" class="method-signature"
692
+ onclick="popupCode('TCTestMu.src/M000012.html');return false;">
1343
693
  <span class="method-name">test_ddt_new</span><span class="method-args">()</span>
1344
694
  </a>
1345
695
  </div>
@@ -1349,114 +699,57 @@ do NOT write a test for cmd_system:restart please!
1349
699
  &#8212;&#8212;&#8212;&#8212;&#8212; ddt
1350
700
  &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
1351
701
  </p>
1352
- <p><a class="source-toggle" href="#"
1353
- onclick="toggleCode('M000011-source');return false;">[Source]</a></p>
1354
- <div class="method-source-code" id="M000011-source">
1355
- <pre>
1356
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 177</span>
1357
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_ddt_new</span>
1358
- <span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Ddt</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>)
1359
- <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">&quot;failed to set mu_ip&quot;</span>)
1360
- <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">&quot;/api/v5/ddt/&quot;</span>, <span class="ruby-value str">&quot;failed to set docroot&quot;</span>)
1361
- <span class="ruby-keyword kw">end</span>
1362
- </pre>
1363
- </div>
1364
702
  </div>
1365
703
  </div>
1366
704
 
1367
- <div id="method-M000014" class="method-detail">
1368
- <a name="M000014"></a>
705
+ <div id="method-M000015" class="method-detail">
706
+ <a name="M000015"></a>
1369
707
 
1370
708
  <div class="method-heading">
1371
- <a href="#M000014" class="method-signature">
709
+ <a href="TCTestMu.src/M000015.html" target="Code" class="method-signature"
710
+ onclick="popupCode('TCTestMu.src/M000015.html');return false;">
1372
711
  <span class="method-name">test_ddt_set_hosts</span><span class="method-args">()</span>
1373
712
  </a>
1374
713
  </div>
1375
714
 
1376
715
  <div class="method-description">
1377
- <p><a class="source-toggle" href="#"
1378
- onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
1379
- <div class="method-source-code" id="M000014-source">
1380
- <pre>
1381
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 205</span>
1382
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_ddt_set_hosts</span>
1383
- <span class="ruby-identifier">$log</span>.<span class="ruby-identifier">level</span> = <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
1384
- <span class="ruby-identifier">data_cgi_uuid</span> = <span class="ruby-value str">&quot;ef6fe3eb-4e9f-44b5-a99e-c431d82e4eeb&quot;</span>
1385
- <span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Ddt</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>)
1386
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">new_session</span>
1387
- <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">&quot;/api/v3/&quot;</span>)
1388
- <span class="ruby-identifier">http_helper</span>.<span class="ruby-identifier">post_xml</span>(<span class="ruby-value str">&quot;templates/import&quot;</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-node">&quot;#{Dir.pwd}/test/data/data_cgi.xml&quot;</span>))
1389
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">load_scenario</span>(<span class="ruby-identifier">data_cgi_uuid</span>)
1390
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">setup_test</span>
1391
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">set_hosts</span>( [<span class="ruby-value str">&quot;192.168.40.217&quot;</span>,<span class="ruby-value str">&quot;192.168.40.9&quot;</span>], [<span class="ruby-value str">&quot;a1&quot;</span>, <span class="ruby-value str">&quot;dell-eth1&quot;</span>] )
1392
- <span class="ruby-identifier">response</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">resp</span> <span class="ruby-operator">|</span>
1393
- <span class="ruby-identifier">doc</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span>(<span class="ruby-identifier">resp</span>)
1394
- <span class="ruby-identifier">message</span> = <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">&quot;//message&quot;</span>).<span class="ruby-identifier">text</span>
1395
- <span class="ruby-identifier">assert</span> <span class="ruby-identifier">message</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">&quot;Bind host successfully&quot;</span>) , <span class="ruby-node">&quot;expected 'Bind host successfully' but got #{message}&quot;</span>
1396
- <span class="ruby-keyword kw">end</span>
1397
- <span class="ruby-keyword kw">ensure</span>
1398
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">close_all_sessions</span>
1399
- <span class="ruby-keyword kw">end</span>
1400
- </pre>
1401
- </div>
1402
716
  </div>
1403
717
  </div>
1404
718
 
1405
- <div id="method-M000017" class="method-detail">
1406
- <a name="M000017"></a>
719
+ <div id="method-M000018" class="method-detail">
720
+ <a name="M000018"></a>
1407
721
 
1408
722
  <div class="method-heading">
1409
- <a href="#M000017" class="method-signature">
723
+ <a href="TCTestMu.src/M000018.html" target="Code" class="method-signature"
724
+ onclick="popupCode('TCTestMu.src/M000018.html');return false;">
1410
725
  <span class="method-name">test_homepage_all</span><span class="method-args">()</span>
1411
726
  </a>
1412
727
  </div>
1413
728
 
1414
729
  <div class="method-description">
1415
- <p><a class="source-toggle" href="#"
1416
- onclick="toggleCode('M000017-source');return false;">[Source]</a></p>
1417
- <div class="method-source-code" id="M000017-source">
1418
- <pre>
1419
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 238</span>
1420
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_homepage_all</span>
1421
- <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>
1422
- <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> []
1423
- <span class="ruby-identifier">assert</span> <span class="ruby-operator">!</span><span class="ruby-identifier">result</span>[<span class="ruby-value str">&quot;status&quot;</span>].<span class="ruby-identifier">nil?</span>, <span class="ruby-value str">&quot;expected to find a status field but didn't&quot;</span>
1424
- <span class="ruby-keyword kw">end</span>
1425
- </pre>
1426
- </div>
1427
730
  </div>
1428
731
  </div>
1429
732
 
1430
- <div id="method-M000018" class="method-detail">
1431
- <a name="M000018"></a>
733
+ <div id="method-M000019" class="method-detail">
734
+ <a name="M000019"></a>
1432
735
 
1433
736
  <div class="method-heading">
1434
- <a href="#M000018" class="method-signature">
737
+ <a href="TCTestMu.src/M000019.html" target="Code" class="method-signature"
738
+ onclick="popupCode('TCTestMu.src/M000019.html');return false;">
1435
739
  <span class="method-name">test_homepage_latest_test</span><span class="method-args">()</span>
1436
740
  </a>
1437
741
  </div>
1438
742
 
1439
743
  <div class="method-description">
1440
- <p><a class="source-toggle" href="#"
1441
- onclick="toggleCode('M000018-source');return false;">[Source]</a></p>
1442
- <div class="method-source-code" id="M000018-source">
1443
- <pre>
1444
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 244</span>
1445
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_homepage_latest_test</span>
1446
- <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>
1447
- <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> []
1448
- <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">&quot;expected to get something back but didn't&quot;</span>
1449
- <span class="ruby-keyword kw">end</span>
1450
- </pre>
1451
- </div>
1452
744
  </div>
1453
745
  </div>
1454
746
 
1455
- <div id="method-M000019" class="method-detail">
1456
- <a name="M000019"></a>
747
+ <div id="method-M000020" class="method-detail">
748
+ <a name="M000020"></a>
1457
749
 
1458
750
  <div class="method-heading">
1459
- <a href="#M000019" class="method-signature">
751
+ <a href="TCTestMu.src/M000020.html" target="Code" class="method-signature"
752
+ onclick="popupCode('TCTestMu.src/M000020.html');return false;">
1460
753
  <span class="method-name">test_homepage_new</span><span class="method-args">()</span>
1461
754
  </a>
1462
755
  </div>
@@ -1465,51 +758,29 @@ do NOT write a test for cmd_system:restart please!
1465
758
  <p>
1466
759
  &#8212;&#8212;&#8212;&#8212;&#8212; homepage &#8212;&#8212;&#8212;&#8212;-
1467
760
  </p>
1468
- <p><a class="source-toggle" href="#"
1469
- onclick="toggleCode('M000019-source');return false;">[Source]</a></p>
1470
- <div class="method-source-code" id="M000019-source">
1471
- <pre>
1472
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 252</span>
1473
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_homepage_new</span>
1474
- <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>)
1475
- <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">&quot;failed to set mu_ip&quot;</span>)
1476
- <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">&quot;/api/v5/homepage/&quot;</span>, <span class="ruby-value str">&quot;failed to set docroot&quot;</span>)
1477
- <span class="ruby-keyword kw">end</span>
1478
- </pre>
1479
- </div>
1480
761
  </div>
1481
762
  </div>
1482
763
 
1483
- <div id="method-M000016" class="method-detail">
1484
- <a name="M000016"></a>
764
+ <div id="method-M000017" class="method-detail">
765
+ <a name="M000017"></a>
1485
766
 
1486
767
  <div class="method-heading">
1487
- <a href="#M000016" class="method-signature">
768
+ <a href="TCTestMu.src/M000017.html" target="Code" class="method-signature"
769
+ onclick="popupCode('TCTestMu.src/M000017.html');return false;">
1488
770
  <span class="method-name">test_homepage_recent</span><span class="method-args">()</span>
1489
771
  </a>
1490
772
  </div>
1491
773
 
1492
774
  <div class="method-description">
1493
- <p><a class="source-toggle" href="#"
1494
- onclick="toggleCode('M000016-source');return false;">[Source]</a></p>
1495
- <div class="method-source-code" id="M000016-source">
1496
- <pre>
1497
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 232</span>
1498
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_homepage_recent</span>
1499
- <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>
1500
- <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> []
1501
- <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">&quot;summary&quot;</span>].<span class="ruby-identifier">nil?</span>, <span class="ruby-value str">&quot;expected to find a summary field but didn't&quot;</span>
1502
- <span class="ruby-keyword kw">end</span>
1503
- </pre>
1504
- </div>
1505
775
  </div>
1506
776
  </div>
1507
777
 
1508
- <div id="method-M000015" class="method-detail">
1509
- <a name="M000015"></a>
778
+ <div id="method-M000016" class="method-detail">
779
+ <a name="M000016"></a>
1510
780
 
1511
781
  <div class="method-heading">
1512
- <a href="#M000015" class="method-signature">
782
+ <a href="TCTestMu.src/M000016.html" target="Code" class="method-signature"
783
+ onclick="popupCode('TCTestMu.src/M000016.html');return false;">
1513
784
  <span class="method-name">test_homepage_status</span><span class="method-args">()</span>
1514
785
  </a>
1515
786
  </div>
@@ -1519,51 +790,29 @@ do NOT write a test for cmd_system:restart please!
1519
790
  &#8212;&#8212;&#8212;&#8212;&#8212; cmd_homepage
1520
791
  &#8212;&#8212;&#8212;&#8212;-
1521
792
  </p>
1522
- <p><a class="source-toggle" href="#"
1523
- onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
1524
- <div class="method-source-code" id="M000015-source">
1525
- <pre>
1526
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 226</span>
1527
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_homepage_status</span>
1528
- <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>
1529
- <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> []
1530
- <span class="ruby-identifier">assert</span> <span class="ruby-identifier">result</span>[<span class="ruby-value">0</span>][<span class="ruby-value str">&quot;title&quot;</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;Licenses&quot;</span>, <span class="ruby-value str">&quot;expected 'Licenses'&quot;</span>
1531
- <span class="ruby-keyword kw">end</span>
1532
- </pre>
1533
- </div>
1534
793
  </div>
1535
794
  </div>
1536
795
 
1537
- <div id="method-M000029" class="method-detail">
1538
- <a name="M000029"></a>
796
+ <div id="method-M000030" class="method-detail">
797
+ <a name="M000030"></a>
1539
798
 
1540
799
  <div class="method-heading">
1541
- <a href="#M000029" class="method-signature">
800
+ <a href="TCTestMu.src/M000030.html" target="Code" class="method-signature"
801
+ onclick="popupCode('TCTestMu.src/M000030.html');return false;">
1542
802
  <span class="method-name">test_muapi_list_by_status</span><span class="method-args">()</span>
1543
803
  </a>
1544
804
  </div>
1545
805
 
1546
806
  <div class="method-description">
1547
- <p><a class="source-toggle" href="#"
1548
- onclick="toggleCode('M000029-source');return false;">[Source]</a></p>
1549
- <div class="method-source-code" id="M000029-source">
1550
- <pre>
1551
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 435</span>
1552
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_muapi_list_by_status</span>
1553
- <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>)
1554
- <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">&quot;finished&quot;</span>)
1555
- <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">&quot;got empty response&quot;</span>)
1556
- <span class="ruby-keyword kw">end</span>
1557
- </pre>
1558
- </div>
1559
807
  </div>
1560
808
  </div>
1561
809
 
1562
- <div id="method-M000028" class="method-detail">
1563
- <a name="M000028"></a>
810
+ <div id="method-M000029" class="method-detail">
811
+ <a name="M000029"></a>
1564
812
 
1565
813
  <div class="method-heading">
1566
- <a href="#M000028" class="method-signature">
814
+ <a href="TCTestMu.src/M000029.html" target="Code" class="method-signature"
815
+ onclick="popupCode('TCTestMu.src/M000029.html');return false;">
1567
816
  <span class="method-name">test_muapi_new</span><span class="method-args">()</span>
1568
817
  </a>
1569
818
  </div>
@@ -1573,51 +822,29 @@ do NOT write a test for cmd_system:restart please!
1573
822
  &#8212;&#8212;&#8212;&#8212;&#8212; muapi
1574
823
  &#8212;&#8212;&#8212;&#8212;&#8212;-
1575
824
  </p>
1576
- <p><a class="source-toggle" href="#"
1577
- onclick="toggleCode('M000028-source');return false;">[Source]</a></p>
1578
- <div class="method-source-code" id="M000028-source">
1579
- <pre>
1580
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 429</span>
1581
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_muapi_new</span>
1582
- <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>)
1583
- <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">&quot;failed to set mu_ip&quot;</span>)
1584
- <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">&quot;/api/v3/&quot;</span>, <span class="ruby-value str">&quot;failed to set docroot&quot;</span>)
1585
- <span class="ruby-keyword kw">end</span>
1586
- </pre>
1587
- </div>
1588
825
  </div>
1589
826
  </div>
1590
827
 
1591
- <div id="method-M000030" class="method-detail">
1592
- <a name="M000030"></a>
828
+ <div id="method-M000031" class="method-detail">
829
+ <a name="M000031"></a>
1593
830
 
1594
831
  <div class="method-heading">
1595
- <a href="#M000030" class="method-signature">
832
+ <a href="TCTestMu.src/M000031.html" target="Code" class="method-signature"
833
+ onclick="popupCode('TCTestMu.src/M000031.html');return false;">
1596
834
  <span class="method-name">test_muapi_types</span><span class="method-args">()</span>
1597
835
  </a>
1598
836
  </div>
1599
837
 
1600
838
  <div class="method-description">
1601
- <p><a class="source-toggle" href="#"
1602
- onclick="toggleCode('M000030-source');return false;">[Source]</a></p>
1603
- <div class="method-source-code" id="M000030-source">
1604
- <pre>
1605
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 441</span>
1606
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_muapi_types</span>
1607
- <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>)
1608
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">types</span>
1609
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">response</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">&quot;scenario&quot;</span>), <span class="ruby-node">&quot;expected scenario, got\n#{response}&quot;</span>)
1610
- <span class="ruby-keyword kw">end</span>
1611
- </pre>
1612
- </div>
1613
839
  </div>
1614
840
  </div>
1615
841
 
1616
- <div id="method-M000038" class="method-detail">
1617
- <a name="M000038"></a>
842
+ <div id="method-M000039" class="method-detail">
843
+ <a name="M000039"></a>
1618
844
 
1619
845
  <div class="method-heading">
1620
- <a href="#M000038" class="method-signature">
846
+ <a href="TCTestMu.src/M000039.html" target="Code" class="method-signature"
847
+ onclick="popupCode('TCTestMu.src/M000039.html');return false;">
1621
848
  <span class="method-name">test_netconfig_new</span><span class="method-args">()</span>
1622
849
  </a>
1623
850
  </div>
@@ -1626,80 +853,43 @@ do NOT write a test for cmd_system:restart please!
1626
853
  <p>
1627
854
  &#8212;&#8212;&#8212;&#8212;&#8212; netconfig &#8212;&#8212;&#8212;&#8212;
1628
855
  </p>
1629
- <p><a class="source-toggle" href="#"
1630
- onclick="toggleCode('M000038-source');return false;">[Source]</a></p>
1631
- <div class="method-source-code" id="M000038-source">
1632
- <pre>
1633
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 545</span>
1634
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_netconfig_new</span>
1635
- <span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Netconfig</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>)
1636
- <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">&quot;failed to set mu_ip&quot;</span>)
1637
- <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">&quot;/restlet/netconfig/&quot;</span>, <span class="ruby-value str">&quot;failed to set docroot&quot;</span>)
1638
- <span class="ruby-keyword kw">end</span>
1639
- </pre>
1640
- </div>
1641
856
  </div>
1642
857
  </div>
1643
858
 
1644
- <div id="method-M000044" class="method-detail">
1645
- <a name="M000044"></a>
859
+ <div id="method-M000045" class="method-detail">
860
+ <a name="M000045"></a>
1646
861
 
1647
862
  <div class="method-heading">
1648
- <a href="#M000044" class="method-signature">
863
+ <a href="TCTestMu.src/M000045.html" target="Code" class="method-signature"
864
+ onclick="popupCode('TCTestMu.src/M000045.html');return false;">
1649
865
  <span class="method-name">test_scale_about</span><span class="method-args">()</span>
1650
866
  </a>
1651
867
  </div>
1652
868
 
1653
869
  <div class="method-description">
1654
- <p><a class="source-toggle" href="#"
1655
- onclick="toggleCode('M000044-source');return false;">[Source]</a></p>
1656
- <div class="method-source-code" id="M000044-source">
1657
- <pre>
1658
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 632</span>
1659
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_scale_about</span>
1660
- <span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Scale</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>)
1661
- <span class="ruby-identifier">about</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">about</span>
1662
- <span class="ruby-comment cmt"># puts JSON.pretty_generate about</span>
1663
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">about</span>[<span class="ruby-value">0</span>][<span class="ruby-value str">&quot;group&quot;</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;active&quot;</span>, <span class="ruby-node">&quot;expected 'active' group, got #{about[0][&quot;group&quot;]}&quot;</span>)
1664
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">about</span>[<span class="ruby-value">0</span>][<span class="ruby-value str">&quot;type&quot;</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;bot&quot;</span>, <span class="ruby-node">&quot;expected 'bot' type, got #{about[0][&quot;type&quot;]}&quot;</span>)
1665
- <span class="ruby-identifier">assert</span>(<span class="ruby-operator">!</span><span class="ruby-identifier">api</span>.<span class="ruby-identifier">uuid</span>.<span class="ruby-identifier">nil?</span>, <span class="ruby-value str">&quot;uuid is nil&quot;</span>)
1666
- <span class="ruby-keyword kw">end</span>
1667
- </pre>
1668
- </div>
1669
870
  </div>
1670
871
  </div>
1671
872
 
1672
- <div id="method-M000045" class="method-detail">
1673
- <a name="M000045"></a>
873
+ <div id="method-M000046" class="method-detail">
874
+ <a name="M000046"></a>
1674
875
 
1675
876
  <div class="method-heading">
1676
- <a href="#M000045" class="method-signature">
877
+ <a href="TCTestMu.src/M000046.html" target="Code" class="method-signature"
878
+ onclick="popupCode('TCTestMu.src/M000046.html');return false;">
1677
879
  <span class="method-name">test_scale_list</span><span class="method-args">()</span>
1678
880
  </a>
1679
881
  </div>
1680
882
 
1681
883
  <div class="method-description">
1682
- <p><a class="source-toggle" href="#"
1683
- onclick="toggleCode('M000045-source');return false;">[Source]</a></p>
1684
- <div class="method-source-code" id="M000045-source">
1685
- <pre>
1686
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 641</span>
1687
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_scale_list</span>
1688
- <span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Scale</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>)
1689
- <span class="ruby-identifier">list</span> = <span class="ruby-identifier">api</span>.<span class="ruby-identifier">list</span>
1690
- <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">list</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span> , <span class="ruby-node">&quot;expected list of length 1, got #{list.length}&quot;</span>)
1691
- <span class="ruby-identifier">assert</span>(<span class="ruby-operator">!</span><span class="ruby-identifier">api</span>.<span class="ruby-identifier">uuid</span>.<span class="ruby-identifier">nil?</span>, <span class="ruby-value str">&quot;uuid is nil&quot;</span>)
1692
- <span class="ruby-keyword kw">end</span>
1693
- </pre>
1694
- </div>
1695
884
  </div>
1696
885
  </div>
1697
886
 
1698
- <div id="method-M000043" class="method-detail">
1699
- <a name="M000043"></a>
887
+ <div id="method-M000044" class="method-detail">
888
+ <a name="M000044"></a>
1700
889
 
1701
890
  <div class="method-heading">
1702
- <a href="#M000043" class="method-signature">
891
+ <a href="TCTestMu.src/M000044.html" target="Code" class="method-signature"
892
+ onclick="popupCode('TCTestMu.src/M000044.html');return false;">
1703
893
  <span class="method-name">test_scale_new</span><span class="method-args">()</span>
1704
894
  </a>
1705
895
  </div>
@@ -1709,52 +899,29 @@ do NOT write a test for cmd_system:restart please!
1709
899
  &#8212;&#8212;&#8212;&#8212;&#8212; scale
1710
900
  &#8212;&#8212;&#8212;&#8212;&#8212;-
1711
901
  </p>
1712
- <p><a class="source-toggle" href="#"
1713
- onclick="toggleCode('M000043-source');return false;">[Source]</a></p>
1714
- <div class="method-source-code" id="M000043-source">
1715
- <pre>
1716
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 625</span>
1717
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_scale_new</span>
1718
- <span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Scale</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>)
1719
- <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">&quot;failed to set mu_ip&quot;</span>)
1720
- <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">&quot;/api/v5/scale/&quot;</span>, <span class="ruby-value str">&quot;failed to set docroot&quot;</span>)
1721
- <span class="ruby-identifier">assert</span>(<span class="ruby-operator">!</span><span class="ruby-identifier">api</span>.<span class="ruby-identifier">uuid</span>.<span class="ruby-identifier">nil?</span>, <span class="ruby-value str">&quot;uuid is nil&quot;</span>)
1722
- <span class="ruby-keyword kw">end</span>
1723
- </pre>
1724
- </div>
1725
902
  </div>
1726
903
  </div>
1727
904
 
1728
- <div id="method-M000046" class="method-detail">
1729
- <a name="M000046"></a>
905
+ <div id="method-M000047" class="method-detail">
906
+ <a name="M000047"></a>
1730
907
 
1731
908
  <div class="method-heading">
1732
- <a href="#M000046" class="method-signature">
909
+ <a href="TCTestMu.src/M000047.html" target="Code" class="method-signature"
910
+ onclick="popupCode('TCTestMu.src/M000047.html');return false;">
1733
911
  <span class="method-name">test_scale_session</span><span class="method-args">()</span>
1734
912
  </a>
1735
913
  </div>
1736
914
 
1737
915
  <div class="method-description">
1738
- <p><a class="source-toggle" href="#"
1739
- onclick="toggleCode('M000046-source');return false;">[Source]</a></p>
1740
- <div class="method-source-code" id="M000046-source">
1741
- <pre>
1742
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 648</span>
1743
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_scale_session</span>
1744
- <span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Scale</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>)
1745
- <span class="ruby-identifier">api</span>.<span class="ruby-identifier">session</span>
1746
- <span class="ruby-identifier">assert</span>(<span class="ruby-operator">!</span><span class="ruby-identifier">api</span>.<span class="ruby-identifier">uuid</span>.<span class="ruby-identifier">nil?</span>, <span class="ruby-value str">&quot;uuid is nil&quot;</span>)
1747
- <span class="ruby-keyword kw">end</span>
1748
- </pre>
1749
- </div>
1750
916
  </div>
1751
917
  </div>
1752
918
 
1753
- <div id="method-M000047" class="method-detail">
1754
- <a name="M000047"></a>
919
+ <div id="method-M000048" class="method-detail">
920
+ <a name="M000048"></a>
1755
921
 
1756
922
  <div class="method-heading">
1757
- <a href="#M000047" class="method-signature">
923
+ <a href="TCTestMu.src/M000048.html" target="Code" class="method-signature"
924
+ onclick="popupCode('TCTestMu.src/M000048.html');return false;">
1758
925
  <span class="method-name">test_system_new</span><span class="method-args">()</span>
1759
926
  </a>
1760
927
  </div>
@@ -1763,18 +930,6 @@ do NOT write a test for cmd_system:restart please!
1763
930
  <p>
1764
931
  do NOT write a test for system:restart please!
1765
932
  </p>
1766
- <p><a class="source-toggle" href="#"
1767
- onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
1768
- <div class="method-source-code" id="M000047-source">
1769
- <pre>
1770
- <span class="ruby-comment cmt"># File test/tc_test_mu.rb, line 658</span>
1771
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_system_new</span>
1772
- <span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">System</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>)
1773
- <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">&quot;failed to set mu_ip&quot;</span>)
1774
- <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">&quot;/api/v5/system/&quot;</span>, <span class="ruby-value str">&quot;failed to set docroot&quot;</span>)
1775
- <span class="ruby-keyword kw">end</span>
1776
- </pre>
1777
- </div>
1778
933
  </div>
1779
934
  </div>
1780
935