hammer_cli_foreman 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (268) hide show
  1. checksums.yaml +4 -4
  2. data/doc/release_notes.md +9 -0
  3. data/lib/hammer_cli_foreman/api/interactive_basic_auth.rb +1 -1
  4. data/lib/hammer_cli_foreman/api/session_authenticator_wrapper.rb +7 -4
  5. data/lib/hammer_cli_foreman/api.rb +6 -0
  6. data/lib/hammer_cli_foreman/exception_handler.rb +9 -16
  7. data/lib/hammer_cli_foreman/hostgroup.rb +6 -3
  8. data/lib/hammer_cli_foreman/hosts/common_update_options.rb +2 -2
  9. data/lib/hammer_cli_foreman/version.rb +1 -1
  10. data/locale/ca/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  11. data/locale/de/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  12. data/locale/en/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  13. data/locale/en_GB/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  14. data/locale/es/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  15. data/locale/fr/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  16. data/locale/it/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  17. data/locale/ja/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  18. data/locale/ko/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  19. data/locale/pt_BR/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  20. data/locale/ru/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  21. data/locale/zh_CN/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  22. data/locale/zh_TW/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  23. data/test/functional/host_test.rb +1 -1
  24. data/test/functional/hostgroup/update_test.rb +7 -0
  25. data/test/reports/TEST-HammerCLIForeman-Architecture-CreateCommand-parameters.xml +11 -0
  26. data/test/reports/TEST-HammerCLIForeman-Architecture-CreateCommand.xml +7 -0
  27. data/test/reports/TEST-HammerCLIForeman-Architecture-DeleteCommand-parameters.xml +13 -0
  28. data/test/reports/TEST-HammerCLIForeman-Architecture-DeleteCommand.xml +7 -0
  29. data/test/reports/TEST-HammerCLIForeman-Architecture-InfoCommand-output.xml +13 -0
  30. data/test/reports/TEST-HammerCLIForeman-Architecture-InfoCommand-parameters.xml +13 -0
  31. data/test/reports/TEST-HammerCLIForeman-Architecture-InfoCommand.xml +7 -0
  32. data/test/reports/TEST-HammerCLIForeman-Architecture-ListCommand-output.xml +13 -0
  33. data/test/reports/TEST-HammerCLIForeman-Architecture-ListCommand-parameters.xml +17 -0
  34. data/test/reports/TEST-HammerCLIForeman-Architecture-ListCommand.xml +7 -0
  35. data/test/reports/TEST-HammerCLIForeman-Architecture-UpdateCommand-parameters.xml +15 -0
  36. data/test/reports/TEST-HammerCLIForeman-Architecture-UpdateCommand.xml +7 -0
  37. data/test/reports/TEST-HammerCLIForeman-Architecture.xml +7 -0
  38. data/test/reports/TEST-HammerCLIForeman-CommonParameter-DeleteCommand-parameters.xml +11 -0
  39. data/test/reports/TEST-HammerCLIForeman-CommonParameter-DeleteCommand.xml +7 -0
  40. data/test/reports/TEST-HammerCLIForeman-CommonParameter-ListCommand-output.xml +13 -0
  41. data/test/reports/TEST-HammerCLIForeman-CommonParameter-ListCommand-parameters.xml +17 -0
  42. data/test/reports/TEST-HammerCLIForeman-CommonParameter-ListCommand.xml +7 -0
  43. data/test/reports/TEST-HammerCLIForeman-CommonParameter-SetCommand-parameters.xml +13 -0
  44. data/test/reports/TEST-HammerCLIForeman-CommonParameter-SetCommand.xml +7 -0
  45. data/test/reports/TEST-HammerCLIForeman-CommonParameter.xml +7 -0
  46. data/test/reports/TEST-HammerCLIForeman-ComputeResource-CreateCommand-parameters.xml +15 -0
  47. data/test/reports/TEST-HammerCLIForeman-ComputeResource-CreateCommand.xml +7 -0
  48. data/test/reports/TEST-HammerCLIForeman-ComputeResource-DeleteCommand-parameters.xml +13 -0
  49. data/test/reports/TEST-HammerCLIForeman-ComputeResource-DeleteCommand.xml +7 -0
  50. data/test/reports/TEST-HammerCLIForeman-ComputeResource-InfoCommand-output.xml +17 -0
  51. data/test/reports/TEST-HammerCLIForeman-ComputeResource-InfoCommand-parameters.xml +13 -0
  52. data/test/reports/TEST-HammerCLIForeman-ComputeResource-InfoCommand.xml +7 -0
  53. data/test/reports/TEST-HammerCLIForeman-ComputeResource-ListCommand-output.xml +15 -0
  54. data/test/reports/TEST-HammerCLIForeman-ComputeResource-ListCommand-parameters.xml +17 -0
  55. data/test/reports/TEST-HammerCLIForeman-ComputeResource-ListCommand.xml +7 -0
  56. data/test/reports/TEST-HammerCLIForeman-ComputeResource-UpdateCommand-parameters.xml +15 -0
  57. data/test/reports/TEST-HammerCLIForeman-ComputeResource-UpdateCommand.xml +7 -0
  58. data/test/reports/TEST-HammerCLIForeman-ComputeResource.xml +7 -0
  59. data/test/reports/TEST-HammerCLIForeman-Domain-CreateCommand-parameters.xml +11 -0
  60. data/test/reports/TEST-HammerCLIForeman-Domain-CreateCommand.xml +7 -0
  61. data/test/reports/TEST-HammerCLIForeman-Domain-DeleteCommand-parameters.xml +13 -0
  62. data/test/reports/TEST-HammerCLIForeman-Domain-DeleteCommand.xml +7 -0
  63. data/test/reports/TEST-HammerCLIForeman-Domain-DeleteParameterCommand-parameters.xml +15 -0
  64. data/test/reports/TEST-HammerCLIForeman-Domain-DeleteParameterCommand.xml +7 -0
  65. data/test/reports/TEST-HammerCLIForeman-Domain-InfoCommand-output.xml +21 -0
  66. data/test/reports/TEST-HammerCLIForeman-Domain-InfoCommand-parameters.xml +13 -0
  67. data/test/reports/TEST-HammerCLIForeman-Domain-InfoCommand.xml +7 -0
  68. data/test/reports/TEST-HammerCLIForeman-Domain-ListCommand-output.xml +13 -0
  69. data/test/reports/TEST-HammerCLIForeman-Domain-ListCommand-parameters.xml +17 -0
  70. data/test/reports/TEST-HammerCLIForeman-Domain-ListCommand.xml +7 -0
  71. data/test/reports/TEST-HammerCLIForeman-Domain-SetParameterCommand-parameters.xml +17 -0
  72. data/test/reports/TEST-HammerCLIForeman-Domain-SetParameterCommand.xml +7 -0
  73. data/test/reports/TEST-HammerCLIForeman-Domain-UpdateCommand-parameters.xml +15 -0
  74. data/test/reports/TEST-HammerCLIForeman-Domain-UpdateCommand.xml +7 -0
  75. data/test/reports/TEST-HammerCLIForeman-Domain.xml +7 -0
  76. data/test/reports/TEST-HammerCLIForeman-Environment-CreateCommand-parameters.xml +11 -0
  77. data/test/reports/TEST-HammerCLIForeman-Environment-CreateCommand.xml +7 -0
  78. data/test/reports/TEST-HammerCLIForeman-Environment-DeleteCommand-parameters.xml +13 -0
  79. data/test/reports/TEST-HammerCLIForeman-Environment-DeleteCommand.xml +7 -0
  80. data/test/reports/TEST-HammerCLIForeman-Environment-InfoCommand-output.xml +17 -0
  81. data/test/reports/TEST-HammerCLIForeman-Environment-InfoCommand-parameters.xml +13 -0
  82. data/test/reports/TEST-HammerCLIForeman-Environment-InfoCommand.xml +7 -0
  83. data/test/reports/TEST-HammerCLIForeman-Environment-ListCommand-output.xml +13 -0
  84. data/test/reports/TEST-HammerCLIForeman-Environment-ListCommand-parameters.xml +17 -0
  85. data/test/reports/TEST-HammerCLIForeman-Environment-ListCommand.xml +7 -0
  86. data/test/reports/TEST-HammerCLIForeman-Environment-UpdateCommand-parameters.xml +15 -0
  87. data/test/reports/TEST-HammerCLIForeman-Environment-UpdateCommand.xml +7 -0
  88. data/test/reports/TEST-HammerCLIForeman-Environment.xml +7 -0
  89. data/test/reports/TEST-HammerCLIForeman-ExceptionHandler.xml +13 -0
  90. data/test/reports/TEST-HammerCLIForeman-Host-CreateCommand-parameters.xml +46 -0
  91. data/test/reports/TEST-HammerCLIForeman-Host-CreateCommand.xml +7 -0
  92. data/test/reports/TEST-HammerCLIForeman-Host-DeleteCommand-parameters.xml +13 -0
  93. data/test/reports/TEST-HammerCLIForeman-Host-DeleteCommand.xml +7 -0
  94. data/test/reports/TEST-HammerCLIForeman-Host-DeleteParameterCommand-parameters.xml +15 -0
  95. data/test/reports/TEST-HammerCLIForeman-Host-DeleteParameterCommand.xml +7 -0
  96. data/test/reports/TEST-HammerCLIForeman-Host-InfoCommand-output.xml +85 -0
  97. data/test/reports/TEST-HammerCLIForeman-Host-InfoCommand-parameters.xml +13 -0
  98. data/test/reports/TEST-HammerCLIForeman-Host-InfoCommand.xml +7 -0
  99. data/test/reports/TEST-HammerCLIForeman-Host-ListCommand-output.xml +21 -0
  100. data/test/reports/TEST-HammerCLIForeman-Host-ListCommand-parameters.xml +17 -0
  101. data/test/reports/TEST-HammerCLIForeman-Host-ListCommand.xml +7 -0
  102. data/test/reports/TEST-HammerCLIForeman-Host-PuppetRunCommand-output.xml +9 -0
  103. data/test/reports/TEST-HammerCLIForeman-Host-PuppetRunCommand.xml +7 -0
  104. data/test/reports/TEST-HammerCLIForeman-Host-SetParameterCommand-parameters.xml +17 -0
  105. data/test/reports/TEST-HammerCLIForeman-Host-SetParameterCommand.xml +7 -0
  106. data/test/reports/TEST-HammerCLIForeman-Host-StatusCommand-output.xml +9 -0
  107. data/test/reports/TEST-HammerCLIForeman-Host-StatusCommand.xml +7 -0
  108. data/test/reports/TEST-HammerCLIForeman-Host-UpdateCommand-parameters.xml +40 -0
  109. data/test/reports/TEST-HammerCLIForeman-Host-UpdateCommand.xml +7 -0
  110. data/test/reports/TEST-HammerCLIForeman-Host.xml +7 -0
  111. data/test/reports/TEST-HammerCLIForeman-Hostgroup-CreateCommand-parameters.xml +11 -0
  112. data/test/reports/TEST-HammerCLIForeman-Hostgroup-CreateCommand.xml +7 -0
  113. data/test/reports/TEST-HammerCLIForeman-Hostgroup-DeleteCommand-parameters.xml +11 -0
  114. data/test/reports/TEST-HammerCLIForeman-Hostgroup-DeleteCommand.xml +7 -0
  115. data/test/reports/TEST-HammerCLIForeman-Hostgroup-DeleteParameterCommand-parameters.xml +13 -0
  116. data/test/reports/TEST-HammerCLIForeman-Hostgroup-DeleteParameterCommand.xml +7 -0
  117. data/test/reports/TEST-HammerCLIForeman-Hostgroup-InfoCommand-output.xml +29 -0
  118. data/test/reports/TEST-HammerCLIForeman-Hostgroup-InfoCommand-parameters.xml +11 -0
  119. data/test/reports/TEST-HammerCLIForeman-Hostgroup-InfoCommand.xml +7 -0
  120. data/test/reports/TEST-HammerCLIForeman-Hostgroup-ListCommand-output.xml +27 -0
  121. data/test/reports/TEST-HammerCLIForeman-Hostgroup-ListCommand-parameters.xml +17 -0
  122. data/test/reports/TEST-HammerCLIForeman-Hostgroup-ListCommand.xml +7 -0
  123. data/test/reports/TEST-HammerCLIForeman-Hostgroup-SetParameterCommand-parameters.xml +15 -0
  124. data/test/reports/TEST-HammerCLIForeman-Hostgroup-SetParameterCommand.xml +7 -0
  125. data/test/reports/TEST-HammerCLIForeman-Hostgroup-UpdateCommand-parameters.xml +13 -0
  126. data/test/reports/TEST-HammerCLIForeman-Hostgroup-UpdateCommand.xml +7 -0
  127. data/test/reports/TEST-HammerCLIForeman-Hostgroup.xml +7 -0
  128. data/test/reports/TEST-HammerCLIForeman-Location-CreateCommand-parameters.xml +11 -0
  129. data/test/reports/TEST-HammerCLIForeman-Location-CreateCommand-resource-disabled.xml +11 -0
  130. data/test/reports/TEST-HammerCLIForeman-Location-CreateCommand.xml +7 -0
  131. data/test/reports/TEST-HammerCLIForeman-Location-DeleteCommand-parameters.xml +13 -0
  132. data/test/reports/TEST-HammerCLIForeman-Location-DeleteCommand-resource-disabled.xml +11 -0
  133. data/test/reports/TEST-HammerCLIForeman-Location-DeleteCommand.xml +7 -0
  134. data/test/reports/TEST-HammerCLIForeman-Location-InfoCommand-output.xml +17 -0
  135. data/test/reports/TEST-HammerCLIForeman-Location-InfoCommand-parameters.xml +13 -0
  136. data/test/reports/TEST-HammerCLIForeman-Location-InfoCommand-resource-disabled.xml +11 -0
  137. data/test/reports/TEST-HammerCLIForeman-Location-InfoCommand.xml +7 -0
  138. data/test/reports/TEST-HammerCLIForeman-Location-ListCommand-output.xml +13 -0
  139. data/test/reports/TEST-HammerCLIForeman-Location-ListCommand-parameters.xml +17 -0
  140. data/test/reports/TEST-HammerCLIForeman-Location-ListCommand-resource-disabled.xml +11 -0
  141. data/test/reports/TEST-HammerCLIForeman-Location-ListCommand.xml +7 -0
  142. data/test/reports/TEST-HammerCLIForeman-Location-UpdateCommand-parameters.xml +15 -0
  143. data/test/reports/TEST-HammerCLIForeman-Location-UpdateCommand-resource-disabled.xml +11 -0
  144. data/test/reports/TEST-HammerCLIForeman-Location-UpdateCommand.xml +7 -0
  145. data/test/reports/TEST-HammerCLIForeman-Location.xml +7 -0
  146. data/test/reports/TEST-HammerCLIForeman-Medium-CreateCommand-parameters.xml +13 -0
  147. data/test/reports/TEST-HammerCLIForeman-Medium-CreateCommand.xml +7 -0
  148. data/test/reports/TEST-HammerCLIForeman-Medium-DeleteCommand-parameters.xml +13 -0
  149. data/test/reports/TEST-HammerCLIForeman-Medium-DeleteCommand.xml +7 -0
  150. data/test/reports/TEST-HammerCLIForeman-Medium-InfoCommand-output.xml +23 -0
  151. data/test/reports/TEST-HammerCLIForeman-Medium-InfoCommand-parameters.xml +13 -0
  152. data/test/reports/TEST-HammerCLIForeman-Medium-InfoCommand.xml +7 -0
  153. data/test/reports/TEST-HammerCLIForeman-Medium-ListCommand-output.xml +15 -0
  154. data/test/reports/TEST-HammerCLIForeman-Medium-ListCommand-parameters.xml +17 -0
  155. data/test/reports/TEST-HammerCLIForeman-Medium-ListCommand.xml +7 -0
  156. data/test/reports/TEST-HammerCLIForeman-Medium-UpdateCommand-parameters.xml +17 -0
  157. data/test/reports/TEST-HammerCLIForeman-Medium-UpdateCommand.xml +7 -0
  158. data/test/reports/TEST-HammerCLIForeman-Medium.xml +7 -0
  159. data/test/reports/TEST-HammerCLIForeman-OperatingSystem-CreateCommand-parameters.xml +11 -0
  160. data/test/reports/TEST-HammerCLIForeman-OperatingSystem-CreateCommand.xml +7 -0
  161. data/test/reports/TEST-HammerCLIForeman-OperatingSystem-DeleteCommand-parameters.xml +13 -0
  162. data/test/reports/TEST-HammerCLIForeman-OperatingSystem-DeleteCommand.xml +7 -0
  163. data/test/reports/TEST-HammerCLIForeman-OperatingSystem-DeleteParameterCommand-parameters.xml +13 -0
  164. data/test/reports/TEST-HammerCLIForeman-OperatingSystem-DeleteParameterCommand.xml +7 -0
  165. data/test/reports/TEST-HammerCLIForeman-OperatingSystem-InfoCommand-output.xml +27 -0
  166. data/test/reports/TEST-HammerCLIForeman-OperatingSystem-InfoCommand-parameters.xml +13 -0
  167. data/test/reports/TEST-HammerCLIForeman-OperatingSystem-InfoCommand.xml +7 -0
  168. data/test/reports/TEST-HammerCLIForeman-OperatingSystem-ListCommand-output.xml +17 -0
  169. data/test/reports/TEST-HammerCLIForeman-OperatingSystem-ListCommand-parameters.xml +17 -0
  170. data/test/reports/TEST-HammerCLIForeman-OperatingSystem-ListCommand.xml +7 -0
  171. data/test/reports/TEST-HammerCLIForeman-OperatingSystem-SetParameterCommand-parameters.xml +15 -0
  172. data/test/reports/TEST-HammerCLIForeman-OperatingSystem-SetParameterCommand.xml +7 -0
  173. data/test/reports/TEST-HammerCLIForeman-OperatingSystem-UpdateCommand-parameters.xml +17 -0
  174. data/test/reports/TEST-HammerCLIForeman-OperatingSystem-UpdateCommand.xml +7 -0
  175. data/test/reports/TEST-HammerCLIForeman-OperatingSystem.xml +7 -0
  176. data/test/reports/TEST-HammerCLIForeman-Organization-CreateCommand-parameters.xml +11 -0
  177. data/test/reports/TEST-HammerCLIForeman-Organization-CreateCommand-resource-disabled.xml +11 -0
  178. data/test/reports/TEST-HammerCLIForeman-Organization-CreateCommand.xml +7 -0
  179. data/test/reports/TEST-HammerCLIForeman-Organization-DeleteCommand-parameters.xml +13 -0
  180. data/test/reports/TEST-HammerCLIForeman-Organization-DeleteCommand-resource-disabled.xml +11 -0
  181. data/test/reports/TEST-HammerCLIForeman-Organization-DeleteCommand.xml +7 -0
  182. data/test/reports/TEST-HammerCLIForeman-Organization-InfoCommand-output.xml +17 -0
  183. data/test/reports/TEST-HammerCLIForeman-Organization-InfoCommand-parameters.xml +13 -0
  184. data/test/reports/TEST-HammerCLIForeman-Organization-InfoCommand-resource-disabled.xml +11 -0
  185. data/test/reports/TEST-HammerCLIForeman-Organization-InfoCommand.xml +7 -0
  186. data/test/reports/TEST-HammerCLIForeman-Organization-ListCommand-output.xml +13 -0
  187. data/test/reports/TEST-HammerCLIForeman-Organization-ListCommand-parameters.xml +17 -0
  188. data/test/reports/TEST-HammerCLIForeman-Organization-ListCommand-resource-disabled.xml +11 -0
  189. data/test/reports/TEST-HammerCLIForeman-Organization-ListCommand.xml +7 -0
  190. data/test/reports/TEST-HammerCLIForeman-Organization-UpdateCommand-parameters.xml +15 -0
  191. data/test/reports/TEST-HammerCLIForeman-Organization-UpdateCommand-resource-disabled.xml +11 -0
  192. data/test/reports/TEST-HammerCLIForeman-Organization-UpdateCommand.xml +7 -0
  193. data/test/reports/TEST-HammerCLIForeman-Organization.xml +7 -0
  194. data/test/reports/TEST-HammerCLIForeman-PartitionTable-CreateCommand-parameters.xml +13 -0
  195. data/test/reports/TEST-HammerCLIForeman-PartitionTable-CreateCommand.xml +7 -0
  196. data/test/reports/TEST-HammerCLIForeman-PartitionTable-DeleteCommand-parameters.xml +13 -0
  197. data/test/reports/TEST-HammerCLIForeman-PartitionTable-DeleteCommand.xml +7 -0
  198. data/test/reports/TEST-HammerCLIForeman-PartitionTable-DumpCommand-parameters.xml +15 -0
  199. data/test/reports/TEST-HammerCLIForeman-PartitionTable-DumpCommand.xml +7 -0
  200. data/test/reports/TEST-HammerCLIForeman-PartitionTable-InfoCommand-output.xml +19 -0
  201. data/test/reports/TEST-HammerCLIForeman-PartitionTable-InfoCommand-parameters.xml +13 -0
  202. data/test/reports/TEST-HammerCLIForeman-PartitionTable-InfoCommand.xml +7 -0
  203. data/test/reports/TEST-HammerCLIForeman-PartitionTable-ListCommand-output.xml +15 -0
  204. data/test/reports/TEST-HammerCLIForeman-PartitionTable-ListCommand-parameters.xml +17 -0
  205. data/test/reports/TEST-HammerCLIForeman-PartitionTable-ListCommand.xml +7 -0
  206. data/test/reports/TEST-HammerCLIForeman-PartitionTable-UpdateCommand-parameters.xml +13 -0
  207. data/test/reports/TEST-HammerCLIForeman-PartitionTable-UpdateCommand.xml +7 -0
  208. data/test/reports/TEST-HammerCLIForeman-PartitionTable.xml +7 -0
  209. data/test/reports/TEST-HammerCLIForeman-SmartProxy-CreateCommand-parameters.xml +13 -0
  210. data/test/reports/TEST-HammerCLIForeman-SmartProxy-CreateCommand.xml +7 -0
  211. data/test/reports/TEST-HammerCLIForeman-SmartProxy-DeleteCommand-parameters.xml +13 -0
  212. data/test/reports/TEST-HammerCLIForeman-SmartProxy-DeleteCommand.xml +7 -0
  213. data/test/reports/TEST-HammerCLIForeman-SmartProxy-InfoCommand-output.xml +21 -0
  214. data/test/reports/TEST-HammerCLIForeman-SmartProxy-InfoCommand-parameters.xml +13 -0
  215. data/test/reports/TEST-HammerCLIForeman-SmartProxy-InfoCommand.xml +7 -0
  216. data/test/reports/TEST-HammerCLIForeman-SmartProxy-ListCommand-output.xml +15 -0
  217. data/test/reports/TEST-HammerCLIForeman-SmartProxy-ListCommand-parameters.xml +11 -0
  218. data/test/reports/TEST-HammerCLIForeman-SmartProxy-ListCommand.xml +7 -0
  219. data/test/reports/TEST-HammerCLIForeman-SmartProxy-UpdateCommand-parameters.xml +15 -0
  220. data/test/reports/TEST-HammerCLIForeman-SmartProxy-UpdateCommand.xml +7 -0
  221. data/test/reports/TEST-HammerCLIForeman-SmartProxy.xml +7 -0
  222. data/test/reports/TEST-HammerCLIForeman-Subnet-CreateCommand-parameters.xml +15 -0
  223. data/test/reports/TEST-HammerCLIForeman-Subnet-CreateCommand.xml +7 -0
  224. data/test/reports/TEST-HammerCLIForeman-Subnet-DeleteCommand-parameters.xml +13 -0
  225. data/test/reports/TEST-HammerCLIForeman-Subnet-DeleteCommand.xml +7 -0
  226. data/test/reports/TEST-HammerCLIForeman-Subnet-InfoCommand-output.xml +43 -0
  227. data/test/reports/TEST-HammerCLIForeman-Subnet-InfoCommand-parameters.xml +13 -0
  228. data/test/reports/TEST-HammerCLIForeman-Subnet-InfoCommand.xml +7 -0
  229. data/test/reports/TEST-HammerCLIForeman-Subnet-ListCommand-output.xml +17 -0
  230. data/test/reports/TEST-HammerCLIForeman-Subnet-ListCommand-parameters.xml +17 -0
  231. data/test/reports/TEST-HammerCLIForeman-Subnet-ListCommand.xml +7 -0
  232. data/test/reports/TEST-HammerCLIForeman-Subnet-UpdateCommand-parameters.xml +15 -0
  233. data/test/reports/TEST-HammerCLIForeman-Subnet-UpdateCommand.xml +7 -0
  234. data/test/reports/TEST-HammerCLIForeman-Subnet.xml +7 -0
  235. data/test/reports/TEST-HammerCLIForeman-Template-CreateCommand-parameters.xml +15 -0
  236. data/test/reports/TEST-HammerCLIForeman-Template-CreateCommand.xml +7 -0
  237. data/test/reports/TEST-HammerCLIForeman-Template-DeleteCommand-parameters.xml +11 -0
  238. data/test/reports/TEST-HammerCLIForeman-Template-DeleteCommand.xml +7 -0
  239. data/test/reports/TEST-HammerCLIForeman-Template-DumpCommand-parameters.xml +12 -0
  240. data/test/reports/TEST-HammerCLIForeman-Template-DumpCommand.xml +7 -0
  241. data/test/reports/TEST-HammerCLIForeman-Template-InfoCommand-output.xml +17 -0
  242. data/test/reports/TEST-HammerCLIForeman-Template-InfoCommand-parameters.xml +11 -0
  243. data/test/reports/TEST-HammerCLIForeman-Template-InfoCommand.xml +7 -0
  244. data/test/reports/TEST-HammerCLIForeman-Template-ListCommand-output.xml +15 -0
  245. data/test/reports/TEST-HammerCLIForeman-Template-ListCommand-parameters.xml +17 -0
  246. data/test/reports/TEST-HammerCLIForeman-Template-ListCommand.xml +7 -0
  247. data/test/reports/TEST-HammerCLIForeman-Template-ListKindsCommand-parameters.xml +9 -0
  248. data/test/reports/TEST-HammerCLIForeman-Template-ListKindsCommand.xml +7 -0
  249. data/test/reports/TEST-HammerCLIForeman-Template-UpdateCommand-parameters.xml +11 -0
  250. data/test/reports/TEST-HammerCLIForeman-Template-UpdateCommand.xml +7 -0
  251. data/test/reports/TEST-HammerCLIForeman-Template.xml +7 -0
  252. data/test/reports/TEST-HammerCLIForeman-User-CreateCommand-parameters.xml +19 -0
  253. data/test/reports/TEST-HammerCLIForeman-User-CreateCommand.xml +7 -0
  254. data/test/reports/TEST-HammerCLIForeman-User-DeleteCommand-parameters.xml +11 -0
  255. data/test/reports/TEST-HammerCLIForeman-User-DeleteCommand.xml +7 -0
  256. data/test/reports/TEST-HammerCLIForeman-User-InfoCommand-output.xml +23 -0
  257. data/test/reports/TEST-HammerCLIForeman-User-InfoCommand-parameters.xml +11 -0
  258. data/test/reports/TEST-HammerCLIForeman-User-InfoCommand.xml +7 -0
  259. data/test/reports/TEST-HammerCLIForeman-User-ListCommand-output.xml +17 -0
  260. data/test/reports/TEST-HammerCLIForeman-User-ListCommand-parameters.xml +17 -0
  261. data/test/reports/TEST-HammerCLIForeman-User-ListCommand.xml +7 -0
  262. data/test/reports/TEST-HammerCLIForeman-User-UpdateCommand-parameters.xml +11 -0
  263. data/test/reports/TEST-HammerCLIForeman-User-UpdateCommand.xml +7 -0
  264. data/test/reports/TEST-HammerCLIForeman-User.xml +7 -0
  265. data/test/reports/TEST-MiniTest-Spec.xml +7 -0
  266. data/test/unit/api/interactive_basic_auth_test.rb +6 -6
  267. data/test/unit/api/session_authenticator_wrapper_test.rb +7 -7
  268. metadata +564 -62
