Skip to content

Commit

Permalink
Add hammer-cli-foreman-rh-cloud package
Browse files Browse the repository at this point in the history
  • Loading branch information
ShimShtein committed Nov 23, 2023
1 parent d8f300c commit 2a526a1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
10 changes: 10 additions & 0 deletions manifests/cli/rh_cloud.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# = Hammer foreman_rh_cloud plugin
#
# This installs the foreman_rh_cloud plugin for Hammer CLI
#
# === Parameters:
#
class foreman::cli::rh_cloud {
foreman::cli::plugin { 'foreman_rh_cloud':
}
}
3 changes: 2 additions & 1 deletion spec/acceptance/foreman_cli_plugins_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ class { 'foreman::cli':
include foreman::cli::katello
include foreman::cli::virt_who_configure
include foreman::cli::rh_cloud
Yumrepo['katello'] -> Class['foreman::cli::katello']
PUPPET
Expand All @@ -92,7 +93,7 @@ class { 'foreman::cli':

it_behaves_like 'hammer'

['katello', 'foreman_virt_who_configure'].each do |plugin|
['katello', 'foreman_virt_who_configure', 'foreman_rh_cloud'].each do |plugin|
describe package("rubygem-hammer_cli_#{plugin}") do
it { is_expected.to be_installed }
end
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/cli_plugins_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

supported = on_supported_os

['ansible', 'azure', 'discovery', 'katello', 'kubevirt', 'openscap', 'remote_execution', 'ssh', 'tasks', 'templates', 'virt_who_configure', 'webhooks', 'puppet', 'google'].each do |plugin|
['ansible', 'azure', 'discovery', 'katello', 'kubevirt', 'openscap', 'remote_execution', 'ssh', 'tasks', 'templates', 'virt_who_configure', 'webhooks', 'puppet', 'google', 'rh_cloud'].each do |plugin|
describe "foreman::cli::#{plugin}" do
supported.each do |os, os_facts|
context "on #{os}" do
Expand Down

0 comments on commit 2a526a1

Please sign in to comment.