56ed62171fc9f43d835f0b2995df9c4b21acf5be
[mirror/dsa-puppet.git] / 3rdparty / modules / nova / spec / classes / nova_compute_spice_spec.rb
1 require 'spec_helper'
2 describe 'nova::compute::spice' do
3
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)}
9
10   context 'when overriding params' do
11     let :params do
12       {
13           :proxy_host    => '10.10.10.10',
14           :server_listen => '10.10.11.11',
15           :agent_enabled => false
16       }
17     end
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')}
21   end
22
23 end