File tree Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ #
2+ # @summary Install the OpenBolt plugin
3+ #
4+ # @see https://github.com/overlookinfra/foreman_openbolt
5+ #
6+ class foreman::plugin::openbolt {
7+ foreman::plugin { 'openbolt' :
8+ }
9+ }
Original file line number Diff line number Diff line change 1+ require 'spec_helper_acceptance'
2+
3+ describe 'Scenario: install foreman with openbolt' 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::openbolt
11+ PUPPET
12+ end
13+ end
14+
15+ it_behaves_like 'the foreman application'
16+
17+ describe command ( "curl --cacert /etc/foreman-certs/certificate.pem --user admin:changeme https://$(hostname -f)/api/plugins | jq -r .results[].id | grep foreman_openbolt" ) do
18+ its ( :stdout ) { should match ( 'foreman_openbolt' ) }
19+ its ( :exit_status ) { should eq 0 }
20+ end
21+ end
Original file line number Diff line number Diff line change 1+ require 'spec_helper'
2+
3+ describe 'foreman::plugin::openbolt' do
4+ include_examples 'basic foreman plugin tests' , 'openbolt'
5+ end
You can’t perform that action at this time.
0 commit comments