Revision 11612c87
Added by Ewoud Kohl van Wijngaarden about 7 years ago
spec/classes/foreman_config_passenger_spec.rb | ||
---|---|---|
|
||
it 'should include a http vhost' do
|
||
should contain_apache__vhost('foreman').
|
||
with({
|
||
:priority => '20',
|
||
:custom_fragment => /20-foreman\.d/,
|
||
}).
|
||
without({
|
||
:custom_fragment => /05-foreman\.d/,
|
||
})
|
||
with_priority(20).
|
||
with_additional_includes(["#{http_dir}/conf.d/20-foreman.d/*.conf"])
|
||
end
|
||
|
||
it 'should include a http ssl vhost' do
|
||
should contain_apache__vhost('foreman-ssl').
|
||
with({
|
||
:priority => '20',
|
||
:ssl => true,
|
||
:custom_fragment => /20-foreman-ssl\.d/,
|
||
}).
|
||
without({
|
||
:custom_fragment => /05-foreman-ssl\.d/,
|
||
})
|
||
with_priority(20).
|
||
with_ssl(true).
|
||
with_additional_includes(["#{http_dir}/conf.d/20-foreman-ssl.d/*.conf"])
|
||
end
|
||
end
|
||
|
Also available in: Unified diff
Use the vhost additional_includes parameter