Improve test coverage of virtlockd class
Change-Id: I4d430fe072deb86d0043e2fd5e23a8f5f612fc5b
(cherry picked from commit 9d6f46d1cf
)
This commit is contained in:
parent
569e53a152
commit
1c2ab16556
@ -18,6 +18,8 @@ describe 'nova::compute::libvirt::virtlockd' do
|
||||
it { is_expected.to contain_virtlockd_config('log_filters').with_value('<SERVICE DEFAULT>').with_quote(true)}
|
||||
it { is_expected.to contain_virtlockd_config('max_clients').with_value('<SERVICE DEFAULT>')}
|
||||
it { is_expected.to contain_virtlockd_config('admin_max_clients').with_value('<SERVICE DEFAULT>')}
|
||||
it { is_expected.to contain_virtlockd_config('max_size').with_value('<SERVICE DEFAULT>')}
|
||||
it { is_expected.to contain_virtlockd_config('max_backups').with_value('<SERVICE DEFAULT>')}
|
||||
end
|
||||
|
||||
context 'with specified parameters' do
|
||||
@ -39,6 +41,8 @@ describe 'nova::compute::libvirt::virtlockd' do
|
||||
it { is_expected.to contain_virtlockd_config('log_filters').with_value(params[:log_filters]).with_quote(true)}
|
||||
it { is_expected.to contain_virtlockd_config('max_clients').with_value(params[:max_clients])}
|
||||
it { is_expected.to contain_virtlockd_config('admin_max_clients').with_value(params[:admin_max_clients])}
|
||||
it { is_expected.to contain_virtlockd_config('max_size').with_value(params[:max_size])}
|
||||
it { is_expected.to contain_virtlockd_config('max_backups').with_value(params[:max_backups])}
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user