improve global test coverage

closes #105
This commit is contained in:
Gonéri Le Bouder 2014-01-28 17:50:58 +01:00
parent 6fa538c4af
commit 6fff20c08c
3 changed files with 8 additions and 4 deletions

View File

@ -242,9 +242,13 @@ class cloud::database::sql (
group => 'root';
}
# Hack for Debian. The puppet-xinetd module do not correctly reload
# the configuration on “notify”
# TODO(Gonéri): remove this once https://github.com/puppetlabs/puppetlabs-xinetd/pull/9
# get merged
exec{ 'reload_xinetd':
command => '/usr/bin/pkill -F /var/run/xinetd.pid --signal HUP',
refreshonly => true,
command => '/usr/bin/pkill -F /var/run/xinetd.pid --signal HUP',
refreshonly => true,
}

View File

@ -82,7 +82,7 @@ describe 'cloud::database::sql' do
it { should contain_file_line('mysqlchk-in-etc-services').with(
:line => 'mysqlchk 9200/tcp',
:path => '/etc/services',
:notify => 'Service[xinetd]'
:notify => ['Service[xinetd]', 'Exec[reload_xinetd]']
)}
it { should contain_file('/etc/xinetd.d/mysqlchk').with_mode('0755') }

View File

@ -78,7 +78,7 @@ describe 'cloud::image' do
it 'configure glance rbd backend' do
should contain_class('glance::backend::rbd').with(
:rbd_store_pool => 'ceph_glance',
:rbd_store_pool => 'images',
:rbd_store_user => 'glance'
)
end