hammer_cli_foreman 3.19.0 → 5.1.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: 5497c9734d90b46fa06d3a1ad26a007162fe0a14252c198451728d4ac668115a
4
- data.tar.gz: 81ac1b708117feec9e26488fdcda86ad4c969a23835016a65188c4b06dba272e
3
+ metadata.gz: 81ddce7539a47a58532305e589cb62287db7602b35923d1249c0d006f74da96e
4
+ data.tar.gz: 2f6b0dff8ce1519ffcdbc1de0cc3cea3dce9fd7ba0fa0bc6f3dc013ddedee998
5
5
  SHA512:
6
- metadata.gz: bc6f88e37b1ed37b735dd266f329262166792b53c3abe6ce9a775cc5ba2fbe644be82d51fdd19b79742c2b3054c3ebeb1e825b561ef194635b76a85cbb0d714b
7
- data.tar.gz: cb58b247301d176f88242ab9d343f132b12b91baf2e3aa16a19046cf0e5df5dd3eca1be497cab4e5f151373b9c3bd2ff53cb94ba5e094957045458474025c572
6
+ metadata.gz: 672f3cf18050a1ad9913472dcfc87625b8f460c56c2361a25497dae70e35916d42a420b416fbd3a1054fec98b05c64cbabd8e4e50d787f2444c21e00fe1776a3
7
+ data.tar.gz: 94b36670e7fe5828c87eb7ecd47c56389715e06329778425aa1a2fba25cde03d7224e25952ad54fd1f293b65d0a96f10c8fc42433281b0a5b380a7ad5e5c79bb
data/doc/release_notes.md CHANGED
@@ -1,5 +1,20 @@
1
1
  Release notes
2
2
  =============
