hammer_cli_katello 1.16.1 → 1.17.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce905f42c2557427d4d748426f7baa0fd49069f71126e1f5d722a6b9cd57f07c
4
- data.tar.gz: 1494cf62f3be6b69e089ac3bd04fcd572c91e9e0b49c81f4d663de66ec6c4d5c
3
+ metadata.gz: 9c92c0dc0ccd350405719c0937686ad4ecbdc36c4c63d22890b93dbced67dae9
4
+ data.tar.gz: 4009035fd5b20b58c133d53efa6732446aaefc6055b2b134222c494ec4db3fd5
5
5
  SHA512:
6
- metadata.gz: 2e21e7b9facd62b593d88c5bba9d4e8ff7080445b7620145e728d24479d4beb0d479d219d334d7cbdf151ce1d3e576f558048e2a3f8be0a31d07d5c20e55d243
7
- data.tar.gz: 2ccafc80bedaa96dab764d5adfa44392909c4a57eae6c024eca79159c97ad8f29f0cf20deb1c843e2842a0d8ba9f33170bbaf8768e05c268e3b71b51cda105a3
6
+ metadata.gz: fffa8960428bcd8a2caa609d0eae4e81dd49b05deb848d3e94c0e442066efaef89b0105d23e931e19264d24cd84e42f339ad14d335f02024e81a7e602a00a95e
7
+ data.tar.gz: a89a857b4727c0232079cad8634a13fe156e5baa204d15bbc2ab85e365245b08dcc900120c4de9709515f717bd506932ea5998fd2eb4e2756f2e4b39d98dbd41
@@ -70,6 +70,7 @@ module HammerCLIKatello
70
70
  field :content_view_version, _("Version")
71
71
  field :content_view_version_id, _("Content View version Id")
72
72
  field :composite, _("Composite"), Fields::Boolean
73
+ field :rolling, _("Rolling"), Fields::Boolean
73
74
  field :content_view_environment_id, _("Content View Environment id"), Fields::Field
74
75
  end
75
76
  end
@@ -205,6 +205,7 @@ module HammerCLIKatello
205
205
  collection :content_views, _("Content Views") do
206
206
  field nil, _("Name"), Fields::Reference
207
207
  field :composite, _('Composite'), Fields::Boolean
208
+ field :rolling, _('Rolling'), Fields::Boolean
208
209
  field :last_published, _('Last Published'), Fields::Date
209
210
  collection :repositories, _('Repositories') do
210
211
  field :id, _("Repository ID")
@@ -15,6 +15,7 @@ module HammerCLIKatello
15
15
  field :name, _("Name")
16
16
  field :label, _("Label")
17
17
  field :composite, _("Composite"), Fields::Boolean
18
+ field :rolling, _("Rolling"), Fields::Boolean
18
19
  field :last_published, _("Last Published"), Fields::Date, :hide_blank => true
19
20
  field :repository_ids, _("Repository IDs"), Fields::List, :max_width => 300
20
21
  end
@@ -32,6 +33,7 @@ module HammerCLIKatello
32
33
  field :name, _("Name")
33
34
  field :label, _("Label")
34
35
  field :composite, _("Composite"), Fields::Boolean
36
+ field :rolling, _("Rolling"), Fields::Boolean
35
37
  field :description, _("Description")
36
38
  field :content_host_count, _("Content Host Count")
37
39
  field :solve_dependencies, _("Solve Dependencies"), Fields::Boolean
@@ -142,11 +144,13 @@ module HammerCLIKatello
142
144
  failure_message _("Could not create the content view")
143
145
 
144
146
  option ["--composite"], :flag, _("Create a composite content view")
147
+ option ["--rolling"], :flag, _("Create a rolling content view")
145
148
  option ["--import-only"], :flag, _("Designate this Content View for "\
146
149
  "importing from upstream servers only.")
147
150
  def request_params
148
151
  super.tap do |opts|
149
152
  opts['composite'] = option_composite? || false
153
+ opts['rolling'] = option_rolling? || false
150
154
  opts['import_only'] = option_import_only? || false
151
155
  end
152
156
  end
@@ -61,6 +61,7 @@ module HammerCLIKatello
61
61
  field :id, _("Id")
62
62
  field :name, _("Name")
63
63
  field :composite, _("Composite"), Fields::Boolean
64
+ field :rolling, _("Rolling"), Fields::Boolean
64
65
  end
65
66
  end
66
67
  from :lifecycle_environment do
@@ -33,6 +33,7 @@ module HammerCLIKatello
33
33
  field :content_type, _("Content Type")
