From 2a526a170d159a8e0b06b3bc8cae5e1d451110ab Mon Sep 17 00:00:00 2001 From: Shimon Shtein Date: Wed, 22 Nov 2023 12:12:15 +0200 Subject: [PATCH] Add hammer-cli-foreman-rh-cloud package --- manifests/cli/rh_cloud.pp | 10 ++++++++++ spec/acceptance/foreman_cli_plugins_spec.rb | 3 ++- spec/classes/cli_plugins_spec.rb | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 manifests/cli/rh_cloud.pp diff --git a/manifests/cli/rh_cloud.pp b/manifests/cli/rh_cloud.pp new file mode 100644 index 000000000..c639c7a1b --- /dev/null +++ b/manifests/cli/rh_cloud.pp @@ -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': + } +} diff --git a/spec/acceptance/foreman_cli_plugins_spec.rb b/spec/acceptance/foreman_cli_plugins_spec.rb index 71c754e17..1f8ec0701 100644 --- a/spec/acceptance/foreman_cli_plugins_spec.rb +++ b/spec/acceptance/foreman_cli_plugins_spec.rb @@ -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 @@ -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 diff --git a/spec/classes/cli_plugins_spec.rb b/spec/classes/cli_plugins_spec.rb index 6fcee11d5..3a501bcc9 100644 --- a/spec/classes/cli_plugins_spec.rb +++ b/spec/classes/cli_plugins_spec.rb @@ -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