From 9c94c61921e8aae60f27aee99fb1d8b2837e60af Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 7 Oct 2024 10:19:37 +0900 Subject: [PATCH] Fix ignored unit test cases Change-Id: I8f9221df0b3fdeb7a1a86e4b827f98728529d79e (cherry picked from commit df28e3d907edc7b4fe42ce514e325e03fe26cba4) (cherry picked from commit aef1a3490c153d6dd38f796887c995dd8bfc0bbb) --- spec/classes/neutron_init_spec.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/classes/neutron_init_spec.rb b/spec/classes/neutron_init_spec.rb index 466a42ffe..8f2844d7e 100644 --- a/spec/classes/neutron_init_spec.rb +++ b/spec/classes/neutron_init_spec.rb @@ -23,6 +23,8 @@ describe 'neutron' do it_behaves_like 'with SSL socket options set' it_behaves_like 'with SSL socket options set with wrong parameters' it_behaves_like 'with SSL socket options left by default' + it_behaves_like 'with SSL socket options set and no ca_file' + it_behaves_like 'with SSL socket options disabled but ca_file' it_behaves_like 'without service_plugins' it_behaves_like 'with service_plugins' it_behaves_like 'with host defined' @@ -207,10 +209,10 @@ describe 'neutron' do it { should contain_neutron_config('DEFAULT/use_ssl').with_value('true') } it { should contain_neutron_config('ssl/cert_file').with_value('/path/to/cert') } it { should contain_neutron_config('ssl/key_file').with_value('/path/to/key') } - it { should contain_neutron_config('ssl/ca_file').with_ensure('absent') } + it { should contain_neutron_config('ssl/ca_file').with_value('') } end - shared_examples 'with SSL socket options disabled with ca_file' do + shared_examples 'with SSL socket options disabled but ca_file' do before do params.merge!( :use_ssl => false,