Skip to content

Commit

Permalink
Add acceptance tests for all hammer cli plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Feb 17, 2023
1 parent 4ea5e55 commit f32405c
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions spec/acceptance/foreman_cli_plugins_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ class { 'foreman::cli':
if $facts['os']['family'] == 'RedHat' {
include foreman::cli::azure
include foreman::cli::kubevirt
include foreman::cli::openscap
}
include foreman::cli::ansible
include foreman::cli::discovery
Expand Down Expand Up @@ -46,6 +48,14 @@ class { 'foreman::cli':
it { is_expected.to be_installed }
end
end

if fact('os.family') == 'RedHat'
['azure_rm', 'kubevirt', 'openscap'].each do |plugin|
describe package("rubygem-hammer_cli_foreman_#{plugin}") do
it { is_expected.to be_installed }
end
end
end
end

if fact('os.family') == 'RedHat'
Expand Down Expand Up @@ -73,6 +83,7 @@ class { 'foreman::cli':
}
include foreman::cli::katello
include foreman::cli::virt_who_configure
Yumrepo['katello'] -> Class['foreman::cli::katello']
PUPPET
Expand All @@ -81,9 +92,10 @@ class { 'foreman::cli':

it_behaves_like 'hammer'

package_name = "rubygem-hammer_cli_katello"
describe package(package_name) do
it { is_expected.to be_installed }
['katello', 'foreman_virt_who_configure'].each do |plugin|
describe package("rubygem-hammer_cli_#{plugin}") do
it { is_expected.to be_installed }
end
end
end
end
Expand Down

0 comments on commit f32405c

Please sign in to comment.