hammer_cli_katello 1.9.1 → 1.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (165) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hammer_cli_katello/acs.rb +7 -0
  3. data/lib/hammer_cli_katello/acs_bulk_actions.rb +38 -0
  4. data/lib/hammer_cli_katello/content_view_version.rb +21 -0
  5. data/lib/hammer_cli_katello/host_collection.rb +0 -15
  6. data/lib/hammer_cli_katello/host_collection_erratum.rb +8 -24
  7. data/lib/hammer_cli_katello/host_collection_package.rb +20 -57
  8. data/lib/hammer_cli_katello/host_collection_package_group.rb +20 -57
  9. data/lib/hammer_cli_katello/host_errata.rb +4 -12
  10. data/lib/hammer_cli_katello/host_package.rb +18 -59
  11. data/lib/hammer_cli_katello/host_package_group.rb +8 -33
  12. data/lib/hammer_cli_katello/unsupported_katello_agent_command_helper.rb +25 -0
  13. data/lib/hammer_cli_katello/version.rb +1 -1
  14. data/lib/hammer_cli_katello.rb +1 -1
  15. data/locale/bn/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  16. data/locale/bn/hammer-cli-katello.edit.po +3255 -0
  17. data/locale/bn/hammer-cli-katello.po +643 -221
  18. data/locale/bn_IN/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  19. data/locale/bn_IN/hammer-cli-katello.edit.po +3255 -0
  20. data/locale/bn_IN/hammer-cli-katello.po +645 -223
  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/ca/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  24. data/locale/ca/hammer-cli-katello.edit.po +3255 -0
  25. data/locale/ca/hammer-cli-katello.po +651 -229
  26. data/locale/cs_CZ/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  27. data/locale/cs_CZ/hammer-cli-katello.edit.po +3256 -0
  28. data/locale/cs_CZ/hammer-cli-katello.po +676 -254
  29. data/locale/de/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  30. data/locale/de/hammer-cli-katello.edit.po +3329 -0
  31. data/locale/de/hammer-cli-katello.po +1017 -761
  32. data/locale/de_AT/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  33. data/locale/de_AT/hammer-cli-katello.edit.po +3251 -0
  34. data/locale/de_AT/hammer-cli-katello.po +643 -221
  35. data/locale/de_DE/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  36. data/locale/de_DE/hammer-cli-katello.edit.po +3257 -0
  37. data/locale/de_DE/hammer-cli-katello.po +643 -221
  38. data/locale/el/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  39. data/locale/el/hammer-cli-katello.edit.po +3255 -0
  40. data/locale/el/hammer-cli-katello.po +664 -242
  41. data/locale/en/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  42. data/locale/en/hammer-cli-katello.po +645 -222
  43. data/locale/en_GB/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  44. data/locale/en_GB/hammer-cli-katello.edit.po +3256 -0
  45. data/locale/en_GB/hammer-cli-katello.po +647 -225
  46. data/locale/en_US/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  47. data/locale/en_US/hammer-cli-katello.edit.po +3251 -0
  48. data/locale/en_US/hammer-cli-katello.po +643 -221
  49. data/locale/es/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  50. data/locale/es/hammer-cli-katello.edit.po +3322 -0
  51. data/locale/es/hammer-cli-katello.po +1040 -956
  52. data/locale/et_EE/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  53. data/locale/et_EE/hammer-cli-katello.edit.po +3251 -0
  54. data/locale/et_EE/hammer-cli-katello.po +643 -221
  55. data/locale/fr/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  56. data/locale/fr/hammer-cli-katello.edit.po +3347 -0
  57. data/locale/fr/hammer-cli-katello.po +1062 -971
  58. data/locale/gl/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  59. data/locale/gl/hammer-cli-katello.edit.po +3255 -0
  60. data/locale/gl/hammer-cli-katello.po +643 -221
  61. data/locale/gu/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  62. data/locale/gu/hammer-cli-katello.edit.po +3255 -0
  63. data/locale/gu/hammer-cli-katello.po +645 -223
  64. data/locale/hammer-cli-katello.pot +1630 -992
  65. data/locale/he_IL/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  66. data/locale/he_IL/hammer-cli-katello.edit.po +3255 -0
  67. data/locale/he_IL/hammer-cli-katello.po +643 -221
  68. data/locale/hi/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  69. data/locale/hi/hammer-cli-katello.edit.po +3255 -0
  70. data/locale/hi/hammer-cli-katello.po +645 -223
  71. data/locale/id/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  72. data/locale/id/hammer-cli-katello.edit.po +3251 -0
  73. data/locale/id/hammer-cli-katello.po +643 -221
  74. data/locale/it/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  75. data/locale/it/hammer-cli-katello.edit.po +3261 -0
  76. data/locale/it/hammer-cli-katello.po +901 -872
  77. data/locale/ja/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  78. data/locale/ja/hammer-cli-katello.edit.po +3273 -0
  79. data/locale/ja/hammer-cli-katello.po +1008 -982
  80. data/locale/ka/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  81. data/locale/ka/hammer-cli-katello.edit.po +3351 -0
  82. data/locale/ka/hammer-cli-katello.po +700 -287
  83. data/locale/kn/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  84. data/locale/kn/hammer-cli-katello.edit.po +3255 -0
  85. data/locale/kn/hammer-cli-katello.po +645 -223
  86. data/locale/ko/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  87. data/locale/ko/hammer-cli-katello.edit.po +3258 -0
  88. data/locale/ko/hammer-cli-katello.po +907 -874
  89. data/locale/ml_IN/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  90. data/locale/ml_IN/hammer-cli-katello.edit.po +3251 -0
  91. data/locale/ml_IN/hammer-cli-katello.po +643 -221
  92. data/locale/mr/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  93. data/locale/mr/hammer-cli-katello.edit.po +3255 -0
  94. data/locale/mr/hammer-cli-katello.po +645 -223
  95. data/locale/nl_NL/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  96. data/locale/nl_NL/hammer-cli-katello.edit.po +3259 -0
  97. data/locale/nl_NL/hammer-cli-katello.po +648 -224
  98. data/locale/or/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  99. data/locale/or/hammer-cli-katello.edit.po +3255 -0
  100. data/locale/or/hammer-cli-katello.po +645 -223
  101. data/locale/pa/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  102. data/locale/pa/hammer-cli-katello.edit.po +3255 -0
  103. data/locale/pa/hammer-cli-katello.po +645 -223
  104. data/locale/pl/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  105. data/locale/pl/hammer-cli-katello.edit.po +3256 -0
  106. data/locale/pl/hammer-cli-katello.po +647 -225
  107. data/locale/pl_PL/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  108. data/locale/pl_PL/hammer-cli-katello.edit.po +3251 -0
  109. data/locale/pl_PL/hammer-cli-katello.po +643 -221
  110. data/locale/pt/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  111. data/locale/pt/hammer-cli-katello.edit.po +3255 -0
  112. data/locale/pt/hammer-cli-katello.po +643 -221
  113. data/locale/pt_BR/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  114. data/locale/pt_BR/hammer-cli-katello.edit.po +3314 -0
  115. data/locale/pt_BR/hammer-cli-katello.po +1042 -977
  116. data/locale/ro/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  117. data/locale/ro/hammer-cli-katello.edit.po +3251 -0
  118. data/locale/ro/hammer-cli-katello.po +643 -221
  119. data/locale/ro_RO/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  120. data/locale/ro_RO/hammer-cli-katello.edit.po +3251 -0
  121. data/locale/ro_RO/hammer-cli-katello.po +643 -221
  122. data/locale/ru/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  123. data/locale/ru/hammer-cli-katello.edit.po +3260 -0
  124. data/locale/ru/hammer-cli-katello.po +936 -909
  125. data/locale/sl/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  126. data/locale/sl/hammer-cli-katello.edit.po +3255 -0
  127. data/locale/sl/hammer-cli-katello.po +645 -223
  128. data/locale/sv_SE/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  129. data/locale/sv_SE/hammer-cli-katello.edit.po +3256 -0
  130. data/locale/sv_SE/hammer-cli-katello.po +645 -223
  131. data/locale/ta/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  132. data/locale/ta/hammer-cli-katello.edit.po +3255 -0
  133. data/locale/ta/hammer-cli-katello.po +643 -221
  134. data/locale/ta_IN/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  135. data/locale/ta_IN/hammer-cli-katello.edit.po +3255 -0
  136. data/locale/ta_IN/hammer-cli-katello.po +644 -222
  137. data/locale/te/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  138. data/locale/te/hammer-cli-katello.edit.po +3255 -0
  139. data/locale/te/hammer-cli-katello.po +645 -223
  140. data/locale/tr/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  141. data/locale/tr/hammer-cli-katello.edit.po +3255 -0
  142. data/locale/tr/hammer-cli-katello.po +643 -221
  143. data/locale/vi/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  144. data/locale/vi/hammer-cli-katello.edit.po +3251 -0
  145. data/locale/vi/hammer-cli-katello.po +643 -221
  146. data/locale/vi_VN/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  147. data/locale/vi_VN/hammer-cli-katello.edit.po +3251 -0
  148. data/locale/vi_VN/hammer-cli-katello.po +643 -221
  149. data/locale/zh/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  150. data/locale/zh/hammer-cli-katello.edit.po +3251 -0
  151. data/locale/zh/hammer-cli-katello.po +643 -221
  152. data/locale/zh_CN/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  153. data/locale/zh_CN/hammer-cli-katello.edit.po +3268 -0
  154. data/locale/zh_CN/hammer-cli-katello.po +1069 -1018
  155. data/locale/zh_TW/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  156. data/locale/zh_TW/hammer-cli-katello.edit.po +3257 -0
  157. data/locale/zh_TW/hammer-cli-katello.po +721 -665
  158. data/test/data/4.10/foreman_api.json +1 -0
  159. data/test/functional/host/errata/apply_test.rb +7 -37
  160. data/test/functional/host_collection/content_install_test.rb +14 -55
  161. data/test/functional/host_collection/content_remove_test.rb +13 -30
  162. data/test/functional/host_collection/content_update_test.rb +13 -30
  163. data/test/test_helper.rb +1 -1
  164. metadata +54 -4
  165. data/test/functional/host_collection/content_api_expectations.rb +0 -35
