Assert libvirt-guest environment file
... to improve unit test coverage. Change-Id: I1657d3beedcfb0d8c694472c10195699a7e83ed9
This commit is contained in:
parent
08312cd7f3
commit
1c5a3ce275
@ -8,6 +8,11 @@ describe 'nova::compute::libvirt_guests' do
|
||||
|
||||
it { is_expected.to contain_class('nova::params')}
|
||||
|
||||
it { is_expected.to contain_file(platform_params[:libvirt_guests_environment_file]).with(
|
||||
:ensure => 'present',
|
||||
:path => platform_params[:libvirt_guests_environment_file],
|
||||
:tag => 'libvirt-guests-file'
|
||||
)}
|
||||
it { is_expected.to contain_file_line('libvirt-guests ON_BOOT').with(
|
||||
:path => platform_params[:libvirt_guests_environment_file],
|
||||
:line => 'ON_BOOT=ignore',
|
||||
@ -79,6 +84,11 @@ describe 'nova::compute::libvirt_guests' do
|
||||
}
|
||||
end
|
||||
|
||||
it { is_expected.to contain_file(platform_params[:libvirt_guests_environment_file]).with(
|
||||
:ensure => 'present',
|
||||
:path => platform_params[:libvirt_guests_environment_file],
|
||||
:tag => 'libvirt-guests-file'
|
||||
)}
|
||||
it { is_expected.to contain_file_line('libvirt-guests ON_BOOT').with(
|
||||
:path => platform_params[:libvirt_guests_environment_file],
|
||||
:line => 'ON_BOOT=start',
|
||||
|
Loading…
Reference in New Issue
Block a user