@@ -0,0 +1,43 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::Subnet::InfoCommand::output" tests="18" time="0.116223456" failures="0" errors="0" skipped="0" assertions="35">
3
+ <testcase name="test_0008_should print column Primary DNS" time="0.005374606" assertions="2">
4
+ </testcase>
5
+ <testcase name="test_0016_should print column Gateway" time="0.004602199" assertions="2">
6
+ </testcase>
7
+ <testcase name="test_0001_should print 1 records" time="0.004381269" assertions="1">
8
+ </testcase>
9
+ <testcase name="test_0009_should print column Secondary DNS" time="0.004125878" assertions="2">
10
+ </testcase>
11
+ <testcase name="test_0018_should print column To" time="0.004552243" assertions="2">
12
+ </testcase>
13
+ <testcase name="test_0002_should print column Id" time="0.00431155" assertions="2">
14
+ </testcase>
15
+ <testcase name="test_0015_should print column vlan id" time="0.005691414" assertions="2">
16
+ </testcase>
17
+ <testcase name="test_0006_should print column Priority" time="0.004355116" assertions="2">
18
+ </testcase>
19
+ <testcase name="test_0004_should print column Network" time="0.00438534" assertions="2">
20
+ </testcase>
21
+ <testcase name="test_0011_should print column TFTP" time="0.004538006" assertions="2">
22
+ </testcase>
23
+ <testcase name="test_0013_should print column DHCP" time="0.029857119" assertions="2">
24
+ </testcase>
25
+ <testcase name="test_0014_should print column DHCP id" time="0.00471609" assertions="2">
26
+ </testcase>
27
+ <testcase name="test_0017_should print column From" time="0.005768987" assertions="2">
28
+ </testcase>
29
+ <testcase name="test_0003_should print column Name" time="0.008929336" assertions="2">
30
+ </testcase>
31
+ <testcase name="test_0012_should print column TFTP id" time="0.005024409" assertions="2">
32
+ </testcase>
33
+ <testcase name="test_0005_should print column Mask" time="0.004830063" assertions="2">
34
+ </testcase>
35
+ <testcase name="test_0007_should print column DNS" time="0.005190862" assertions="2">
36
+ </testcase>
37
+ <testcase name="test_0010_should print column Domain ids" time="0.004846852" assertions="2">
38
+ </testcase>
39
+ <system-out>
40
+ </system-out>
41
+ <system-err>
42
+ </system-err>
43
+ </testsuite>
@@ -0,0 +1,13 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::Subnet::InfoCommand::parameters" tests="3" time="0.043438161" failures="0" errors="0" skipped="0" assertions="3">
3
+ <testcase name="test_0002_should accept name" time="0.004112852" assertions="1">
4
+ </testcase>
5
+ <testcase name="test_0001_should accept id" time="0.00390322" assertions="1">
6
+ </testcase>
7
+ <testcase name="test_0003_should fail with no arguments" time="0.034837905" assertions="1">
8
+ </testcase>
9
+ <system-out>
10
+ </system-out>
11
+ <system-err>
12
+ </system-err>
13
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::Subnet::InfoCommand" tests="0" time="0.000379765" failures="0" errors="0" skipped="0" assertions="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::Subnet::ListCommand::output" tests="5" time="0.024995013" failures="0" errors="0" skipped="0" assertions="9">
3
+ <testcase name="test_0002_should print column Id" time="0.00586606" assertions="2">
4
+ </testcase>
5
+ <testcase name="test_0003_should print column Name" time="0.004968236" assertions="2">
6
+ </testcase>
7
+ <testcase name="test_0001_should print records" time="0.004618935" assertions="1">
8
+ </testcase>
9
+ <testcase name="test_0005_should print column Mask" time="0.004671533" assertions="2">
10
+ </testcase>
11
+ <testcase name="test_0004_should print column Network" time="0.004503789" assertions="2">
12
+ </testcase>
13
+ <system-out>
14
+ </system-out>
15
+ <system-err>
16
+ </system-err>
17
+ </testsuite>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::Subnet::ListCommand::parameters" tests="5" time="0.019755718" failures="0" errors="0" skipped="0" assertions="5">
3
+ <testcase name="test_0005_should accept order" time="0.00401155" assertions="1">
4
+ </testcase>
5
+ <testcase name="test_0002_should accept search" time="0.003592059" assertions="1">
6
+ </testcase>
7
+ <testcase name="test_0003_should accept per page" time="0.003856949" assertions="1">
8
+ </testcase>
9
+ <testcase name="test_0001_should accept no arguments" time="0.003999844" assertions="1">
10
+ </testcase>
11
+ <testcase name="test_0004_should accept page" time="0.003752059" assertions="1">
12
+ </testcase>
13
+ <system-out>
14
+ </system-out>
15
+ <system-err>
16
+ </system-err>
17
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::Subnet::ListCommand" tests="0" time="0.000413157" failures="0" errors="0" skipped="0" assertions="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::Subnet::UpdateCommand::parameters" tests="4" time="0.033668287" failures="0" errors="0" skipped="0" assertions="4">
3
+ <testcase name="test_0001_should accept name" time="0.027148569" assertions="1">
4
+ </testcase>
5
+ <testcase name="test_0003_should fail with no params" time="0.00225208" assertions="1">
6
+ </testcase>
7
+ <testcase name="test_0004_should fail with name or id missing" time="0.001792581" assertions="1">
8
+ </testcase>
9
+ <testcase name="test_0002_should accept id" time="0.002133888" assertions="1">
10
+ </testcase>
11
+ <system-out>
12
+ </system-out>
13
+ <system-err>
14
+ </system-err>
15
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::Subnet::UpdateCommand" tests="0" time="0.000416821" failures="0" errors="0" skipped="0" assertions="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::Subnet" tests="0" time="0.000345858" failures="0" errors="0" skipped="0" assertions="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::Template::CreateCommand::parameters" tests="4" time="0.012518325" failures="0" errors="0" skipped="0" assertions="4">
3
+ <testcase name="test_0004_should fail with file missing" time="0.003073017" assertions="1">
4
+ </testcase>
5
+ <testcase name="test_0003_should fail with type missing" time="0.00271813" assertions="1">
6
+ </testcase>
7
+ <testcase name="test_0002_should fail with name missing" time="0.002511675" assertions="1">
8
+ </testcase>
9
+ <testcase name="test_0001_should accept name, file, type, audit comment, os ids" time="0.003873502" assertions="1">
10
+ </testcase>
11
+ <system-out>
12
+ </system-out>
13
+ <system-err>
14
+ </system-err>
15
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::Template::CreateCommand" tests="0" time="0.00025853" failures="0" errors="0" skipped="0" assertions="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::Template::DeleteCommand::parameters" tests="2" time="0.006023587" failures="0" errors="0" skipped="0" assertions="2">
3
+ <testcase name="test_0001_should accept id" time="0.003387934" assertions="1">
4
+ </testcase>
5
+ <testcase name="test_0002_should fail with id missing" time="0.002288163" assertions="1">
6
+ </testcase>
7
+ <system-out>
8
+ </system-out>
9
+ <system-err>
10
+ </system-err>
11
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::Template::DeleteCommand" tests="0" time="0.000402413" failures="0" errors="0" skipped="0" assertions="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::Template::DumpCommand::parameters" tests="2" time="0.006551534" failures="0" errors="0" skipped="0" assertions="2">
3
+ <testcase name="test_0002_should fail with id missing" time="0.002681467" assertions="1">
4
+ </testcase>
5
+ <testcase name="test_0001_should accept id" time="0.00348684" assertions="1">
6
+ </testcase>
7
+ <system-out>
8
+
9
+ </system-out>
10
+ <system-err>
11
+ </system-err>
12
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::Template::DumpCommand" tests="0" time="0.000352654" failures="0" errors="0" skipped="0" assertions="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::Template::InfoCommand::output" tests="5" time="0.05174111" failures="0" errors="0" skipped="0" assertions="9">
3
+ <testcase name="test_0001_should print 1 records" time="0.037660149" assertions="1">
4
+ </testcase>
5
+ <testcase name="test_0002_should print column Id" time="0.003793605" assertions="2">
6
+ </testcase>
7
+ <testcase name="test_0004_should print column Type" time="0.003832859" assertions="2">
8
+ </testcase>
9
+ <testcase name="test_0003_should print column Name" time="0.003094357" assertions="2">
10
+ </testcase>
11
+ <testcase name="test_0005_should print column OS ids" time="0.002979744" assertions="2">
12
+ </testcase>
13
+ <system-out>
14
+ </system-out>
15
+ <system-err>
16
+ </system-err>
17
+ </testsuite>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::Template::InfoCommand::parameters" tests="2" time="0.006037102" failures="0" errors="0" skipped="0" assertions="2">
3
+ <testcase name="test_0002_should fail with no arguments" time="0.002598291" assertions="1">
4
+ </testcase>
5
+ <testcase name="test_0001_should accept id" time="0.002923084" assertions="1">
6
+ </testcase>
7
+ <system-out>
8
+ </system-out>
9
+ <system-err>
10
+ </system-err>
11
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::Template::InfoCommand" tests="0" time="0.000378317" failures="0" errors="0" skipped="0" assertions="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::Template::ListCommand::output" tests="4" time="0.013628268" failures="0" errors="0" skipped="0" assertions="7">
3
+ <testcase name="test_0001_should print records" time="0.004316278" assertions="1">
4
+ </testcase>
5
+ <testcase name="test_0004_should print column Type" time="0.003352769" assertions="2">
6
+ </testcase>
7
+ <testcase name="test_0002_should print column Id" time="0.002863547" assertions="2">
8
+ </testcase>
9
+ <testcase name="test_0003_should print column Name" time="0.002747881" assertions="2">
10
+ </testcase>
11
+ <system-out>
12
+ </system-out>
13
+ <system-err>
14
+ </system-err>
15
+ </testsuite>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::Template::ListCommand::parameters" tests="5" time="0.01275035" failures="0" errors="0" skipped="0" assertions="5">
3
+ <testcase name="test_0001_should accept no arguments" time="0.002829972" assertions="1">
4
+ </testcase>
5
+ <testcase name="test_0002_should accept search" time="0.002381625" assertions="1">
6
+ </testcase>
7
+ <testcase name="test_0004_should accept page" time="0.002272882" assertions="1">
8
+ </testcase>
9
+ <testcase name="test_0005_should accept order" time="0.002327916" assertions="1">
10
+ </testcase>
11
+ <testcase name="test_0003_should accept per page" time="0.002395138" assertions="1">
12
+ </testcase>
13
+ <system-out>
14
+ </system-out>
15
+ <system-err>
16
+ </system-err>
17
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::Template::ListCommand" tests="0" time="0.000417366" failures="0" errors="0" skipped="0" assertions="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::Template::ListKindsCommand::parameters" tests="1" time="0.002669237" failures="0" errors="0" skipped="0" assertions="1">
3
+ <testcase name="test_0001_should accept no arguments" time="0.0023816" assertions="1">
4
+ </testcase>
5
+ <system-out>
6
+ </system-out>
7
+ <system-err>
8
+ </system-err>
9
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::Template::ListKindsCommand" tests="0" time="0.000451148" failures="0" errors="0" skipped="0" assertions="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::Template::UpdateCommand::parameters" tests="2" time="0.006998183" failures="0" errors="0" skipped="0" assertions="2">
3
+ <testcase name="test_0002_should fail with id missing" time="0.00309061" assertions="1">
4
+ </testcase>
5
+ <testcase name="test_0001_should accept id, name, file, type, audit comment, os ids" time="0.003626329" assertions="1">
6
+ </testcase>
7
+ <system-out>
8
+ </system-out>
9
+ <system-err>
10
+ </system-err>
11
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::Template::UpdateCommand" tests="0" time="0.000276712" failures="0" errors="0" skipped="0" assertions="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::Template" tests="0" time="0.000404988" failures="0" errors="0" skipped="0" assertions="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::User::CreateCommand::parameters" tests="6" time="0.070330632" failures="0" errors="0" skipped="0" assertions="6">
3
+ <testcase name="test_0005_should fail with password missing" time="0.001987686" assertions="1">
4
+ </testcase>
5
+ <testcase name="test_0001_should accept all required" time="0.026994394" assertions="1">
6
+ </testcase>
7
+ <testcase name="test_0004_should fail with mail missing" time="0.001736479" assertions="1">
8
+ </testcase>
9
+ <testcase name="test_0003_should fail with login missing" time="0.001538005" assertions="1">
10
+ </testcase>
11
+ <testcase name="test_0002_should accept all required plus names" time="0.035799589" assertions="1">
12
+ </testcase>
13
+ <testcase name="test_0006_should fail with auth source missing" time="0.001916041" assertions="1">
14
+ </testcase>
15
+ <system-out>
16
+ </system-out>
17
+ <system-err>
18
+ </system-err>
19
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::User::CreateCommand" tests="0" time="0.000221279" failures="0" errors="0" skipped="0" assertions="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::User::DeleteCommand::parameters" tests="2" time="0.005474158" failures="0" errors="0" skipped="0" assertions="2">
3
+ <testcase name="test_0001_should accept id" time="0.003096329" assertions="1">
4
+ </testcase>
5
+ <testcase name="test_0002_should fail with id missing" time="0.002057597" assertions="1">
6
+ </testcase>
7
+ <system-out>
8
+ </system-out>
9
+ <system-err>
10
+ </system-err>
11
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::User::DeleteCommand" tests="0" time="0.000429303" failures="0" errors="0" skipped="0" assertions="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,23 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::User::InfoCommand::output" tests="8" time="0.070991386" failures="0" errors="0" skipped="0" assertions="15">
3
+ <testcase name="test_0006_should print column Last login" time="0.006886969" assertions="2">
4
+ </testcase>
5
+ <testcase name="test_0007_should print column Created at" time="0.005724051" assertions="2">
6
+ </testcase>
7
+ <testcase name="test_0002_should print column Id" time="0.005450286" assertions="2">
8
+ </testcase>
9
+ <testcase name="test_0005_should print column Email" time="0.005539803" assertions="2">
10
+ </testcase>
11
+ <testcase name="test_0001_should print 1 records" time="0.005695008" assertions="1">
12
+ </testcase>
13
+ <testcase name="test_0004_should print column Name" time="0.005614019" assertions="2">
14
+ </testcase>
15
+ <testcase name="test_0003_should print column Login" time="0.0054379" assertions="2">
16
+ </testcase>
17
+ <testcase name="test_0008_should print column Updated at" time="0.030227896" assertions="2">
18
+ </testcase>
19
+ <system-out>
20
+ </system-out>
21
+ <system-err>
22
+ </system-err>
23
+ </testsuite>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::User::InfoCommand::parameters" tests="2" time="0.007194698" failures="0" errors="0" skipped="0" assertions="2">
3
+ <testcase name="test_0002_should fail with no arguments" time="0.001961391" assertions="1">
4
+ </testcase>
5
+ <testcase name="test_0001_should accept id" time="0.004686151" assertions="1">
6
+ </testcase>
7
+ <system-out>
8
+ </system-out>
9
+ <system-err>
10
+ </system-err>
11
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::User::InfoCommand" tests="0" time="0.000402386" failures="0" errors="0" skipped="0" assertions="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::User::ListCommand::output" tests="5" time="0.040416447" failures="0" errors="0" skipped="0" assertions="9">
3
+ <testcase name="test_0001_should print records" time="0.008256648" assertions="1">
4
+ </testcase>
5
+ <testcase name="test_0002_should print column Id" time="0.007677963" assertions="2">
6
+ </testcase>
7
+ <testcase name="test_0004_should print column Name" time="0.007567883" assertions="2">
8
+ </testcase>
9
+ <testcase name="test_0003_should print column Login" time="0.008033693" assertions="2">
10
+ </testcase>
11
+ <testcase name="test_0005_should print column Email" time="0.008511567" assertions="2">
12
+ </testcase>
13
+ <system-out>
14
+ </system-out>
15
+ <system-err>
16
+ </system-err>
17
+ </testsuite>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::User::ListCommand::parameters" tests="5" time="0.062271328" failures="0" errors="0" skipped="0" assertions="5">
3
+ <testcase name="test_0001_should accept no arguments" time="0.006421526" assertions="1">
4
+ </testcase>
5
+ <testcase name="test_0002_should accept search" time="0.005973033" assertions="1">
6
+ </testcase>
7
+ <testcase name="test_0005_should accept order" time="0.037953243" assertions="1">
8
+ </testcase>
9
+ <testcase name="test_0004_should accept page" time="0.005649507" assertions="1">
10
+ </testcase>
11
+ <testcase name="test_0003_should accept per page" time="0.005632757" assertions="1">
12
+ </testcase>
13
+ <system-out>
14
+ </system-out>
15
+ <system-err>
16
+ </system-err>
17
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::User::ListCommand" tests="0" time="0.000410169" failures="0" errors="0" skipped="0" assertions="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::User::UpdateCommand::parameters" tests="2" time="0.004924509" failures="0" errors="0" skipped="0" assertions="2">
3
+ <testcase name="test_0001_should accept id" time="0.002951368" assertions="1">
4
+ </testcase>
5
+ <testcase name="test_0002_should fail with no params" time="0.00166842" assertions="1">
6
+ </testcase>
7
+ <system-out>
8
+ </system-out>
9
+ <system-err>
10
+ </system-err>
11
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::User::UpdateCommand" tests="0" time="0.000420274" failures="0" errors="0" skipped="0" assertions="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="HammerCLIForeman::User" tests="0" time="0.000343867" failures="0" errors="0" skipped="0" assertions="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <testsuite name="MiniTest::Spec" tests="0" time="0.000391443" failures="0" errors="0" skipped="0" assertions="0">
3
+ <system-out>
4
+ </system-out>
5
+ <system-err>
6
+ </system-err>
7
+ </testsuite>
@@ -69,18 +69,18 @@ describe HammerCLIForeman::Api::InteractiveBasicAuth do
69
69
  describe '#error' do