@@ -1,45 +1,15 @@
1
1
  require File.join(File.dirname(__FILE__), '../../test_helper')
2
-
3
2
  describe 'apply an errata' do
4
- include ForemanTaskHelpers
5
-
6
3
  before do
7
4
  @cmd = %w(host errata apply)
8
5
  end
9
6
 
10
- let(:errata_id) { "RHEA-1111:1111" }
11
- let(:host_id) { 1 }
12
- let(:task_id) { '5' }
13
- let(:response) do
14
- {
15
- 'id' => task_id,
16
- 'state' => 'stopped'
17
- }
18
- end
19
-
20
- it "applies an errata to a host" do
21
- params = ["--errata-ids=#{errata_id}", "--host-id=#{host_id}"]
22
-
23
- ex = api_expects(:host_errata, :apply, 'Host errata apply') do |par|
24
- par['errata_ids'] == [errata_id] && par['host_id'] == host_id
25
- end
26
-
27
- ex.returns(response)
28
-
29
- expect_foreman_task(task_id)
30
-
31
- run_cmd(@cmd + params)
32
- end
33
-
34
- it "applies an errata to a host with async flag" do
35
- params = ["--errata-ids=#{errata_id}", "--host-id=#{host_id}", "--async"]
36
-
37
- ex = api_expects(:host_errata, :apply, 'Host errata apply') do |par|
38
- par['errata_ids'] == [errata_id] && par['host_id'] == host_id
39
- end
40
-
41
- ex.returns(response)
42
-
43
- run_cmd(@cmd + params)
7
+ it "errors out on errata applies" do
8
+ params = ["--help"]
9
+ expected = "Not supported. Use the remote execution equivalent "\
10
+ "`hammer job-invocation create --feature katello_errata_install`.\n"
11
+ result = run_cmd(@cmd + params)
12
+ assert_exit_code_equal(HammerCLI::EX_UNAVAILABLE, result.exit_code)
13
+ assert_equal expected, result.out
44
14
  end
