Skip to content

Commit 57cccda

Browse files
committed
Add openbolt acceptance test
1 parent 9498e23 commit 57cccda

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

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 command("curl --cacert #{cert_dir}/certificate.pem --cert #{cert_dir}/certificate.pem --key #{cert_dir}/key.pem https://$(hostname -f):8443/features") do
12+
its(:stdout) { should match('openbolt') }
13+
its(:exit_status) { should eq 0 }
14+
end
15+
end

0 commit comments

Comments
 (0)