hammer_cli_katello 1.11.2 → 1.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (230) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hammer_cli_katello/capsule.rb +48 -14
  3. data/lib/hammer_cli_katello/command_extensions/kickstart_repository.rb +1 -1
  4. data/lib/hammer_cli_katello/content_view.rb +56 -9
  5. data/lib/hammer_cli_katello/content_view_version.rb +13 -0
  6. data/lib/hammer_cli_katello/host_extensions.rb +6 -2
  7. data/lib/hammer_cli_katello/organization.rb +0 -23
  8. data/lib/hammer_cli_katello/product.rb +17 -0
  9. data/lib/hammer_cli_katello/repository.rb +70 -15
  10. data/lib/hammer_cli_katello/subscription.rb +2 -2
  11. data/lib/hammer_cli_katello/version.rb +1 -1
  12. data/lib/hammer_cli_katello.rb +0 -6
  13. data/locale/bn/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  14. data/locale/bn/hammer-cli-katello.edit.po +3255 -0
  15. data/locale/bn/hammer-cli-katello.po +1 -94
  16. data/locale/bn/hammer-cli-katello.po.time_stamp +0 -0
  17. data/locale/bn_IN/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  18. data/locale/bn_IN/hammer-cli-katello.edit.po +3255 -0
  19. data/locale/bn_IN/hammer-cli-katello.po +1 -94
  20. data/locale/bn_IN/hammer-cli-katello.po.time_stamp +0 -0
  21. data/locale/bqi/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  22. data/locale/bqi/hammer-cli-katello.edit.po +3251 -0
  23. data/locale/bqi/hammer-cli-katello.po +2133 -0
  24. data/locale/bqi/hammer-cli-katello.po.time_stamp +0 -0
  25. data/locale/ca/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  26. data/locale/ca/hammer-cli-katello.edit.po +3255 -0
  27. data/locale/ca/hammer-cli-katello.po +1 -94
  28. data/locale/ca/hammer-cli-katello.po.time_stamp +0 -0
  29. data/locale/cs_CZ/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  30. data/locale/cs_CZ/hammer-cli-katello.edit.po +3256 -0
  31. data/locale/cs_CZ/hammer-cli-katello.po +1 -94
  32. data/locale/cs_CZ/hammer-cli-katello.po.time_stamp +0 -0
  33. data/locale/de/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  34. data/locale/de/hammer-cli-katello.edit.po +3329 -0
  35. data/locale/de/hammer-cli-katello.po +1 -94
  36. data/locale/de/hammer-cli-katello.po.time_stamp +0 -0
  37. data/locale/de_AT/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  38. data/locale/de_AT/hammer-cli-katello.edit.po +3251 -0
  39. data/locale/de_AT/hammer-cli-katello.po +1 -94
  40. data/locale/de_AT/hammer-cli-katello.po.time_stamp +0 -0
  41. data/locale/de_DE/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  42. data/locale/de_DE/hammer-cli-katello.edit.po +3257 -0
  43. data/locale/de_DE/hammer-cli-katello.po +1 -94
  44. data/locale/de_DE/hammer-cli-katello.po.time_stamp +0 -0
  45. data/locale/el/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  46. data/locale/el/hammer-cli-katello.edit.po +3255 -0
  47. data/locale/el/hammer-cli-katello.po +1 -94
  48. data/locale/el/hammer-cli-katello.po.time_stamp +0 -0
  49. data/locale/en/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  50. data/locale/en/hammer-cli-katello.edit.po +2745 -0
  51. data/locale/en/hammer-cli-katello.po +134 -125
  52. data/locale/en/hammer-cli-katello.po.time_stamp +0 -0
  53. data/locale/en_GB/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  54. data/locale/en_GB/hammer-cli-katello.edit.po +3256 -0
  55. data/locale/en_GB/hammer-cli-katello.po +1 -94
  56. data/locale/en_GB/hammer-cli-katello.po.time_stamp +0 -0
  57. data/locale/en_US/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  58. data/locale/en_US/hammer-cli-katello.edit.po +3251 -0
  59. data/locale/en_US/hammer-cli-katello.po +1 -94
  60. data/locale/en_US/hammer-cli-katello.po.time_stamp +0 -0
  61. data/locale/es/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  62. data/locale/es/hammer-cli-katello.edit.po +3323 -0
  63. data/locale/es/hammer-cli-katello.po +5 -96
  64. data/locale/es/hammer-cli-katello.po.time_stamp +0 -0
  65. data/locale/et_EE/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  66. data/locale/et_EE/hammer-cli-katello.edit.po +3251 -0
  67. data/locale/et_EE/hammer-cli-katello.po +1 -94
  68. data/locale/et_EE/hammer-cli-katello.po.time_stamp +0 -0
  69. data/locale/fr/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  70. data/locale/fr/hammer-cli-katello.edit.po +3347 -0
  71. data/locale/fr/hammer-cli-katello.po +12 -106
  72. data/locale/fr/hammer-cli-katello.po.time_stamp +0 -0
  73. data/locale/gl/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  74. data/locale/gl/hammer-cli-katello.edit.po +3255 -0
  75. data/locale/gl/hammer-cli-katello.po +1 -94
  76. data/locale/gl/hammer-cli-katello.po.time_stamp +0 -0
  77. data/locale/gu/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  78. data/locale/gu/hammer-cli-katello.edit.po +3255 -0
  79. data/locale/gu/hammer-cli-katello.po +1 -94
  80. data/locale/gu/hammer-cli-katello.po.time_stamp +0 -0
  81. data/locale/hammer-cli-katello.pot +304 -312
  82. data/locale/he_IL/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  83. data/locale/he_IL/hammer-cli-katello.edit.po +3255 -0
  84. data/locale/he_IL/hammer-cli-katello.po +3 -96
  85. data/locale/he_IL/hammer-cli-katello.po.time_stamp +0 -0
  86. data/locale/hi/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  87. data/locale/hi/hammer-cli-katello.edit.po +3255 -0
  88. data/locale/hi/hammer-cli-katello.po +1 -94
  89. data/locale/hi/hammer-cli-katello.po.time_stamp +0 -0
  90. data/locale/id/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  91. data/locale/id/hammer-cli-katello.edit.po +3255 -0
  92. data/locale/id/hammer-cli-katello.po +13 -102
  93. data/locale/id/hammer-cli-katello.po.time_stamp +0 -0
  94. data/locale/it/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  95. data/locale/it/hammer-cli-katello.edit.po +3261 -0
  96. data/locale/it/hammer-cli-katello.po +1 -94
  97. data/locale/it/hammer-cli-katello.po.time_stamp +0 -0
  98. data/locale/ja/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  99. data/locale/ja/hammer-cli-katello.edit.po +3273 -0
  100. data/locale/ja/hammer-cli-katello.po +4 -97
  101. data/locale/ja/hammer-cli-katello.po.time_stamp +0 -0
  102. data/locale/ka/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  103. data/locale/ka/hammer-cli-katello.edit.po +3351 -0
  104. data/locale/ka/hammer-cli-katello.po +1 -94
  105. data/locale/ka/hammer-cli-katello.po.time_stamp +0 -0
  106. data/locale/kn/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  107. data/locale/kn/hammer-cli-katello.edit.po +3255 -0
  108. data/locale/kn/hammer-cli-katello.po +1 -94
  109. data/locale/kn/hammer-cli-katello.po.time_stamp +0 -0
  110. data/locale/ko/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  111. data/locale/ko/hammer-cli-katello.edit.po +3258 -0
  112. data/locale/ko/hammer-cli-katello.po +1 -94
  113. data/locale/ko/hammer-cli-katello.po.time_stamp +0 -0
  114. data/locale/ml_IN/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  115. data/locale/ml_IN/hammer-cli-katello.edit.po +3251 -0
  116. data/locale/ml_IN/hammer-cli-katello.po +1 -94
  117. data/locale/ml_IN/hammer-cli-katello.po.time_stamp +0 -0
  118. data/locale/mr/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  119. data/locale/mr/hammer-cli-katello.edit.po +3255 -0
  120. data/locale/mr/hammer-cli-katello.po +1 -94
  121. data/locale/mr/hammer-cli-katello.po.time_stamp +0 -0
  122. data/locale/nl_NL/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  123. data/locale/nl_NL/hammer-cli-katello.edit.po +3259 -0
  124. data/locale/nl_NL/hammer-cli-katello.po +1 -94
  125. data/locale/nl_NL/hammer-cli-katello.po.time_stamp +0 -0
  126. data/locale/or/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  127. data/locale/or/hammer-cli-katello.edit.po +3255 -0
  128. data/locale/or/hammer-cli-katello.po +1 -94
  129. data/locale/or/hammer-cli-katello.po.time_stamp +0 -0
  130. data/locale/pa/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  131. data/locale/pa/hammer-cli-katello.edit.po +3255 -0
  132. data/locale/pa/hammer-cli-katello.po +1 -94
  133. data/locale/pa/hammer-cli-katello.po.time_stamp +0 -0
  134. data/locale/pl/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  135. data/locale/pl/hammer-cli-katello.edit.po +3256 -0
  136. data/locale/pl/hammer-cli-katello.po +1 -94
  137. data/locale/pl/hammer-cli-katello.po.time_stamp +0 -0
  138. data/locale/pl_PL/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  139. data/locale/pl_PL/hammer-cli-katello.edit.po +3251 -0
  140. data/locale/pl_PL/hammer-cli-katello.po +1 -94
  141. data/locale/pl_PL/hammer-cli-katello.po.time_stamp +0 -0
  142. data/locale/pt/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  143. data/locale/pt/hammer-cli-katello.edit.po +3255 -0
  144. data/locale/pt/hammer-cli-katello.po +1 -94
  145. data/locale/pt/hammer-cli-katello.po.time_stamp +0 -0
  146. data/locale/pt_BR/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  147. data/locale/pt_BR/hammer-cli-katello.edit.po +3315 -0
  148. data/locale/pt_BR/hammer-cli-katello.po +5 -96
  149. data/locale/pt_BR/hammer-cli-katello.po.time_stamp +0 -0
  150. data/locale/ro/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  151. data/locale/ro/hammer-cli-katello.edit.po +3251 -0
  152. data/locale/ro/hammer-cli-katello.po +1 -94
  153. data/locale/ro/hammer-cli-katello.po.time_stamp +0 -0
  154. data/locale/ro_RO/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  155. data/locale/ro_RO/hammer-cli-katello.edit.po +3251 -0
  156. data/locale/ro_RO/hammer-cli-katello.po +1 -94
  157. data/locale/ro_RO/hammer-cli-katello.po.time_stamp +0 -0
  158. data/locale/ru/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  159. data/locale/ru/hammer-cli-katello.edit.po +3260 -0
  160. data/locale/ru/hammer-cli-katello.po +1 -94
  161. data/locale/ru/hammer-cli-katello.po.time_stamp +0 -0
  162. data/locale/sl/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  163. data/locale/sl/hammer-cli-katello.edit.po +3255 -0
  164. data/locale/sl/hammer-cli-katello.po +1 -94
  165. data/locale/sl/hammer-cli-katello.po.time_stamp +0 -0
  166. data/locale/sv_SE/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  167. data/locale/sv_SE/hammer-cli-katello.edit.po +3256 -0
  168. data/locale/sv_SE/hammer-cli-katello.po +1 -94
  169. data/locale/sv_SE/hammer-cli-katello.po.time_stamp +0 -0
  170. data/locale/ta/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  171. data/locale/ta/hammer-cli-katello.edit.po +3255 -0
  172. data/locale/ta/hammer-cli-katello.po +1 -94
  173. data/locale/ta/hammer-cli-katello.po.time_stamp +0 -0
  174. data/locale/ta_IN/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  175. data/locale/ta_IN/hammer-cli-katello.edit.po +3255 -0
  176. data/locale/ta_IN/hammer-cli-katello.po +1 -94
  177. data/locale/ta_IN/hammer-cli-katello.po.time_stamp +0 -0
  178. data/locale/te/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  179. data/locale/te/hammer-cli-katello.edit.po +3255 -0
  180. data/locale/te/hammer-cli-katello.po +1 -94
  181. data/locale/te/hammer-cli-katello.po.time_stamp +0 -0
  182. data/locale/tr/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  183. data/locale/tr/hammer-cli-katello.edit.po +3255 -0
  184. data/locale/tr/hammer-cli-katello.po +1 -94
  185. data/locale/tr/hammer-cli-katello.po.time_stamp +0 -0
  186. data/locale/vi/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  187. data/locale/vi/hammer-cli-katello.edit.po +3251 -0
  188. data/locale/vi/hammer-cli-katello.po +1 -94
  189. data/locale/vi/hammer-cli-katello.po.time_stamp +0 -0
  190. data/locale/vi_VN/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  191. data/locale/vi_VN/hammer-cli-katello.edit.po +3251 -0
  192. data/locale/vi_VN/hammer-cli-katello.po +1 -94
  193. data/locale/vi_VN/hammer-cli-katello.po.time_stamp +0 -0
  194. data/locale/zh/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  195. data/locale/zh/hammer-cli-katello.edit.po +3251 -0
  196. data/locale/zh/hammer-cli-katello.po +1 -94
  197. data/locale/zh/hammer-cli-katello.po.time_stamp +0 -0
  198. data/locale/zh_CN/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  199. data/locale/zh_CN/hammer-cli-katello.edit.po +3268 -0
  200. data/locale/zh_CN/hammer-cli-katello.po +4 -97
  201. data/locale/zh_CN/hammer-cli-katello.po.time_stamp +0 -0
  202. data/locale/zh_TW/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  203. data/locale/zh_TW/hammer-cli-katello.edit.po +3257 -0
  204. data/locale/zh_TW/hammer-cli-katello.po +1 -94
  205. data/locale/zh_TW/hammer-cli-katello.po.time_stamp +0 -0
  206. data/test/functional/acs/create_test.rb +3 -3
  207. data/test/functional/content_credentials/create_test.rb +2 -2
  208. data/test/functional/content_export/complete/repository_test.rb +7 -7
  209. data/test/functional/content_export/incremental/repository_test.rb +6 -6
  210. data/test/functional/content_import/library_test.rb +5 -3
  211. data/test/functional/content_import/version_test.rb +5 -3
  212. data/test/functional/content_view/component/add_test.rb +4 -4
  213. data/test/functional/content_view/component/remove_test.rb +6 -6
  214. data/test/functional/content_view/component/update_test.rb +5 -5
  215. data/test/functional/content_view/create_test.rb +3 -3
  216. data/test/functional/organization/info_test.rb +0 -14
  217. data/test/functional/product/{update_proxy.rb → update_proxy_test.rb} +8 -14
  218. data/test/functional/product/verify_checksum_test.rb +31 -0
  219. data/test/functional/repository/create_test.rb +3 -3
  220. data/test/functional/repository/info_test.rb +2 -2
  221. data/test/functional/repository/verify_checksum_test.rb +105 -0
  222. data/test/functional/sync_plan/create_test.rb +9 -9
  223. data/test/functional/sync_plan/delete_test.rb +3 -3
  224. data/test/functional/sync_plan/update_test.rb +5 -5
  225. data/test/test_helper.rb +1 -0
  226. metadata +118 -146
  227. data/lib/hammer_cli_katello/simple_content_access.rb +0 -59
  228. data/test/functional/simple_content_access/disable_test.rb +0 -48
  229. data/test/functional/simple_content_access/enable_test.rb +0 -46
  230. data/test/functional/simple_content_access/status_test.rb +0 -29