45
15
  end
@@ -1,62 +1,21 @@
1
1
  require_relative '../test_helper'
2
- require_relative './content_api_expectations'
3
2
  require 'hammer_cli_katello/host_collection'
4
3
 
5
4
  module HammerCLIKatello
6
- describe HostCollection::InstallContentBaseCommand do
7
- include HammerCLIKatello::ContentAPIExpectations
8
-
9
- def api_expects_content_install(content_type, expected_params)
10
- api_expects_content_action(:install_content, content_type, expected_params)
11
- end
12
-
13
- it 'installs packages to hosts in a host collection' do
14
- api_expects_content_install('package', :content => ['wget'])
15
- run_cmd(%w(host-collection package install --id 3 --packages wget --organization-id 1))
16
- end
17
-
18
- it 'installs packages to hosts in a host collection specified by name' do
19
- api_expects_collection_search
20
- api_expects_content_install('package', :content => ['wget'])
21
- run_cmd(%w(host-collection package install --name Test --packages wget --organization-id 1))
22
- end
23
-
24
- it 'installs package groups to hosts in a host collection' do
25
- api_expects_content_install('package_group', :content => ['birds'])
26
- run_cmd(%w(host-collection package-group install --id 3
27
- --package-groups birds --organization-id 1))
28
- end
29
-
30
- it 'installs package groups to hosts in a host collection specified by name' do
31
- api_expects_collection_search
32
- api_expects_content_install('package_group', :content => ['birds'])
33
- run_cmd(%w(host-collection package-group install --name Test
34
- --package-groups birds --organization-id 1))
35
- end
36
-
37
- it 'installs package groups to hosts in a host collection' do
38
- api_expects_content_install('package_group', :content => ['birds'])
39
- run_cmd(%w(host-collection package-group install --id 3
40
- --package-groups birds --organization-id 1))
41
- end
42
-
43
- it 'installs package groups to hosts in a host collection specified by name' do
44
- api_expects_collection_search
45
- api_expects_content_install('package_group', :content => ['birds'])
46
- run_cmd(%w(host-collection package-group install --name Test
47
- --package-groups birds --organization-id 1))
48
- end
49
-
50
- it 'installs erratum to hosts in a host collection' do
51
- api_expects_content_install('errata', :content => ['Bird_Erratum'])
52
- run_cmd(%w(host-collection erratum install --id 3 --errata Bird_Erratum --organization-id 1))
53
- end
54
-
55
- it 'installs erratum to hosts in a host collection specified by name' do
56
- api_expects_collection_search
57
- api_expects_content_install('errata', :content => ['Bird_Erratum'])
58
- run_cmd(%w(host-collection erratum install --name Test --errata Bird_Erratum
59
- --organization-id 1))
5
+ describe 'Install Content on a host-collection' do
6
+ { "package" => "katello_package_install",
7
+ "package-group" => "katello_group_install",
8
+ "erratum" => "katello_errata_install"
9
+ }.each do |command, feature|
10
+ it "errors out on #{command} install" do
11
+ cmd = ["host-collection", command, "install"]
12
+ params = ["--help"]
13
+ result = run_cmd(cmd + params)
14
+ assert_exit_code_equal(HammerCLI::EX_UNAVAILABLE, result.exit_code)
15
+ assert_match(/Not supported. Use the remote execution equivalent/, result.out)
16
+ assert_match(/feature #{feature}/, result.out)
17
+ assert_match(/Specify the host collection with the --search-query/, result.out)
18
+ end
60
19
  end
61
20
  end
62
21
  end
@@ -1,37 +1,20 @@
1
1
  require_relative '../test_helper'
2
- require_relative './content_api_expectations'
3
2
  require 'hammer_cli_katello/host_collection'
4
3
 
5
4
  module HammerCLIKatello
6
- describe HostCollection::RemoveContentBaseCommand do
7
- include HammerCLIKatello::ContentAPIExpectations
8
-
9
- def api_expects_content_remove(content_type, expected_params)
10
- api_expects_content_action(:remove_content, content_type, expected_params)
11
- end
12
-
13
- it 'removes packages from hosts in a host collection' do
14
- api_expects_content_remove('package', :content => ['wget'])
15
- run_cmd(%w(host-collection package remove --id 3 --packages wget --organization-id 1))
16
- end
17
-
18
- it 'removes packages from hosts in a host collection specified by name' do
19
- api_expects_collection_search
20
- api_expects_content_remove('package', :content => ['wget'])
21
- run_cmd(%w(host-collection package remove --name Test --packages wget --organization-id 1))
22
- end
23
-
24
- it 'removes package groups from hosts in a host collection' do
25
- api_expects_content_remove('package_group', :content => ['birds'])
26
- run_cmd(%w(host-collection package-group remove --id 3
27
- --package-groups birds --organization-id 1))
28
- end
29
-
30
- it 'removes package groups from hosts in a host collection specified by name' do
31
- api_expects_collection_search
32
- api_expects_content_remove('package_group', :content => ['birds'])
33
- run_cmd(%w(host-collection package-group remove --name Test
34
- --package-groups birds --organization-id 1))
5
+ describe 'Remove Content on a host-collection' do
6
+ { "package" => "katello_package_remove",
7
+ "package-group" => "katello_group_remove"
8
+ }.each do |command, feature|
9
+ it "errors out on #{command} install" do
10
+ cmd = ["host-collection", command, "remove"]
11
+ params = ["--help"]
12
+ result = run_cmd(cmd + params)
13
+ assert_exit_code_equal(HammerCLI::EX_UNAVAILABLE, result.exit_code)
14
+ assert_match(/Not supported. Use the remote execution equivalent/, result.out)
15
+ assert_match(/feature #{feature}/, result.out)
16
+ assert_match(/Specify the host collection with the --search-query/, result.out)
17
+ end
35
18
  end
36
19
  end
37
20
  end
@@ -1,37 +1,20 @@
1
1
  require_relative '../test_helper'
2
- require_relative './content_api_expectations'
3
2
  require 'hammer_cli_katello/host_collection'
4
3
 
5
4
  module HammerCLIKatello
6
- describe HostCollection::UpdateContentBaseCommand do
7
- include HammerCLIKatello::ContentAPIExpectations
8
-
9
- def api_expects_content_update(content_type, expected_params)
10
- api_expects_content_action(:update_content, content_type, expected_params)
11
- end
12
-
13
- it 'updates packages on hosts in a host collection' do
14
- api_expects_content_update('package', :content => ['wget'])
15
- run_cmd(%w(host-collection package update --id 3 --packages wget --organization-id 1))
16
- end
17
-
18
- it 'updates packages on hosts in a host collection specified by name' do
19
- api_expects_collection_search
20
- api_expects_content_update('package', :content => ['wget'])
21
- run_cmd(%w(host-collection package update --name Test --packages wget --organization-id 1))
22
- end
23
-
24
- it 'updates package groups on hosts in a host collection' do
25
- api_expects_content_update('package_group', :content => ['birds'])
26
- run_cmd(%w(host-collection package-group update --id 3
27
- --package-groups birds --organization-id 1))
28
- end
29
-
30
- it 'updates package groups on hosts in a host collection specified by name' do
31
- api_expects_collection_search
32
- api_expects_content_update('package_group', :content => ['birds'])
33
- run_cmd(%w(host-collection package-group update --name Test
34
- --package-groups birds --organization-id 1))
5
+ describe 'update Content on a host-collection' do
6
+ { "package" => "katello_package_update",
7
+ "package-group" => "katello_group_update"
8
+ }.each do |command, feature|
9
+ it "errors out on #{command} update" do
10
+ cmd = ["host-collection", command, "update"]
11
+ params = ["--help"]
12
+ result = run_cmd(cmd + params)
13
+ assert_exit_code_equal(HammerCLI::EX_UNAVAILABLE, result.exit_code)
14
+ assert_match(/Not supported. Use the remote execution equivalent/, result.out)
15
+ assert_match(/feature #{feature}/, result.out)
16
+ assert_match(/Specify the host collection with the --search-query/, result.out)
17
+ end
35
18
  end
36
19
  end
37
20
  end
data/test/test_helper.rb CHANGED
@@ -4,7 +4,7 @@ require 'minitest/spec'
4
4
  require 'mocha/minitest'
5
5
  require 'hammer_cli'
6
6
 
7
- KATELLO_VERSION = Gem::Version.new(ENV['TEST_API_VERSION'] || '4.9')
7
+ KATELLO_VERSION = Gem::Version.new(ENV['TEST_API_VERSION'] || '4.10')
8
8
 
9
9
  if HammerCLI.context[:api_connection]
10
10
  HammerCLI.context[:api_connection].create('foreman') do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli_katello
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Price
@@ -37,7 +37,7 @@ authors:
37
37
  autorequire:
38
38
  bindir: bin
39
39
  cert_chain: []
40
- date: 2023-06-21 00:00:00.000000000 Z
40
+ date: 2023-08-30 00:00:00.000000000 Z
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: hammer_cli_foreman
@@ -204,6 +204,7 @@ files:
204
204
  - config/katello.yml
205
205
  - lib/hammer_cli_katello.rb
206
206
  - lib/hammer_cli_katello/acs.rb
207
+ - lib/hammer_cli_katello/acs_bulk_actions.rb
207
208
  - lib/hammer_cli_katello/activation_key.rb
208
209
  - lib/hammer_cli_katello/apipie_helper.rb
209
210
  - lib/hammer_cli_katello/associating_commands.rb
@@ -282,104 +283,153 @@ files:
282
283
  - lib/hammer_cli_katello/status.rb
283
284
  - lib/hammer_cli_katello/subscription.rb
284
285
  - lib/hammer_cli_katello/sync_plan.rb
286
+ - lib/hammer_cli_katello/unsupported_katello_agent_command_helper.rb
285
287
  - lib/hammer_cli_katello/version.rb
286
288
  - locale/Makefile
287
289
  - locale/README.md
288
290
  - locale/bn/LC_MESSAGES/hammer-cli-katello.mo
291
+ - locale/bn/hammer-cli-katello.edit.po
289
292
  - locale/bn/hammer-cli-katello.po
290
293
  - locale/bn_IN/LC_MESSAGES/hammer-cli-katello.mo
294
+ - locale/bn_IN/hammer-cli-katello.edit.po
291
295
  - locale/bn_IN/hammer-cli-katello.po
296
+ - locale/bqi/LC_MESSAGES/hammer-cli-katello.mo
297
+ - locale/bqi/hammer-cli-katello.edit.po
292
298
  - locale/ca/LC_MESSAGES/hammer-cli-katello.mo
299
+ - locale/ca/hammer-cli-katello.edit.po
293
300
  - locale/ca/hammer-cli-katello.po
294
301
  - locale/cs_CZ/LC_MESSAGES/hammer-cli-katello.mo
302
+ - locale/cs_CZ/hammer-cli-katello.edit.po
295
303
  - locale/cs_CZ/hammer-cli-katello.po
296
304
  - locale/de/LC_MESSAGES/hammer-cli-katello.mo
305
+ - locale/de/hammer-cli-katello.edit.po
297
306
  - locale/de/hammer-cli-katello.po
298
307
  - locale/de_AT/LC_MESSAGES/hammer-cli-katello.mo
308
+ - locale/de_AT/hammer-cli-katello.edit.po
299
309
  - locale/de_AT/hammer-cli-katello.po
300
310
  - locale/de_DE/LC_MESSAGES/hammer-cli-katello.mo
311
+ - locale/de_DE/hammer-cli-katello.edit.po
301
312
  - locale/de_DE/hammer-cli-katello.po
302
313
  - locale/el/LC_MESSAGES/hammer-cli-katello.mo
314
+ - locale/el/hammer-cli-katello.edit.po
303
315
  - locale/el/hammer-cli-katello.po
304
316
  - locale/en/LC_MESSAGES/hammer-cli-katello.mo
305
317
  - locale/en/hammer-cli-katello.po
306
318
  - locale/en_GB/LC_MESSAGES/hammer-cli-katello.mo
319
+ - locale/en_GB/hammer-cli-katello.edit.po
307
320
  - locale/en_GB/hammer-cli-katello.po
308
321
  - locale/en_US/LC_MESSAGES/hammer-cli-katello.mo
322
+ - locale/en_US/hammer-cli-katello.edit.po
309
323
  - locale/en_US/hammer-cli-katello.po
310
324
  - locale/es/LC_MESSAGES/hammer-cli-katello.mo
325
+ - locale/es/hammer-cli-katello.edit.po
311
326
  - locale/es/hammer-cli-katello.po
312
327
  - locale/et_EE/LC_MESSAGES/hammer-cli-katello.mo
328
+ - locale/et_EE/hammer-cli-katello.edit.po
313
329
  - locale/et_EE/hammer-cli-katello.po
314
330
  - locale/fr/LC_MESSAGES/hammer-cli-katello.mo
331
+ - locale/fr/hammer-cli-katello.edit.po
315
332
  - locale/fr/hammer-cli-katello.po
316
333
  - locale/gl/LC_MESSAGES/hammer-cli-katello.mo
334
+ - locale/gl/hammer-cli-katello.edit.po
317
335
  - locale/gl/hammer-cli-katello.po
318
336
  - locale/gu/LC_MESSAGES/hammer-cli-katello.mo
337
+ - locale/gu/hammer-cli-katello.edit.po
319
338
  - locale/gu/hammer-cli-katello.po
320
339
  - locale/hammer-cli-katello.pot
321
340
  - locale/he_IL/LC_MESSAGES/hammer-cli-katello.mo
341
+ - locale/he_IL/hammer-cli-katello.edit.po
322
342
  - locale/he_IL/hammer-cli-katello.po
323
343
  - locale/hi/LC_MESSAGES/hammer-cli-katello.mo
344
+ - locale/hi/hammer-cli-katello.edit.po
324
345
  - locale/hi/hammer-cli-katello.po
325
346
  - locale/id/LC_MESSAGES/hammer-cli-katello.mo
347
+ - locale/id/hammer-cli-katello.edit.po
326
348
  - locale/id/hammer-cli-katello.po
327
349
  - locale/it/LC_MESSAGES/hammer-cli-katello.mo
350
+ - locale/it/hammer-cli-katello.edit.po
328
351
  - locale/it/hammer-cli-katello.po
329
352
  - locale/ja/LC_MESSAGES/hammer-cli-katello.mo
353
+ - locale/ja/hammer-cli-katello.edit.po
330
354
  - locale/ja/hammer-cli-katello.po
331
355
  - locale/ka/LC_MESSAGES/hammer-cli-katello.mo
356
+ - locale/ka/hammer-cli-katello.edit.po
332
357
  - locale/ka/hammer-cli-katello.po
333
358
  - locale/kn/LC_MESSAGES/hammer-cli-katello.mo
359
+ - locale/kn/hammer-cli-katello.edit.po
334
360
  - locale/kn/hammer-cli-katello.po
335
361
  - locale/ko/LC_MESSAGES/hammer-cli-katello.mo
362
+ - locale/ko/hammer-cli-katello.edit.po
336
363
  - locale/ko/hammer-cli-katello.po
337
364
  - locale/ml_IN/LC_MESSAGES/hammer-cli-katello.mo
365
+ - locale/ml_IN/hammer-cli-katello.edit.po
338
366
  - locale/ml_IN/hammer-cli-katello.po
339
367
  - locale/mr/LC_MESSAGES/hammer-cli-katello.mo
368
+ - locale/mr/hammer-cli-katello.edit.po
340
369
  - locale/mr/hammer-cli-katello.po
341
370
  - locale/nl_NL/LC_MESSAGES/hammer-cli-katello.mo
371
+ - locale/nl_NL/hammer-cli-katello.edit.po
342
372
  - locale/nl_NL/hammer-cli-katello.po
343
373
  - locale/or/LC_MESSAGES/hammer-cli-katello.mo
374
+ - locale/or/hammer-cli-katello.edit.po
344
375
  - locale/or/hammer-cli-katello.po
345
376
  - locale/pa/LC_MESSAGES/hammer-cli-katello.mo
377
+ - locale/pa/hammer-cli-katello.edit.po
346
378
  - locale/pa/hammer-cli-katello.po
347
379
  - locale/pl/LC_MESSAGES/hammer-cli-katello.mo
380
+ - locale/pl/hammer-cli-katello.edit.po
348
381
  - locale/pl/hammer-cli-katello.po
349
382
  - locale/pl_PL/LC_MESSAGES/hammer-cli-katello.mo
383
+ - locale/pl_PL/hammer-cli-katello.edit.po
350
384
  - locale/pl_PL/hammer-cli-katello.po
351
385
  - locale/pt/LC_MESSAGES/hammer-cli-katello.mo
386
+ - locale/pt/hammer-cli-katello.edit.po
352
387
  - locale/pt/hammer-cli-katello.po
353
388
  - locale/pt_BR/LC_MESSAGES/hammer-cli-katello.mo
389
+ - locale/pt_BR/hammer-cli-katello.edit.po
354
390
  - locale/pt_BR/hammer-cli-katello.po
355
391
  - locale/ro/LC_MESSAGES/hammer-cli-katello.mo
392
+ - locale/ro/hammer-cli-katello.edit.po
356
393
  - locale/ro/hammer-cli-katello.po
357
394
  - locale/ro_RO/LC_MESSAGES/hammer-cli-katello.mo
395
+ - locale/ro_RO/hammer-cli-katello.edit.po
358
396
  - locale/ro_RO/hammer-cli-katello.po
359
397
  - locale/ru/LC_MESSAGES/hammer-cli-katello.mo
398
+ - locale/ru/hammer-cli-katello.edit.po
360
399
  - locale/ru/hammer-cli-katello.po
361
400
  - locale/sl/LC_MESSAGES/hammer-cli-katello.mo
401
+ - locale/sl/hammer-cli-katello.edit.po
362
402
  - locale/sl/hammer-cli-katello.po
363
403
  - locale/sv_SE/LC_MESSAGES/hammer-cli-katello.mo
404
+ - locale/sv_SE/hammer-cli-katello.edit.po
364
405
  - locale/sv_SE/hammer-cli-katello.po
365
406
  - locale/ta/LC_MESSAGES/hammer-cli-katello.mo
407
+ - locale/ta/hammer-cli-katello.edit.po
366
408
  - locale/ta/hammer-cli-katello.po
367
409
  - locale/ta_IN/LC_MESSAGES/hammer-cli-katello.mo
410
+ - locale/ta_IN/hammer-cli-katello.edit.po
368
411
  - locale/ta_IN/hammer-cli-katello.po
369
412
  - locale/te/LC_MESSAGES/hammer-cli-katello.mo
413
+ - locale/te/hammer-cli-katello.edit.po
370
414
  - locale/te/hammer-cli-katello.po
371
415
  - locale/tr/LC_MESSAGES/hammer-cli-katello.mo
416
+ - locale/tr/hammer-cli-katello.edit.po
372
417
  - locale/tr/hammer-cli-katello.po
373
418
  - locale/vi/LC_MESSAGES/hammer-cli-katello.mo
419
+ - locale/vi/hammer-cli-katello.edit.po
374
420
  - locale/vi/hammer-cli-katello.po
375
421
  - locale/vi_VN/LC_MESSAGES/hammer-cli-katello.mo
422
+ - locale/vi_VN/hammer-cli-katello.edit.po
376
423
  - locale/vi_VN/hammer-cli-katello.po
377
424
  - locale/zanata.xml
378
425
  - locale/zh/LC_MESSAGES/hammer-cli-katello.mo
426
+ - locale/zh/hammer-cli-katello.edit.po
379
427
  - locale/zh/hammer-cli-katello.po
380
428
  - locale/zh_CN/LC_MESSAGES/hammer-cli-katello.mo
429
+ - locale/zh_CN/hammer-cli-katello.edit.po
381
430
  - locale/zh_CN/hammer-cli-katello.po
382
431
  - locale/zh_TW/LC_MESSAGES/hammer-cli-katello.mo
432
+ - locale/zh_TW/hammer-cli-katello.edit.po
383
433
  - locale/zh_TW/hammer-cli-katello.po
384
434
  - test/data/2.5/foreman_api.json
385
435
  - test/data/3.0/foreman_api.json
@@ -402,6 +452,7 @@ files:
402
452
  - test/data/3.9/foreman_api.json
403
453
  - test/data/4.0/foreman_api.json
404
454
  - test/data/4.1/foreman_api.json
455
+ - test/data/4.10/foreman_api.json
405
456
  - test/data/4.3/foreman_api.json
406
457
  - test/data/4.4/foreman_api.json
407
458
  - test/data/4.5/foreman_api.json
@@ -519,7 +570,6 @@ files:
519
570
  - test/functional/host/traces/list_test.rb
520
571
  - test/functional/host/traces/resolve_test.rb
521
572
  - test/functional/host_collection/add_host_test.rb
522
- - test/functional/host_collection/content_api_expectations.rb
523
573
  - test/functional/host_collection/content_install_test.rb
524
574
  - test/functional/host_collection/content_remove_test.rb
525
575
  - test/functional/host_collection/content_update_test.rb
@@ -640,6 +690,7 @@ test_files:
640
690
  - test/data/3.9/foreman_api.json
641
691
  - test/data/4.0/foreman_api.json
642
692
  - test/data/4.1/foreman_api.json
693
+ - test/data/4.10/foreman_api.json
643
694
  - test/data/4.3/foreman_api.json
644
695
  - test/data/4.4/foreman_api.json
645
696
  - test/data/4.5/foreman_api.json
@@ -757,7 +808,6 @@ test_files:
757
808
  - test/functional/host/traces/list_test.rb
758
809
  - test/functional/host/traces/resolve_test.rb
759
810
  - test/functional/host_collection/add_host_test.rb
760
- - test/functional/host_collection/content_api_expectations.rb
761
811
  - test/functional/host_collection/content_install_test.rb
762
812
  - test/functional/host_collection/content_remove_test.rb
763
813
  - test/functional/host_collection/content_update_test.rb
@@ -1,35 +0,0 @@
1
- module HammerCLIKatello
2
- module ContentAPIExpectations
3
- ORGANIZATION_ID = 1
4
- HOST_COLLECTION_ID = 3
5
- HOST_COLLECTION_NAME = 'Test'.freeze
6
-
7
- def host_collection
8
- {
9
- 'id' => HOST_COLLECTION_ID,
10
- 'name' => HOST_COLLECTION_NAME
11
- }
12
- end
13
-
14
- def api_expects_content_action(action, content_type, expected_params)
15
- expected_params[:organization_id] ||= ORGANIZATION_ID
16
- expected_params[:host_collection_id] ||= HOST_COLLECTION_ID
17
-
18
- api_expects(:hosts_bulk_actions, action) do |p|
19
- search_query = "host_collection_id=\"#{expected_params[:host_collection_id]}\""
20
- p['organization_id'] == expected_params[:organization_id] &&
21
- p['included'] == { search: search_query } &&
22
- p['content'] == expected_params[:content] &&
23
- p['content_type'] == content_type
24
- end
25
- end
26
-
27
- def api_expects_collection_search
28
- expectation = api_expects(:host_collections, :index) do |p|
29
- p["name"] == HOST_COLLECTION_NAME &&
30
- p["organization_id"] == ORGANIZATION_ID
31
- end
32
- expectation.returns(index_response([host_collection]))
33
- end
34
- end
35
- end