Add missing test coverage for [DEFAULT] options

Change-Id: Icb6676ce62c800d60305a11045489da24970c9ce
This commit is contained in:
Takashi Kajinami 2024-05-13 00:08:16 +09:00
parent acd3bfc2c4
commit 68d7e909b0
2 changed files with 5 additions and 3 deletions

View File

@ -66,7 +66,7 @@ describe 'heat::engine' do
:convergence_engine => false,
:environment_dir => '/etc/heat/environment.d',
:template_dir => '/etc/heat/templates',
:client_retry_limit => 2,
:max_nested_stack_depth => 3,
:server_keystone_endpoint_type => 'public',
:deferred_auth_method => 'trusts',
}
@ -126,8 +126,8 @@ describe 'heat::engine' do
it { is_expected.to contain_heat_config('DEFAULT/convergence_engine').with_value( expected_params[:convergence_engine] ) }
it { is_expected.to contain_heat_config('DEFAULT/environment_dir').with_value( expected_params[:environment_dir] ) }
it { is_expected.to contain_heat_config('DEFAULT/template_dir').with_value( expected_params[:template_dir] ) }
it { is_expected.to contain_heat_config('DEFAULT/plugin_dirs').with_value('<SERVICE DEFAULT>') }
it { is_expected.to contain_heat_config('DEFAULT/client_retry_limit').with_value( expected_params[:client_retry_limit] ) }
it { is_expected.to contain_heat_config('DEFAULT/max_nested_stack_depth').with_value( expected_params[:max_nested_stack_depth] ) }
it { is_expected.to contain_heat_config('DEFAULT/plugin_dirs').with_value(expected_params[:plugin_dirs]) }
it { is_expected.to contain_heat_config('DEFAULT/server_keystone_endpoint_type').with_value( expected_params[:server_keystone_endpoint_type] ) }
it { is_expected.to contain_heat_config('DEFAULT/deferred_auth_method').with_value( expected_params[:deferred_auth_method] ) }
end

View File

@ -40,6 +40,8 @@ describe 'heat' do
it_configures 'with SSL enabled with kombu'
it_configures 'with SSL enabled without kombu'
it_configures 'with SSL disabled'
it_configures 'with region_name set'
it_configures 'without region_name set'
it_configures 'with enable_stack_adopt and enable_stack_abandon set'
it_configures 'with overridden messaging default parameters'
it_configures 'with notification_driver set to a string'