forked from cblument/puppetlabs-nova
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dan Bode
committed
Mar 31, 2012
1 parent
88b57a3
commit ce46fb1
Showing
2 changed files
with
167 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
require 'spec_helper' | ||
|
||
describe 'nova::cert' do | ||
|
||
let :pre_condition do | ||
'include nova' | ||
end | ||
|
||
describe 'on debian platforms' do | ||
let :facts do | ||
{ :osfamily => 'Debian' } | ||
end | ||
it { should contain_service('nova-cert').with( | ||
'name' => 'openstack-nova-cert', | ||
'ensure' => 'stopped', | ||
'enable' => false | ||
)} | ||
describe 'with enabled as true' do | ||
let :params do | ||
{:enabled => true} | ||
end | ||
it { should contain_service('nova-cert').with( | ||
'name' => 'openstack-nova-cert', | ||
'ensure' => 'running', | ||
'enable' => true | ||
)} | ||
end | ||
end | ||
describe 'on rhel' do | ||
let :facts do | ||
{ :osfamily => 'RedHat' } | ||
end | ||
it { should contain_service('nova-cert').with( | ||
'name' => 'openstack-nova-cert', | ||
'ensure' => 'stopped', | ||
'enable' => false | ||
)} | ||
it { should_not contain_package('nova-network') } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters