X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=3rdparty%2Fmodules%2Fnova%2Fspec%2Fclasses%2Fnova_compute_spice_spec.rb;fp=3rdparty%2Fmodules%2Fnova%2Fspec%2Fclasses%2Fnova_compute_spice_spec.rb;h=56ed62171fc9f43d835f0b2995df9c4b21acf5be;hb=4631045ebb77ee8622f6fa09277a50c372bcc02e;hp=0000000000000000000000000000000000000000;hpb=3d4dc4fd9e59bd0e07646c99f6b356c7d9d859aa;p=dsa-puppet.git diff --git a/3rdparty/modules/nova/spec/classes/nova_compute_spice_spec.rb b/3rdparty/modules/nova/spec/classes/nova_compute_spice_spec.rb new file mode 100644 index 00000000..56ed6217 --- /dev/null +++ b/3rdparty/modules/nova/spec/classes/nova_compute_spice_spec.rb @@ -0,0 +1,23 @@ +require 'spec_helper' +describe 'nova::compute::spice' do + + it { should contain_nova_config('spice/enabled').with_value('true')} + it { should contain_nova_config('spice/agent_enabled').with_value('true')} + it { should contain_nova_config('spice/server_proxyclient_address').with_value('127.0.0.1')} + it { should_not contain_nova_config('spice/html5proxy_base_url')} + it { should contain_nova_config('spice/server_listen').with_value(nil)} + + context 'when overriding params' do + let :params do + { + :proxy_host => '10.10.10.10', + :server_listen => '10.10.11.11', + :agent_enabled => false + } + end + it { should contain_nova_config('spice/html5proxy_base_url').with_value('http://10.10.10.10:6082/spice_auto.html')} + it { should contain_nova_config('spice/server_listen').with_value('10.10.11.11')} + it { should contain_nova_config('spice/agent_enabled').with_value('false')} + end + +end