ba835842ed5d2302cbfb3359f6bd61e1fdaf55fd
[mirror/dsa-puppet.git] / 3rdparty / modules / nova / spec / classes / nova_compute_serial_spec.rb
1 require 'spec_helper'
2 describe 'nova::compute::serial' do
3
4   it { should contain_nova_config('serial_console/enabled').with_value('true') }
5   it { should contain_nova_config('serial_console/port_range').with_value('10000:20000')}
6   it { should contain_nova_config('serial_console/base_url').with_value('ws://127.0.0.1:6083/')}
7   it { should contain_nova_config('serial_console/listen').with_value('127.0.0.1')}
8   it { should contain_nova_config('serial_console/proxyclient_address').with_value('127.0.0.1')}
9
10   context 'when overriding params' do
11     let :params do
12       {
13           :proxyclient_address => '10.10.10.10',
14           :listen              => '10.10.11.11',
15       }
16     end
17     it { should contain_nova_config('serial_console/proxyclient_address').with_value('10.10.10.10')}
18     it { should contain_nova_config('serial_console/listen').with_value('10.10.11.11')}
19   end
20
21 end