3 describe 'nova::vncproxy' do
13 describe 'on debian platforms' do
15 { :osfamily => 'Debian' }
18 it { should contain_package('python-numpy').with(
20 :name => 'python-numpy'
23 it { should contain_nova_config('DEFAULT/novncproxy_host').with(:value => '0.0.0.0') }
24 it { should contain_nova_config('DEFAULT/novncproxy_port').with(:value => '6080') }
25 it { should contain_nova_config('DEFAULT/novncproxy_base_url').with(:value => 'http://0.0.0.0:6080/vnc_auto.html') }
27 it { should contain_package('nova-vncproxy').with(
28 :name => 'nova-novncproxy',
31 it { should contain_service('nova-vncproxy').with(
32 :name => 'nova-novncproxy',
37 describe 'with manage_service as false' do
40 :manage_service => false
43 it { should contain_service('nova-vncproxy').without_ensure }
46 describe 'with package version' do
48 {:ensure_package => '2012.1-2'}
50 it { should contain_package('nova-vncproxy').with(
51 'ensure' => '2012.1-2'
57 describe 'on debian OS' do
59 { :osfamily => 'Debian', :operatingsystem => 'Debian' }
61 it { should contain_package('nova-vncproxy').with(
62 :name => "nova-consoleproxy",
65 it { should contain_service('nova-vncproxy').with(
66 :name => 'nova-novncproxy',
73 describe 'on Redhatish platforms' do
76 { :osfamily => 'Redhat' }
79 it { should contain_package('python-numpy').with(