Skip to content

Commit 3f8d26d

Browse files
bastelfreakehelms
authored andcommitted
Add acceptance test for HDM
This is a test for our HDM plugin: https://github.com/betadots/foreman_hdm
1 parent e04bc56 commit 3f8d26d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
require 'spec_helper_acceptance'
2+
3+
describe 'Scenario: install foreman with hdm' do
4+
before(:context) { purge_foreman }
5+
6+
it_behaves_like 'an idempotent resource' do
7+
let(:manifest) do
8+
<<-PUPPET
9+
include foreman
10+
include foreman::plugin::hdm
11+
PUPPET
12+
end
13+
end
14+
15+
it_behaves_like 'the foreman application'
16+
describe curl_command("https://admin:changeme@#{host_inventory['fqdn']}/api/plugins", cacert: '/etc/foreman-certs/certificate.pem') do
17+
its(:stdout) { should include('foreman_hdm') }
18+
its(:exit_status) { should eq 0 }
19+
end
20+
end

0 commit comments

Comments
 (0)