Merge "pxe: Validate apache resources"

This commit is contained in:
Zuul 2022-09-07 19:59:23 +00:00 committed by Gerrit Code Review
commit 940b9c9f61
1 changed files with 20 additions and 0 deletions

View File

@ -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