Revision a3483baa
Added by Ewoud Kohl van Wijngaarden about 4 years ago
spec/classes/foreman_proxy__plugin__chef__spec.rb | ||
---|---|---|
it { should compile.with_all_deps }
|
||
|
||
it 'should call the plugin' do
|
||
should contain_foreman_proxy__plugin('chef')
|
||
should contain_foreman_proxy__plugin__module('chef').with_enabled(true).with_listen_on('https')
|
||
end
|
||
|
||
it 'should install configuration file' do
|
||
should contain_foreman_proxy__settings_file('chef').with_enabled(true).with_listen_on('https')
|
||
should contain_foreman_proxy__settings_file('chef')
|
||
verify_exact_contents(catalogue, '/etc/foreman-proxy/settings.d/chef.yml', [
|
||
'---',
|
||
':enabled: https',
|
||
... | ... | |
it { should compile.with_all_deps }
|
||
|
||
it 'should call the plugin' do
|
||
should contain_foreman_proxy__plugin('chef')
|
||
should contain_foreman_proxy__plugin__module('chef').with_enabled(false)
|
||
end
|
||
|
||
it 'should install configuration file' do
|
||
should contain_foreman_proxy__settings_file('chef').with_enabled(false)
|
||
should contain_file('/etc/foreman-proxy/settings.d/chef.yml').with_content(/:enabled: false/)
|
||
end
|
||
end
|
Also available in: Unified diff
Introduce foreman_proxy::plugin::module
This introduces a define for plugins that have a package and a config
file, which is most of them.