Add api_handler option
Add the ability to configure the handler that the API communicates with. Change-Id: I2afb1b31e94f7a25942c2cbd05f71ee6328a1909
This commit is contained in:
@@ -17,6 +17,7 @@ describe 'octavia::api' do
|
||||
:package_ensure => 'latest',
|
||||
:port => '9876',
|
||||
:host => '0.0.0.0',
|
||||
:api_handler => 'queue_producer',
|
||||
}
|
||||
end
|
||||
|
||||
@@ -43,6 +44,7 @@ describe 'octavia::api' do
|
||||
is_expected.to contain_octavia_config('api_settings/bind_host').with_value( '0.0.0.0' )
|
||||
is_expected.to contain_octavia_config('api_settings/bind_port').with_value( '9876' )
|
||||
is_expected.to contain_octavia_config('api_settings/auth_strategy').with_value( 'keystone' )
|
||||
is_expected.to contain_octavia_config('api_settings/api_handler').with_value('<SERVICE DEFAULT>')
|
||||
end
|
||||
it 'does not sync the database' do
|
||||
is_expected.not_to contain_class('octavia::db::sync')
|
||||
@@ -52,6 +54,7 @@ describe 'octavia::api' do
|
||||
it 'configures bind_host and bind_port' do
|
||||
is_expected.to contain_octavia_config('api_settings/bind_host').with_value( params[:host] )
|
||||
is_expected.to contain_octavia_config('api_settings/bind_port').with_value( params[:port] )
|
||||
is_expected.to contain_octavia_config('api_settings/api_handler').with_value( params[:api_handler] )
|
||||
end
|
||||
|
||||
[{:enabled => true}, {:enabled => false}].each do |param_hash|
|
||||
|
||||
Reference in New Issue
Block a user