Files
puppet-nova/spec/classes/nova_vnc_proxy_spec.rb
Derek Higgins f7830b7684 Set hasstatus => true for nova services
Fix bug 1170671

notifies to nova services on RHEL were not causing a restart of the service

Change-Id: I5fc91e1c519425e96677796d9de5222ab9d7f105
2013-04-19 09:02:03 -04:00

77 lines
1.7 KiB
Ruby

require 'spec_helper'
describe 'nova::vncproxy' do
let :pre_condition do
'include nova'
end
let :params do
{:enabled => true}
end
describe 'on debian platforms' do
let :facts do
{ :osfamily => 'Debian' }
end
it { should contain_package('python-numpy').with(
:ensure => 'present',
:name => 'python-numpy'
)}
it { should contain_nova_config('DEFAULT/novncproxy_host').with(:value => '0.0.0.0') }
it { should contain_nova_config('DEFAULT/novncproxy_port').with(:value => '6080') }
it { should contain_package('nova-vncproxy').with(
:name => ["novnc", "nova-novncproxy"],
:ensure => 'present'
) }
it { should contain_service('nova-vncproxy').with(
:name => 'nova-novncproxy',
:hasstatus => 'true',
:ensure => 'running'
)}
describe 'with package version' do
let :params do
{:ensure_package => '2012.1-2'}
end
it { should contain_package('nova-vncproxy').with(
'ensure' => '2012.1-2'
)}
end
end
describe 'on debian OS' do
let :facts do
{ :osfamily => 'Debian', :operatingsystem => 'Debian' }
end
it { should contain_package('nova-vncproxy').with(
:name => "novnc",
:ensure => 'present'
)}
it { should contain_service('nova-vncproxy').with(
:name => 'novnc',
:hasstatus => 'true',
:ensure => 'running'
)}
end
describe 'on Redhatish platforms' do
let :facts do
{ :osfamily => 'Redhat' }
end
it { should contain_package('python-numpy').with(
:name => 'numpy',
:ensure => 'present'
)}
end
end