34
34
  field :content_label, _("Content Label")
35
35
  field :url, _("Url")
36
+ field :docker_upstream_name, _('Upstream Repository Name'), nil, :sets => ['ALL']
36
37
  end
37
38
 
38
39
  content_type_msg = _("Limit the repository type to return." \
@@ -18,6 +18,7 @@ module HammerCLIKatello
18
18
  field :end_date, _("End Date"), Fields::Date
19
19
  field :format_quantity, _("Quantity")
20
20
  field :consumed, _("Consumed")
21
+ field :product_host_count, _("Product Host Count")
21
22
  end
22
23
 
23
24
  def extend_data(data)
@@ -1,5 +1,5 @@
1
1
  module HammerCLIKatello
2
2
  def self.version
3
- @version ||= Gem::Version.new('1.16.1')
3
+ @version ||= Gem::Version.new('1.17.0')
4
4
  end
5
5
  end
@@ -36,9 +36,9 @@ describe 'listing content-views' do
36
36
 
37
37
  ex.returns(empty_response)
38
38
  expected_result = success_result(
39
- "----------------|------|-------|-----------|----------------|---------------
40
- CONTENT VIEW ID | NAME | LABEL | COMPOSITE | LAST PUBLISHED | REPOSITORY IDS
41
- ----------------|------|-------|-----------|----------------|---------------
39
+ "----------------|------|-------|-----------|---------|----------------|---------------
40
+ CONTENT VIEW ID | NAME | LABEL | COMPOSITE | ROLLING | LAST PUBLISHED | REPOSITORY IDS
41
+ ----------------|------|-------|-----------|---------|----------------|---------------
42
42
  ")
43
43
 
44
44
  result = run_cmd(@cmd + params)
@@ -57,9 +57,9 @@ CONTENT VIEW ID | NAME | LABEL | COMPOSITE | LAST PUBLISHED | REPOSITORY IDS
57
57
 
58
58
  ex.returns(empty_response)
59
59
  expected_result = success_result(
60
- "----------------|------|-------|-----------|----------------|---------------
61
- CONTENT VIEW ID | NAME | LABEL | COMPOSITE | LAST PUBLISHED | REPOSITORY IDS
62
- ----------------|------|-------|-----------|----------------|---------------
60
+ "----------------|------|-------|-----------|---------|----------------|---------------
61
+ CONTENT VIEW ID | NAME | LABEL | COMPOSITE | ROLLING | LAST PUBLISHED | REPOSITORY IDS
62
+ ----------------|------|-------|-----------|---------|----------------|---------------
63
63
  ")
64
64
 
65
65
  result = run_cmd(@cmd + params)
@@ -98,6 +98,25 @@ ID | NAME | PRODUCT | CONTENT TYPE | CONTENT LABEL | URL
98
98
  expected = CommandExpectation.new("---|------|---------|--------------|---------------|----
99
99
  ID | NAME | PRODUCT | CONTENT TYPE | CONTENT LABEL | URL
100
100
  ---|------|---------|--------------|---------------|----
101
+ ")
102
+
103
+ result = run_cmd(@cmd + params)
104
+ assert_cmd(expected, result)
105
+ end
106
+
107
+ it "lists the repositories with container upstream name" do
108
+ params = ['--organization-id=1', '--fields=ALL']
109
+
110
+ ex = api_expects(:repositories, :index, 'repositories list with upstream container name') do |par|
111
+ par['organization_id'] == org_id && par['page'] == 1 &&
112
+ par['per_page'] == 1000
113
+ end
114
+
115
+ ex.returns(empty_response)
116
+
117
+ expected = CommandExpectation.new("---|------|---------|--------------|---------------|-----|-------------------------
118
+ ID | NAME | PRODUCT | CONTENT TYPE | CONTENT LABEL | URL | UPSTREAM REPOSITORY NAME
119
+ ---|------|---------|--------------|---------------|-----|-------------------------
101
120
  ")
102
121
 
103
122
  result = run_cmd(@cmd + params)
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.16.1
4
+ version: 1.17.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: 2025-03-18 00:00:00.000000000 Z
40
+ date: 2025-05-14 00:00:00.000000000 Z
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: csv
@@ -564,7 +564,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
564
564
  - !ruby/object:Gem::Version
565
565
  version: '0'
566
566
  requirements: []
567
- rubygems_version: 3.2.33
567
+ rubygems_version: 3.4.19
568
568
  signing_key:
569
569
  specification_version: 4
570
570
  summary: Katello commands for Hammer