2 describe 'nova::compute::spice' do
4 it { should contain_nova_config('spice/enabled').with_value('true')}
5 it { should contain_nova_config('spice/agent_enabled').with_value('true')}
6 it { should contain_nova_config('spice/server_proxyclient_address').with_value('127.0.0.1')}
7 it { should_not contain_nova_config('spice/html5proxy_base_url')}
8 it { should contain_nova_config('spice/server_listen').with_value(nil)}
10 context 'when overriding params' do
13 :proxy_host => '10.10.10.10',
14 :server_listen => '10.10.11.11',
15 :agent_enabled => false
18 it { should contain_nova_config('spice/html5proxy_base_url').with_value('http://10.10.10.10:6082/spice_auto.html')}
19 it { should contain_nova_config('spice/server_listen').with_value('10.10.11.11')}
20 it { should contain_nova_config('spice/agent_enabled').with_value('false')}