Improve test coverage of virtlockd class

Change-Id: I4d430fe072deb86d0043e2fd5e23a8f5f612fc5b
(cherry picked from commit 9d6f46d1cf)
This commit is contained in:
Takashi Kajinami 2024-04-19 03:43:55 +09:00
parent 569e53a152
commit 1c2ab16556

View File

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