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.
- checksums.yaml +4 -4
- data/lib/hammer_cli_katello/capsule.rb +48 -14
- data/lib/hammer_cli_katello/command_extensions/kickstart_repository.rb +1 -1
- data/lib/hammer_cli_katello/content_view.rb +56 -9
- data/lib/hammer_cli_katello/content_view_version.rb +13 -0
- data/lib/hammer_cli_katello/host_extensions.rb +6 -2
- data/lib/hammer_cli_katello/organization.rb +0 -23
- data/lib/hammer_cli_katello/product.rb +17 -0
- data/lib/hammer_cli_katello/repository.rb +70 -15
- data/lib/hammer_cli_katello/subscription.rb +2 -2
- data/lib/hammer_cli_katello/version.rb +1 -1
- data/lib/hammer_cli_katello.rb +0 -6
- 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 +1 -94
- data/locale/bn/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/bn_IN/hammer-cli-katello.po.time_stamp +0 -0
- data/locale/bqi/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/bqi/hammer-cli-katello.edit.po +3251 -0
- data/locale/bqi/hammer-cli-katello.po +2133 -0
- data/locale/bqi/hammer-cli-katello.po.time_stamp +0 -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 +1 -94
- data/locale/ca/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/cs_CZ/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/de/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/de_AT/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/de_DE/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/el/hammer-cli-katello.po.time_stamp +0 -0
- data/locale/en/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/en/hammer-cli-katello.edit.po +2745 -0
- data/locale/en/hammer-cli-katello.po +134 -125
- data/locale/en/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/en_GB/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/en_US/hammer-cli-katello.po.time_stamp +0 -0
- data/locale/es/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/es/hammer-cli-katello.edit.po +3323 -0
- data/locale/es/hammer-cli-katello.po +5 -96
- data/locale/es/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/et_EE/hammer-cli-katello.po.time_stamp +0 -0
- 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 +12 -106
- data/locale/fr/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/gl/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/gu/hammer-cli-katello.po.time_stamp +0 -0
- data/locale/hammer-cli-katello.pot +304 -312
- 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 +3 -96
- data/locale/he_IL/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/hi/hammer-cli-katello.po.time_stamp +0 -0
- data/locale/id/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/id/hammer-cli-katello.edit.po +3255 -0
- data/locale/id/hammer-cli-katello.po +13 -102
- data/locale/id/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/it/hammer-cli-katello.po.time_stamp +0 -0
- 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 +4 -97
- data/locale/ja/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/ka/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/kn/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/ko/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/ml_IN/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/mr/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/nl_NL/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/or/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/pa/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/pl/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/pl_PL/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/pt/hammer-cli-katello.po.time_stamp +0 -0
- data/locale/pt_BR/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/pt_BR/hammer-cli-katello.edit.po +3315 -0
- data/locale/pt_BR/hammer-cli-katello.po +5 -96
- data/locale/pt_BR/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/ro/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/ro_RO/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/ru/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/sl/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/sv_SE/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/ta/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/ta_IN/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/te/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/tr/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/vi/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/vi_VN/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/zh/hammer-cli-katello.po.time_stamp +0 -0
- 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 +4 -97
- data/locale/zh_CN/hammer-cli-katello.po.time_stamp +0 -0
- 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 +1 -94
- data/locale/zh_TW/hammer-cli-katello.po.time_stamp +0 -0
- data/test/functional/acs/create_test.rb +3 -3
- data/test/functional/content_credentials/create_test.rb +2 -2
- data/test/functional/content_export/complete/repository_test.rb +7 -7
- data/test/functional/content_export/incremental/repository_test.rb +6 -6
- data/test/functional/content_import/library_test.rb +5 -3
- data/test/functional/content_import/version_test.rb +5 -3
- data/test/functional/content_view/component/add_test.rb +4 -4
- data/test/functional/content_view/component/remove_test.rb +6 -6
- data/test/functional/content_view/component/update_test.rb +5 -5
- data/test/functional/content_view/create_test.rb +3 -3
- data/test/functional/organization/info_test.rb +0 -14
- data/test/functional/product/{update_proxy.rb → update_proxy_test.rb} +8 -14
- data/test/functional/product/verify_checksum_test.rb +31 -0
- data/test/functional/repository/create_test.rb +3 -3
- data/test/functional/repository/info_test.rb +2 -2
- data/test/functional/repository/verify_checksum_test.rb +105 -0
- data/test/functional/sync_plan/create_test.rb +9 -9
- data/test/functional/sync_plan/delete_test.rb +3 -3
- data/test/functional/sync_plan/update_test.rb +5 -5
- data/test/test_helper.rb +1 -0
- metadata +118 -146
- data/lib/hammer_cli_katello/simple_content_access.rb +0 -59
- data/test/functional/simple_content_access/disable_test.rb +0 -48
- data/test/functional/simple_content_access/enable_test.rb +0 -46
- 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
|