3
+ ### 5.1.0 (2026-11-10)
4
+ * Show whether partition tables are snippets, [#39824](https://projects.theforeman.org/issues/39824).
5
+ * Flatten Parameters and All parameters in CSV output, [#39962](https://projects.theforeman.org/issues/39962).
6
+ * Known issue: the parameter output change also affects human-readable, JSON, and YAML output and can omit fields such as `is_property` ([PR #671](https://github.com/theforeman/hammer-cli-foreman/pull/671)).
7
+
8
+ ### 5.0.0 (2026-08-11)
9
+ * Fix release tag pattern and drop redundant manual gem push
10
+ * Clarify cacert behavior in containerized environment
11
+ * Clarify param description
12
+ * Hide the cacert option, only allow cacert-file
13
+ * Implement ldap ca cert support, [#39537](http://projects.theforeman.org/issues/39537)
14
+ * Show unrecognized smart proxy features in list and info ([PR #656](https://github.com/theforeman/hammer-cli-foreman/pull/656)), [#39414](http://projects.theforeman.org/issues/39414)
15
+ * Bump to 5.0.0-develop
16
+ * Bump to 3.20.0-develop
17
+
3
18
  ### 3.19.0 (2026-05-11)
4
19
  * Sync ci ruby versions from hammer-cli
5
20
  * Provide empty provider_vm_specific_fields in cr::base, [#39126](http://projects.theforeman.org/issues/39126)
@@ -4,6 +4,15 @@ module HammerCLIForeman
4
4
  command_name 'ldap'
5
5
  desc _('Manage LDAP auth sources')
6
6
 
7
+ module CacertFileOption
8
+ def self.included(base)
9
+ base.option '--cacert-file', 'CACERT_FILE',
10
+ _('Path to a PEM file with CA certificate(s) used for LDAPS verification (system trust store is not used when set). In containerized deployments, the container\'s trust store is used, so the CA certificate(s) may need to be provided here explicitly'),
11
+ :attribute_name => :option_cacert,
12
+ :format => HammerCLI::Options::Normalizers::File.new
13
+ end
14
+ end
15
+
7
16
  class ListCommand < HammerCLIForeman::ListCommand
8
17
  output do
9
18
  field :id, _('Id')
@@ -23,6 +32,7 @@ module HammerCLIForeman
23
32
  field :name, _('Name')
24
33
  field :host, _('Server')
25
34
  field :tls, _('LDAPS'), Fields::Boolean
35
+ field :cacert, _('CA certificate'), Fields::LongText, :hide_blank => true
26
36
  field :port, _('Port')
27
37
  field :server_type, _('Server Type')
28
38
  end
@@ -50,10 +60,14 @@ module HammerCLIForeman
50
60
  end
51
61
 
52
62
  class CreateCommand < HammerCLIForeman::CreateCommand
63
+ include CacertFileOption
64
+
53
65
  success_message _('Auth source [%{name}] created.')
54
66
  failure_message _('Could not create the Auth Source')
55
67
 
56
- build_options
68
+ build_options do |o|
69
+ o.without(:cacert)
70
+ end
57
71
  end
58
72
 
59
73
  class DeleteCommand < HammerCLIForeman::DeleteCommand
@@ -64,10 +78,14 @@ module HammerCLIForeman
64
78
  end
65
79
 
66
80
  class UpdateCommand < HammerCLIForeman::UpdateCommand
81
+ include CacertFileOption
82
+
67
83
  success_message _('Auth source [%{name}] updated.')
68
84
  failure_message _('Could not update the Auth Source')
69
85
 
70
- build_options
86
+ build_options do |o|
87
+ o.without(:cacert)
88
+ end
71
89
  end
72
90
 
73
91
  autoload_subcommands
@@ -10,6 +10,7 @@ module HammerCLIForeman
10
10
  field :id, _("Id")
11
11
  field :name, _("Name")
12
12
  field :os_family, _("OS Family")
13
+ field :snippet, _("Snippet"), Fields::Boolean
13
14
  end
14
15
 
15
16
  build_options
@@ -132,7 +132,15 @@ module HammerCLIForeman
132
132
  def self.parameters(dsl)
133
133
  dsl.build do
134
134
  collection :parameters, _("Parameters"), :numbered => false do
135
- custom_field Fields::KeyValue
135
+ field :id, _("Id")
136
+ field :name, _("Name")
137
+ field :value, _("Value")
138
+ field :parameter_type, _("Type")
139
+ field :associated_type, _("Associated type")
140
+ field :priority, _("Priority")
141
+ field :created_at, _("Created at")
142
+ field :updated_at, _("Updated at")
143
+ field :hidden_value?, _("Hidden value")
136
144
  end
137
145
  end
138
146
  end
@@ -140,7 +148,15 @@ module HammerCLIForeman
140
148
  def self.all_parameters(dsl)
141
149
  dsl.build do
142
150
  collection :all_parameters, _("All parameters"), :numbered => false do
143
- custom_field Fields::KeyValue
151
+ field :id, _("Id")
152
+ field :name, _("Name")
153
+ field :value, _("Value")
154
+ field :parameter_type, _("Type")
155
+ field :associated_type, _("Associated type")
156
+ field :priority, _("Priority")
157
+ field :created_at, _("Created at")
158
+ field :updated_at, _("Updated at")
159
+ field :hidden_value?, _("Hidden value")
144
160
  end
145
161
  end
146
162
  end
@@ -13,6 +13,7 @@ module HammerCLIForeman
13
13
  field :status, _("Status")
14
14
  field :url, _("URL")
15
15
  field :_features, _( "Features"), Fields::List, :hide_blank => true
16
+ field :unrecognized_features, _("Unrecognized features"), Fields::List, :hide_blank => true
16
17
  end
17
18
 
18
19
  def extend_data(proxy)
@@ -31,10 +32,18 @@ module HammerCLIForeman
31
32
  field :name, _('Name')
32
33
  field :version, _('Version')
33
34
  end
35
+ collection :_unrecognized_features, _("Unrecognized features"), :hide_blank => true do
36
+ field :name, _('Name')
37
+ end
34
38
  HammerCLIForeman::References.taxonomies(self)
35
39
  HammerCLIForeman::References.timestamps(self)
36
40
  end
37
41
 
42
+ def extend_data(proxy)
43
+ proxy['_unrecognized_features'] = proxy.delete('unrecognized_features').map { |f| { 'name' => f } } if proxy['unrecognized_features']
44
+ proxy
45
+ end
46
+
38
47
  build_options
39
48
  end
40
49
 
@@ -1,5 +1,5 @@
1
1
  module HammerCLIForeman
2
2
  def self.version
3
- @version ||= Gem::Version.new "3.19.0"
3
+ @version ||= Gem::Version.new "5.1.0"
4
4
  end
5
5
  end
@@ -60,6 +60,7 @@ describe HammerCLIForeman::AuthSourceLdap do
60
60
 
61
61
  describe "parameters" do
62
62
  it_should_accept "all required params", ["--name=arch", "--host=my.host"]
63
+ it_should_accept "cacert file", ["--name=arch", "--host=my.host", "--cacert-file=#{__FILE__}"]
63
64
  # it_should_fail_with "name missing", []
64
65
  # TODO: temporarily disabled, parameters are checked in the api
65
66
  end
@@ -87,6 +88,7 @@ describe HammerCLIForeman::AuthSourceLdap do
87
88
  describe "parameters" do
88
89
  it_should_accept "name", ["--name=arch", "--new-name=arch2"]
89
90
  it_should_accept "id", ["--id=1", "--new-name=arch2"]
91
+ it_should_accept "cacert file", ["--id=1", "--cacert-file=#{__FILE__}"]
90
92
  # it_should_fail_with "no params", [] # TODO: temporarily disabled, parameters are checked in the id resolver
91
93
  # it_should_fail_with "name or id missing", ["--new-name=arch2"] # TODO: temporarily disabled, parameters are checked in the id resolver
92
94
  end
@@ -30,7 +30,7 @@ describe HammerCLIForeman::PartitionTable do
30
30
  let(:expected_record_count) { count_records(cmd.resource.call(:index)) }
31
31
 
32
32
  it_should_print_n_records
33
- it_should_print_columns ["Id", "Name", "OS Family"]
33
+ it_should_print_columns ["Id", "Name", "OS Family", "Snippet"]
34
34
  end
35
35
 
36
36
  end
@@ -50,7 +50,7 @@ describe HammerCLIForeman::PartitionTable do
50
50
  describe "output" do
51
51
  with_params ["--id=1"] do
52
52
  it_should_print_n_records 1
53
- it_should_print_columns ["Id", "Name", "OS Family", "Created at", "Updated at"]
53
+ it_should_print_columns ["Id", "Name", "OS Family", "Snippet", "Created at", "Updated at"]
54
54
  end
55
55
  end
56
56
 
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli_foreman
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.19.0
4
+ version: 5.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomáš Strachota
8
8
  - Martin Bačovský
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2026-05-11 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: hammer_cli
@@ -80,6 +79,7 @@ email: tstracho@redhat.com
80
79
  executables: []
81
80
  extensions: []
82
81
  extra_rdoc_files:
82
+ - README.md
83
83
  - doc/configuration.md
84
84
  - doc/developer_docs.md
85
85
  - doc/host_create.md
@@ -89,7 +89,6 @@ extra_rdoc_files:
89
89
  - doc/release_notes.md
90
90
  - doc/testing.md
91
91
  - doc/using_hammer_cli_foreman_command.md
92
- - README.md
93
92
  files:
94
93
  - LICENSE
95
94
  - README.md
@@ -341,7 +340,6 @@ homepage: https://github.com/theforeman/hammer-cli-foreman
341
340
  licenses:
342
341
  - GPL-3.0-or-later
343
342
  metadata: {}
344
- post_install_message:
345
343
  rdoc_options: []
346
344
  require_paths:
347
345
  - lib
@@ -356,8 +354,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
356
354
  - !ruby/object:Gem::Version
357
355
  version: '0'
358
356
  requirements: []
359
- rubygems_version: 3.2.33
360
- signing_key:
357
+ rubygems_version: 4.0.20
361
358
  specification_version: 4
362
359
  summary: Foreman commands for Hammer
363
360
  test_files: