Merge "pxe: Validate apache resources"
This commit is contained in:
commit
940b9c9f61
|
@ -113,6 +113,16 @@ describe 'ironic::pxe' do
|
|||
)
|
||||
end
|
||||
|
||||
it 'should configure http server' do
|
||||
is_expected.to contain_class('apache')
|
||||
is_expected.to contain_apache__vhost('ipxe_vhost').with(
|
||||
:priority => 10,
|
||||
:options => ['Indexes','FollowSymLinks'],
|
||||
:docroot => '/httpboot',
|
||||
:port => 8088
|
||||
)
|
||||
end
|
||||
|
||||
context 'when overriding parameters' do
|
||||
before :each do
|
||||
params.merge!(
|
||||
|
@ -188,6 +198,16 @@ describe 'ironic::pxe' do
|
|||
'backup' => false,
|
||||
)
|
||||
end
|
||||
|
||||
it 'should configure http server' do
|
||||
is_expected.to contain_class('apache')
|
||||
is_expected.to contain_apache__vhost('ipxe_vhost').with(
|
||||
:priority => 10,
|
||||
:options => ['Indexes','FollowSymLinks'],
|
||||
:docroot => '/var/www/httpboot',
|
||||
:port => 3816,
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
context 'when excluding syslinux' do
|
||||
|
|
Loading…
Reference in New Issue