Use correct section for host and port settings
The module configured the bind_host and bind_port as part of the api section, which does not exist in config reference. The correct section should be DEFAULT. With the setting being in api, the api service starts up with binding to host 127.0.0.1 instead of 0.0.0.0. Change-Id: I90218f65cc60c546c7ef43d9f5a464d9e7031431 Closes-Bug: 1650837
This commit is contained in:
		@@ -30,9 +30,9 @@ describe 'octavia::api' do
 | 
			
		||||
      )
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    it 'configures api' do
 | 
			
		||||
      is_expected.to contain_octavia_config('api/host').with_value( params[:host] )
 | 
			
		||||
      is_expected.to contain_octavia_config('api/port').with_value( params[:port] )
 | 
			
		||||
    it 'configures bind_host and bind_port' do
 | 
			
		||||
      is_expected.to contain_octavia_config('DEFAULT/host').with_value( params[:host] )
 | 
			
		||||
      is_expected.to contain_octavia_config('DEFAULT/port').with_value( params[:port] )
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    [{:enabled => true}, {:enabled => false}].each do |param_hash|
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user