2012-03-16 17:45:06 +01:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'nova' do
|
|
|
|
let :facts do
|
|
|
|
{ :osfamily => 'Debian' }
|
2012-03-30 01:09:50 -07:00
|
|
|
end
|
2012-03-16 17:45:06 +01:00
|
|
|
|
|
|
|
it do
|
|
|
|
should contain_group('nova').with(
|
|
|
|
'ensure' => 'present',
|
|
|
|
'system' => 'true',
|
|
|
|
'require' => 'Package[nova-common]'
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
it do
|
|
|
|
should contain_user('nova').with(
|
|
|
|
'ensure' => 'present',
|
|
|
|
'gid' => 'nova',
|
|
|
|
'system' => 'true',
|
|
|
|
'require' => 'Package[nova-common]'
|
|
|
|
)
|
|
|
|
end
|
2012-03-30 01:09:50 -07:00
|
|
|
describe "When platform is RedHat" do
|
|
|
|
let :facts do
|
|
|
|
{:osfamily => 'RedHat'}
|
|
|
|
end
|
|
|
|
it { should contain_package('nova-common').with(
|
|
|
|
'name' => 'openstack-nova',
|
|
|
|
'ensure' => 'present'
|
|
|
|
)}
|
|
|
|
end
|
2012-03-16 17:45:06 +01:00
|
|
|
end
|