@@ -1,48 +0,0 @@
1
- require File.join(File.dirname(__FILE__), '../../test_helper')
2
-
3
- describe 'simple-content-access disable' do
4
- before do
5
- @cmd = %w(simple-content-access disable)
6
- end
7
-
8
- let(:organization_id) { 3 }
9
-
10
- it "disables with required options" do
11
- params = ["--organization-id=#{organization_id}"]
12
-
13
- api_expects(:simple_content_access, :eligible).
14
- with_params('organization_id' => organization_id).
15
- returns("simple_content_access_eligible" => true)
16
-
17
- api_expects(:simple_content_access, :disable)
18
- .with_params('organization_id' => organization_id)
19
- run_cmd(@cmd + params)
20
- end
21
-
22
- it 'fails on missing required params' do
23
- params = []
24
-
25
- result = run_cmd(@cmd + params)
26
- expected_error = "Could not disable Simple Content Access for this organization"
27
-
28
- assert_equal(result.exit_code, HammerCLI::EX_SOFTWARE)
29
- assert_equal(result.err[/#{expected_error}/], expected_error)
30
- end
31
-
32
- it 'fails on non eligible org' do
33
- params = ["--organization-id=#{organization_id}"]
34
-
35
- api_expects(:simple_content_access, :eligible).
36
- with_params('organization_id' => organization_id).
37
- returns("simple_content_access_eligible" => false)
38
-
39
- api_expects(:simple_content_access, :disable)
40
- .with_params('organization_id' => organization_id).never
41
- result = run_cmd(@cmd + params)
42
-
43
- expected_error = "Could not disable Simple Content Access for this organization"
44
-
45
- assert_equal(result.exit_code, HammerCLI::EX_SOFTWARE)
46
- assert_equal(result.err[/#{expected_error}/], expected_error)
47
- end
48
- end
@@ -1,46 +0,0 @@
1
- require File.join(File.dirname(__FILE__), '../../test_helper')
2
-
3
- describe 'simple-content-access enable' do
4
- before do
5
- @cmd = %w(simple-content-access enable)
6
- end
7
-
8
- let(:organization_id) { 3 }
9
-
10
- it "enables with required options" do
11
- params = ["--organization-id=#{organization_id}"]
12
- api_expects(:simple_content_access, :eligible).
13
- with_params('organization_id' => organization_id).
14
- returns("simple_content_access_eligible" => true)
15
-
16
- api_expects(:simple_content_access, :enable)
17
- .with_params('organization_id' => organization_id)
18
- run_cmd(@cmd + params)
19
- end
20
-
21
- it 'fails on missing required params' do
22
- params = []
23
- result = run_cmd(@cmd + params)
24
- expected_error = "Could not enable Simple Content Access for this organization"
25
-
26
- assert_equal(result.exit_code, HammerCLI::EX_SOFTWARE)
27
- assert_equal(result.err[/#{expected_error}/], expected_error)
28
- end
29
-
30
- it 'fails on non eligible org' do
31
- params = ["--organization-id=#{organization_id}"]
32
-
33
- api_expects(:simple_content_access, :eligible).
34
- with_params('organization_id' => organization_id).
35
- returns("simple_content_access_eligible" => false)
36
-
37
- api_expects(:simple_content_access, :enable)
38
- .with_params('organization_id' => organization_id).never
39
- result = run_cmd(@cmd + params)
40
-
41
- expected_error = "Could not enable Simple Content Access for this organization"
42
-
43
- assert_equal(result.exit_code, HammerCLI::EX_SOFTWARE)
44
- assert_equal(result.err[/#{expected_error}/], expected_error)
45
- end
46
- end
@@ -1,29 +0,0 @@
1
- require File.join(File.dirname(__FILE__), '../../test_helper')
2
-
3
- describe 'simple-content-access status' do
4
- before do
5
- @cmd = %w(simple-content-access status)
6
- end
7
-
8
- let(:organization_id) { 3 }
9
-
10
- it 'list status with required options' do
11
- params = ["--organization-id=#{organization_id}"]
12
- api_expects(:simple_content_access, :status).
13
- with_params('organization_id' => organization_id).
14
- returns('simple_content_access' => true)
15
-
16
- run_cmd(@cmd + params)
17
- end
18
-
19
- it 'fails on missing required params' do
20
- params = []
21
- result = run_cmd(@cmd + params)
22
- # rubocop:disable Layout/LineLength
23
- expected_error = 'Could not find organization, please set one of options --organization-id, --organization, --organization-title, --organization-label.'
24
- # rubocop:enable Layout/LineLength
25
-
26
- assert_equal(result.exit_code, HammerCLI::EX_SOFTWARE)
27
- assert_equal(result.err[/#{expected_error}/], expected_error)
28
- end
29
- end