
This patch aim to update our specs test in order to work with the rspec-puppet release 2.0.0, in the mean time, we update rspec syntax order to be prepared for rspec 3.x move. In details: * Upgrade and pin rspec-puppet from 1.0.1 to 2.0.0 * Use shared_examples "a Puppet::Error" for puppet::error tests * * Convert 'should' keyword to 'is_expected.to' (prepare rspec 3.x) * * Fix spec tests for rspec-puppet 2.0.0 * Clean Gemfile (remove over-specificication of runtime deps of puppetlabs_spec_helper) Change-Id: I172439c6ed185bb38b325b2524cab1475cdc7504
24 lines
1006 B
Ruby
24 lines
1006 B
Ruby
require 'spec_helper'
|
|
describe 'nova::compute::spice' do
|
|
|
|
it { is_expected.to contain_nova_config('spice/enabled').with_value('true')}
|
|
it { is_expected.to contain_nova_config('spice/agent_enabled').with_value('true')}
|
|
it { is_expected.to contain_nova_config('spice/server_proxyclient_address').with_value('127.0.0.1')}
|
|
it { is_expected.to_not contain_nova_config('spice/html5proxy_base_url')}
|
|
it { is_expected.to 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 { is_expected.to contain_nova_config('spice/html5proxy_base_url').with_value('http://10.10.10.10:6082/spice_auto.html')}
|
|
it { is_expected.to contain_nova_config('spice/server_listen').with_value('10.10.11.11')}
|
|
it { is_expected.to contain_nova_config('spice/agent_enabled').with_value('false')}
|
|
end
|
|
|
|
end
|