Skip to content

Commit

Permalink
add rh_cloud acceptance test
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Jan 23, 2025
1 parent 91aecde commit e9387e2
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ fixtures:
apache: 'https://github.com/puppetlabs/puppetlabs-apache'
apt: 'https://github.com/puppetlabs/puppetlabs-apt'
augeas_core: 'https://github.com/puppetlabs/puppetlabs-augeas_core'
certs:
repo: "https://github.com/ehelms/puppet-certs.git"
branch: "advisor-certs"
concat: 'https://github.com/puppetlabs/puppetlabs-concat'
cron_core: 'https://github.com/puppetlabs/puppetlabs-cron_core'
extlib: 'https://github.com/voxpupuli/puppet-extlib'
Expand Down
29 changes: 29 additions & 0 deletions spec/acceptance/foreman_rh_cloud_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
require 'spec_helper_acceptance'

describe 'Scenario: install foreman with rh_cloud', if: os[:family] == 'redhat' do
before(:context) { purge_foreman }

it_behaves_like 'an idempotent resource' do
let(:manifest) do
<<-PUPPET
yumrepo { 'katello':
baseurl => "http://yum.theforeman.org/katello/nightly/katello/el${facts['os']['release']['major']}/x86_64/",
gpgcheck => 0,
}
file { '/etc/foreman-proxy':
ensure => directory,
}
group { 'foreman-proxy':
ensure => present,
}
include foreman
include foreman::plugin::rh_cloud
PUPPET
end
end

it_behaves_like 'the foreman application'
end

0 comments on commit e9387e2

Please sign in to comment.