Skip to content

Commit

Permalink
[CP] Katello 4.9.0 CP and version bump to 1.9.1 (#896)
Browse files Browse the repository at this point in the history
* Refs #36401 - Update info command to show multiple cv envs

* Version bump to 1.9.1

---------

Co-authored-by: Chris Roberts <chrobert@redhat.com>
  • Loading branch information
lfu and chris1984 committed Jun 21, 2023
1 parent 9080454 commit a1586e2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
22 changes: 14 additions & 8 deletions lib/hammer_cli_katello/host_extensions.rb
Expand Up @@ -42,14 +42,20 @@ module HostExtensions
output do
label _('Content Information') do
from :content_facet_attributes do
label _("Content View") do
field :content_view_id, _("Id")
field :content_view_name, _("Name")
end

label _("Lifecycle Environment") do
field :lifecycle_environment_id, _("Id")
field :lifecycle_environment_name, _("Name")
collection :content_view_environments, _('Content view environments') do
from :content_view do
label _("Content view") do
field :id, _("Id")
field :name, _("Name")
field :composite, _("Composite"), Fields::Boolean
end
end
from :lifecycle_environment do
label _("Lifecycle environment") do
field :id, _("Id")
field :name, _("Name")
end
end
end

label _("Content Source") do
Expand Down
2 changes: 1 addition & 1 deletion lib/hammer_cli_katello/version.rb
@@ -1,5 +1,5 @@
module HammerCLIKatello
def self.version
@version ||= Gem::Version.new('1.9.0')
@version ||= Gem::Version.new('1.9.1')
end
end
3 changes: 1 addition & 2 deletions test/functional/host/extensions/info_test.rb
Expand Up @@ -16,8 +16,7 @@

result = run_cmd(@cmd + params)
# rubocop:disable Style/WordArray
expected_fields = [['Name', 'Library'],
['Name', 'Default Organization View'],
expected_fields = [['Name', 'robot.example.com'],
['Release Version', '7Server'],
['Name', 'Rhel 7'],
['Name', 'capsule'],
Expand Down

0 comments on commit a1586e2

Please sign in to comment.