70
70
  let(:auth) { HammerCLIForeman::Api::InteractiveBasicAuth.new(nil, nil) }
71
71
 
72
- it 'overrides exception message for unauthorized exception' do
72
+ it 'overrides unauthorized exception' do
73
73
  ex = RestClient::Unauthorized.new
74
- auth.error(ex)
74
+ new_ex = auth.error(ex)
75
75
 
76
- assert_equal 'Invalid username or password', ex.message
76
+ assert_equal 'Invalid username or password', new_ex.message
77
77
  end
78
78
 
79
- it 'keeps the message for other exceptions' do
79
+ it 'does not override other exceptions' do
80
80
  ex = RuntimeError.new('Some error')
81
- auth.error(ex)
81
+ new_ex = auth.error(ex)
82
82
 
83
- assert_equal 'Some error', ex.message
83
+ assert_nil new_ex
84
84
  end
85
85
  end
86
86
  end
@@ -166,26 +166,26 @@ describe HammerCLIForeman::Api::SessionAuthenticatorWrapper do
166
166
  end
167
167
  end
168
168
 
169
- it 'overrides 401 error message' do
169
+ it 'overrides 401 exception' do
170
170
  prepare_session_storage :session_id => 'SOME_SESSION_ID' do |auth, dir|
171
171
  ex = RestClient::Unauthorized.new
172
- auth.error(ex)
172
+ new_ex = auth.error(ex)
173
173
 
174
- assert_equal 'Session has expired', ex.message
174
+ assert_equal 'Session has expired', new_ex.message
175
175
  end
176
176
  end
177
177
 
178
- it 'keeps error message for other exceptions' do
178
+ it 'does not override other exceptions' do
179
179
  prepare_session_storage :session_id => 'SOME_SESSION_ID' do |auth, dir|
180
180
  ex = RuntimeError.new('Some error')
181
181
  wrapped_auth.expects(:error).with(ex)
182
- auth.error(ex)
182
+ new_ex = auth.error(ex)
183
183
 
184
- assert_equal 'Some error', ex.message
184
+ assert_nil new_ex
185
185
  end
186
186
  end
187
187
 
188
- it 'keeps sessione for other exceptions' do
188
+ it 'keeps session for other exceptions' do
189
189
  prepare_session_storage :session_id => 'SOME_SESSION_ID' do |auth, dir|
190
190
  ex = RuntimeError.new('Some error')
191
191
  wrapped_auth.expects(:error).with(ex)