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.
- checksums.yaml +4 -4
- data/lib/hammer_cli_katello/acs.rb +7 -0
- data/lib/hammer_cli_katello/acs_bulk_actions.rb +38 -0
- data/lib/hammer_cli_katello/content_view_version.rb +21 -0
- data/lib/hammer_cli_katello/host_collection.rb +0 -15
- data/lib/hammer_cli_katello/host_collection_erratum.rb +8 -24
- data/lib/hammer_cli_katello/host_collection_package.rb +20 -57
- data/lib/hammer_cli_katello/host_collection_package_group.rb +20 -57
- data/lib/hammer_cli_katello/host_errata.rb +4 -12
- data/lib/hammer_cli_katello/host_package.rb +18 -59
- data/lib/hammer_cli_katello/host_package_group.rb +8 -33
- data/lib/hammer_cli_katello/unsupported_katello_agent_command_helper.rb +25 -0
- data/lib/hammer_cli_katello/version.rb +1 -1
- data/lib/hammer_cli_katello.rb +1 -1
- data/locale/bn/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/bn/hammer-cli-katello.edit.po +3255 -0
- data/locale/bn/hammer-cli-katello.po +643 -221
- data/locale/bn_IN/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/bn_IN/hammer-cli-katello.edit.po +3255 -0
- data/locale/bn_IN/hammer-cli-katello.po +645 -223
- data/locale/bqi/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/bqi/hammer-cli-katello.edit.po +3251 -0
- data/locale/ca/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/ca/hammer-cli-katello.edit.po +3255 -0
- data/locale/ca/hammer-cli-katello.po +651 -229
- data/locale/cs_CZ/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/cs_CZ/hammer-cli-katello.edit.po +3256 -0
- data/locale/cs_CZ/hammer-cli-katello.po +676 -254
- data/locale/de/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/de/hammer-cli-katello.edit.po +3329 -0
- data/locale/de/hammer-cli-katello.po +1017 -761
- data/locale/de_AT/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/de_AT/hammer-cli-katello.edit.po +3251 -0
- data/locale/de_AT/hammer-cli-katello.po +643 -221
- data/locale/de_DE/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/de_DE/hammer-cli-katello.edit.po +3257 -0
- data/locale/de_DE/hammer-cli-katello.po +643 -221
- data/locale/el/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/el/hammer-cli-katello.edit.po +3255 -0
- data/locale/el/hammer-cli-katello.po +664 -242
- data/locale/en/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/en/hammer-cli-katello.po +645 -222
- data/locale/en_GB/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/en_GB/hammer-cli-katello.edit.po +3256 -0
- data/locale/en_GB/hammer-cli-katello.po +647 -225
- data/locale/en_US/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/en_US/hammer-cli-katello.edit.po +3251 -0
- data/locale/en_US/hammer-cli-katello.po +643 -221
- data/locale/es/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/es/hammer-cli-katello.edit.po +3322 -0
- data/locale/es/hammer-cli-katello.po +1040 -956
- data/locale/et_EE/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/et_EE/hammer-cli-katello.edit.po +3251 -0
- data/locale/et_EE/hammer-cli-katello.po +643 -221
- data/locale/fr/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/fr/hammer-cli-katello.edit.po +3347 -0
- data/locale/fr/hammer-cli-katello.po +1062 -971
- data/locale/gl/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/gl/hammer-cli-katello.edit.po +3255 -0
- data/locale/gl/hammer-cli-katello.po +643 -221
- data/locale/gu/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/gu/hammer-cli-katello.edit.po +3255 -0
- data/locale/gu/hammer-cli-katello.po +645 -223
- data/locale/hammer-cli-katello.pot +1630 -992
- data/locale/he_IL/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/he_IL/hammer-cli-katello.edit.po +3255 -0
- data/locale/he_IL/hammer-cli-katello.po +643 -221
- data/locale/hi/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/hi/hammer-cli-katello.edit.po +3255 -0
- data/locale/hi/hammer-cli-katello.po +645 -223
- data/locale/id/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/id/hammer-cli-katello.edit.po +3251 -0
- data/locale/id/hammer-cli-katello.po +643 -221
- data/locale/it/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/it/hammer-cli-katello.edit.po +3261 -0
- data/locale/it/hammer-cli-katello.po +901 -872
- data/locale/ja/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/ja/hammer-cli-katello.edit.po +3273 -0
- data/locale/ja/hammer-cli-katello.po +1008 -982
- data/locale/ka/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/ka/hammer-cli-katello.edit.po +3351 -0
- data/locale/ka/hammer-cli-katello.po +700 -287
- data/locale/kn/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/kn/hammer-cli-katello.edit.po +3255 -0
- data/locale/kn/hammer-cli-katello.po +645 -223
- data/locale/ko/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/ko/hammer-cli-katello.edit.po +3258 -0
- data/locale/ko/hammer-cli-katello.po +907 -874
- data/locale/ml_IN/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/ml_IN/hammer-cli-katello.edit.po +3251 -0
- data/locale/ml_IN/hammer-cli-katello.po +643 -221
- data/locale/mr/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/mr/hammer-cli-katello.edit.po +3255 -0
- data/locale/mr/hammer-cli-katello.po +645 -223
- data/locale/nl_NL/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/nl_NL/hammer-cli-katello.edit.po +3259 -0
- data/locale/nl_NL/hammer-cli-katello.po +648 -224
- data/locale/or/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/or/hammer-cli-katello.edit.po +3255 -0
- data/locale/or/hammer-cli-katello.po +645 -223
- data/locale/pa/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/pa/hammer-cli-katello.edit.po +3255 -0
- data/locale/pa/hammer-cli-katello.po +645 -223
- data/locale/pl/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/pl/hammer-cli-katello.edit.po +3256 -0
- data/locale/pl/hammer-cli-katello.po +647 -225
- data/locale/pl_PL/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/pl_PL/hammer-cli-katello.edit.po +3251 -0
- data/locale/pl_PL/hammer-cli-katello.po +643 -221
- data/locale/pt/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/pt/hammer-cli-katello.edit.po +3255 -0
- data/locale/pt/hammer-cli-katello.po +643 -221
- data/locale/pt_BR/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/pt_BR/hammer-cli-katello.edit.po +3314 -0
- data/locale/pt_BR/hammer-cli-katello.po +1042 -977
- data/locale/ro/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/ro/hammer-cli-katello.edit.po +3251 -0
- data/locale/ro/hammer-cli-katello.po +643 -221
- data/locale/ro_RO/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/ro_RO/hammer-cli-katello.edit.po +3251 -0
- data/locale/ro_RO/hammer-cli-katello.po +643 -221
- data/locale/ru/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/ru/hammer-cli-katello.edit.po +3260 -0
- data/locale/ru/hammer-cli-katello.po +936 -909
- data/locale/sl/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/sl/hammer-cli-katello.edit.po +3255 -0
- data/locale/sl/hammer-cli-katello.po +645 -223
- data/locale/sv_SE/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/sv_SE/hammer-cli-katello.edit.po +3256 -0
- data/locale/sv_SE/hammer-cli-katello.po +645 -223
- data/locale/ta/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/ta/hammer-cli-katello.edit.po +3255 -0
- data/locale/ta/hammer-cli-katello.po +643 -221
- data/locale/ta_IN/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/ta_IN/hammer-cli-katello.edit.po +3255 -0
- data/locale/ta_IN/hammer-cli-katello.po +644 -222
- data/locale/te/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/te/hammer-cli-katello.edit.po +3255 -0
- data/locale/te/hammer-cli-katello.po +645 -223
- data/locale/tr/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/tr/hammer-cli-katello.edit.po +3255 -0
- data/locale/tr/hammer-cli-katello.po +643 -221
- data/locale/vi/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/vi/hammer-cli-katello.edit.po +3251 -0
- data/locale/vi/hammer-cli-katello.po +643 -221
- data/locale/vi_VN/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/vi_VN/hammer-cli-katello.edit.po +3251 -0
- data/locale/vi_VN/hammer-cli-katello.po +643 -221
- data/locale/zh/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/zh/hammer-cli-katello.edit.po +3251 -0
- data/locale/zh/hammer-cli-katello.po +643 -221
- data/locale/zh_CN/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/zh_CN/hammer-cli-katello.edit.po +3268 -0
- data/locale/zh_CN/hammer-cli-katello.po +1069 -1018
- data/locale/zh_TW/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/zh_TW/hammer-cli-katello.edit.po +3257 -0
- data/locale/zh_TW/hammer-cli-katello.po +721 -665
- data/test/data/4.10/foreman_api.json +1 -0
- data/test/functional/host/errata/apply_test.rb +7 -37
- data/test/functional/host_collection/content_install_test.rb +14 -55
- data/test/functional/host_collection/content_remove_test.rb +13 -30
- data/test/functional/host_collection/content_update_test.rb +13 -30
- data/test/test_helper.rb +1 -1
- metadata +54 -4
- 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
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
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
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
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
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
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.
|
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.
|
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-
|
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
|