hammer_cli_katello 1.5.3 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/hammer_cli_katello/acs.rb +7 -4
- data/lib/hammer_cli_katello/host_subscription.rb +32 -0
- data/lib/hammer_cli_katello/simple_content_access.rb +10 -0
- data/lib/hammer_cli_katello/version.rb +1 -1
- data/lib/hammer_cli_katello.rb +1 -1
- data/test/data/4.5/foreman_api.json +1 -1
- data/test/data/4.6/foreman_api.json +1 -0
- data/test/functional/acs/create_test.rb +1 -1
- data/test/functional/acs/delete_test.rb +1 -1
- data/test/functional/acs/info_test.rb +54 -15
- data/test/functional/acs/list_test.rb +1 -1
- data/test/functional/acs/update_test.rb +1 -1
- data/test/functional/host/subscription/enabled_repositories_test.rb +39 -0
- data/test/functional/simple_content_access/status_test.rb +29 -0
- data/test/test_helper.rb +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfa4a96e3ec666332357da5f6741af1fb78360f60e3016060d8e0ba7a41a38c9
|
4
|
+
data.tar.gz: 2d6fafe5ea4d85dd1551f9274a57cc6e2c65e3155bbabd844a0f12d964c3e7d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3c4c16ed1e4c64d5126810fef1c723490758c1019e820e7cde65f7b6caa663ada32072aa39dcac2964199c5a2a72b2c36f31e4d85dfc64f8b2c9d203154896b
|
7
|
+
data.tar.gz: eeefc161d8fb26803fae890ef79d94c74f1e6ca94d4f0780ba839018890fce56bc5405a932cbeee7edbaa5817bec3de0762d39bc0577ee6e647de673c7c6e5fe
|
@@ -34,14 +34,17 @@ module HammerCLIKatello
|
|
34
34
|
field nil, _('')
|
35
35
|
end
|
36
36
|
|
37
|
+
collection :products, _('Products') do
|
38
|
+
field :id, _('Id')
|
39
|
+
field :organization_id, _('Organization ID')
|
40
|
+
field :name, _('Name')
|
41
|
+
field :label, _('Label')
|
42
|
+
end
|
43
|
+
|
37
44
|
collection :smart_proxies, _('Smart proxies') do
|
38
45
|
field :id, _('Id')
|
39
46
|
field :name, _('Name')
|
40
47
|
field :url, _('URL')
|
41
|
-
field :created_at, _('Created at')
|
42
|
-
field :updated_at, _('Updated at')
|
43
|
-
field :expired_logs, _('Expired logs')
|
44
|
-
field :puppet_path, _('Puppet path'), Fields::Field, :hide_blank => true
|
45
48
|
field :download_policy, _('Download policy')
|
46
49
|
end
|
47
50
|
end
|
@@ -102,6 +102,38 @@ module HammerCLIKatello
|
|
102
102
|
setup
|
103
103
|
end
|
104
104
|
|
105
|
+
class EnabledRepositoriesCommand < HammerCLIKatello::ListCommand
|
106
|
+
resource :host_subscriptions, :enabled_repositories
|
107
|
+
command_name 'enabled-repositories'
|
108
|
+
|
109
|
+
output do
|
110
|
+
field :id, _('ID')
|
111
|
+
field :name, _('Name')
|
112
|
+
field :label, _('Label')
|
113
|
+
field :content_type, _('Content type')
|
114
|
+
field :checksum, _("Checksum")
|
115
|
+
|
116
|
+
from :content_view do
|
117
|
+
field :id, _('Content View id')
|
118
|
+
field :name, _("Content View name")
|
119
|
+
end
|
120
|
+
|
121
|
+
from :content_view_version do
|
122
|
+
field :name, _("Content View version")
|
123
|
+
end
|
124
|
+
|
125
|
+
from :kt_environment do
|
126
|
+
field :name, _("Environment name")
|
127
|
+
end
|
128
|
+
|
129
|
+
from :product do
|
130
|
+
field :name, _("Product name")
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
build_options
|
135
|
+
end
|
136
|
+
|
105
137
|
class ContentOverrideCommand < ::HammerCLIKatello::ContentOverrideBase::ContentOverrideCommand
|
106
138
|
resource :host_subscriptions, :content_override
|
107
139
|
setup
|
@@ -13,6 +13,16 @@ module HammerCLIKatello
|
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
16
|
+
class StatusCommand < HammerCLIKatello::ListCommand
|
17
|
+
resource :simple_content_access, :status
|
18
|
+
command_name "status"
|
19
|
+
output do
|
20
|
+
field :simple_content_access, _('Simple Content Access'), Fields::Boolean
|
21
|
+
end
|
22
|
+
|
23
|
+
build_options
|
24
|
+
end
|
25
|
+
|
16
26
|
class EnableCommand < HammerCLIKatello::SingleResourceCommand
|
17
27
|
include EligibleCheck
|
18
28
|
include HammerCLIForemanTasks::Async
|
data/lib/hammer_cli_katello.rb
CHANGED
@@ -43,7 +43,7 @@ module HammerCLIKatello
|
|
43
43
|
'hammer_cli_katello/organization'
|
44
44
|
)
|
45
45
|
|
46
|
-
HammerCLI::MainCommand.lazy_subcommand!("alternate-content-
|
46
|
+
HammerCLI::MainCommand.lazy_subcommand!("alternate-content-source", _("Manipulate alternate content sources"), # rubocop:disable LineLength
|
47
47
|
'HammerCLIKatello::AcsCommand',
|
48
48
|
'hammer_cli_katello/acs'
|
49
49
|
)
|