Merge "aph/api_cfn: Clear the related parameters when ssl is disabled"

This commit is contained in:
Zuul
2021-11-12 12:21:25 +00:00
committed by Gerrit Code Review
4 changed files with 14 additions and 0 deletions

View File

@@ -133,5 +133,10 @@ running as a standalone service, or httpd for being run by a httpd server")
'heat_api/cert_file': value => $cert_file;
'heat_api/key_file': value => $key_file;
}
} else {
heat_config {
'heat_api/cert_file': value => $::os_service_default;
'heat_api/key_file': value => $::os_service_default;
}
}
}

View File

@@ -136,6 +136,11 @@ running as a standalone service, or httpd for being run by a httpd server")
'heat_api_cfn/cert_file': value => $cert_file;
'heat_api_cfn/key_file': value => $key_file;
}
} else {
heat_config {
'heat_api_cfn/cert_file': value => $::os_service_default;
'heat_api_cfn/key_file': value => $::os_service_default;
}
}
}

View File

@@ -27,6 +27,8 @@ describe 'heat::api_cfn' do
it { is_expected.to contain_heat_config('heat_api_cfn/bind_port').with_value( params[:bind_port] ) }
it { is_expected.to contain_heat_config('heat_api_cfn/workers').with_value( params[:workers] ) }
it { is_expected.to contain_heat_config('heat_api_cfn/cert_file').with_value('<SERVICE DEFAULT>') }
it { is_expected.to contain_heat_config('heat_api_cfn/key_file').with_value('<SERVICE DEFAULT>') }
end
context 'with SSL socket options set' do

View File

@@ -27,6 +27,8 @@ describe 'heat::api' do
it { is_expected.to contain_heat_config('heat_api/bind_port').with_value( params[:bind_port] ) }
it { is_expected.to contain_heat_config('heat_api/workers').with_value( params[:workers] ) }
it { is_expected.to contain_heat_config('heat_api/cert_file').with_value('<SERVICE DEFAULT>') }
it { is_expected.to contain_heat_config('heat_api/key_file').with_value('<SERVICE DEFAULT>') }
end
context 'with SSL socket options set' do