Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/openbolt.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include foreman_proxy
include foreman_proxy::plugin::openbolt
11 changes: 11 additions & 0 deletions spec/acceptance/openbolt_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require 'spec_helper_acceptance'

describe 'Scenario: install foreman-proxy with openbolt plugin' do
before(:context) { purge_foreman_proxy }

include_examples 'the example', 'openbolt.pp'

it_behaves_like 'the default foreman proxy application'

it_behaves_like 'the exposed feature', 'openbolt'
end
10 changes: 10 additions & 0 deletions spec/support/acceptance/examples.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,13 @@
it { is_expected.to be_listening }
end
end

shared_examples 'the exposed feature' do |feature|
let(:feature) { feature }

cert_dir = '/etc/foreman-proxy'
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
its(:stdout) { should include(feature) }
its(:exit_status) { should eq 0 }
end
end
Loading