Skip to content

Commit 8eebdc2

Browse files
committed
add rh_cloud acceptance test
1 parent dbfdc94 commit 8eebdc2

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
require 'spec_helper_acceptance'
2+
3+
describe 'Scenario: install foreman with rh_cloud', if: os[:family] == 'redhat' do
4+
before(:context) { purge_foreman }
5+
6+
it_behaves_like 'an idempotent resource' do
7+
let(:manifest) do
8+
<<-PUPPET
9+
yumrepo { 'katello':
10+
baseurl => "http://yum.theforeman.org/katello/nightly/katello/el${facts['os']['release']['major']}/x86_64/",
11+
gpgcheck => 0,
12+
}
13+
yumrepo { 'candlepin':
14+
baseurl => "https://yum.theforeman.org/candlepin/4.4/el${facts['os']['release']['major']}/x86_64/",
15+
gpgcheck => 0,
16+
}
17+
18+
include foreman
19+
include foreman::plugin::rh_cloud
20+
PUPPET
21+
end
22+
end
23+
24+
it_behaves_like 'the foreman application'
25+
end

0 commit comments

Comments
 (0)