Skip to content

Commit 14ae15f

Browse files
committed
Add openbolt acceptance test
1 parent 9498e23 commit 14ae15f

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

examples/openbolt.pp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include foreman_proxy
2+
include foreman_proxy::plugin::openbolt

spec/acceptance/openbolt_spec.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
require 'spec_helper_acceptance'
2+
3+
describe 'Scenario: install foreman-proxy with openbolt plugin' do
4+
before(:context) { purge_foreman_proxy }
5+
6+
include_examples 'the example', 'openbolt.pp'
7+
8+
it_behaves_like 'the default foreman proxy application'
9+
10+
cert_dir = '/etc/foreman-proxy'
11+
describe curl_command("https://#{host_inventory['fqdn']}:8443/features", cacert: "#{cert_dir}/certificate.pem", cert: "#{cert_dir}/certificate.pem", key: "#{cert_dir}/key.pem") do
12+
its(:stdout) { should match('openbolt') }
13+
its(:exit_status) { should eq 0 }
14+
end
15+
end

0 commit comments

Comments
 (0)