
Configure the serial proxy feature recently added in Juno There's no built in way in openstack to test this. to check the patch you'll need this utility: https://github.com/larsks/novaconsole/ Change-Id: I593ebb0f4ce8cae00671230022516f9bbcbe4e9a
22 lines
888 B
Ruby
22 lines
888 B
Ruby
require 'spec_helper'
|
|
describe 'nova::compute::serial' do
|
|
|
|
it { should contain_nova_config('serial_console/enabled').with_value('true') }
|
|
it { should contain_nova_config('serial_console/port_range').with_value('10000:20000')}
|
|
it { should contain_nova_config('serial_console/base_url').with_value('ws://127.0.0.1:6083/')}
|
|
it { should contain_nova_config('serial_console/listen').with_value('127.0.0.1')}
|
|
it { should contain_nova_config('serial_console/proxyclient_address').with_value('127.0.0.1')}
|
|
|
|
context 'when overriding params' do
|
|
let :params do
|
|
{
|
|
:proxyclient_address => '10.10.10.10',
|
|
:listen => '10.10.11.11',
|
|
}
|
|
end
|
|
it { should contain_nova_config('serial_console/proxyclient_address').with_value('10.10.10.10')}
|
|
it { should contain_nova_config('serial_console/listen').with_value('10.10.11.11')}
|
|
end
|
|
|
|
end
|