fix test failures

make them work!
lazy tests, always want handouts :(
This commit is contained in:
Dan Bode 2012-11-02 11:12:39 -07:00
parent 6a06ea9684
commit 124ae530fc
9 changed files with 12 additions and 11 deletions

View File

@ -2,6 +2,7 @@ fixtures:
repositories: repositories:
"apt": "git://github.com/puppetlabs/puppetlabs-apt.git" "apt": "git://github.com/puppetlabs/puppetlabs-apt.git"
"keystone": "git://github.com/puppetlabs/puppetlabs-keystone.git" "keystone": "git://github.com/puppetlabs/puppetlabs-keystone.git"
"cinder": "git://github.com/puppetlabs/puppetlabs-cinder.git"
"mysql": "git://github.com/puppetlabs/puppetlabs-mysql.git" "mysql": "git://github.com/puppetlabs/puppetlabs-mysql.git"
"stdlib": "git://github.com/puppetlabs/puppetlabs-stdlib.git" "stdlib": "git://github.com/puppetlabs/puppetlabs-stdlib.git"
"sysctl": "git://github.com/duritong/puppet-sysctl.git" "sysctl": "git://github.com/duritong/puppet-sysctl.git"

View File

@ -104,6 +104,6 @@ describe 'nova::api' do
'ensure' => 'stopped', 'ensure' => 'stopped',
'enable' => false 'enable' => false
)} )}
it { should_not contain_package('nova-api') } it { should contain_package('nova-api').with_name('openstack-nova-api') }
end end
end end

View File

@ -48,6 +48,6 @@ describe 'nova::cert' do
'ensure' => 'stopped', 'ensure' => 'stopped',
'enable' => false 'enable' => false
)} )}
it { should_not contain_package('nova-cert') } it { should contain_package('nova-cert').with_name('openstack-nova-cert') }
end end
end end

View File

@ -82,7 +82,7 @@ describe 'nova::compute' do
'ensure' => 'stopped', 'ensure' => 'stopped',
'enable' => false 'enable' => false
)} )}
it { should_not contain_package('nova-compute') } it { should contain_package('nova-compute').with_name('openstack-nova-compute') }
end end
end end
end end

View File

@ -123,7 +123,7 @@ describe 'nova' do
{:osfamily => 'RedHat'} {:osfamily => 'RedHat'}
end end
it { should contain_package('nova-common').with( it { should contain_package('nova-common').with(
'name' => 'openstack-nova', 'name' => 'openstack-nova-common',
'ensure' => 'present' 'ensure' => 'present'
)} )}
it { should contain_nova_config('rootwrap_config').with_value('/etc/nova/rootwrap.conf') } it { should contain_nova_config('rootwrap_config').with_value('/etc/nova/rootwrap.conf') }

View File

@ -207,6 +207,6 @@ describe 'nova::network' do
'ensure' => 'stopped', 'ensure' => 'stopped',
'enable' => false 'enable' => false
)} )}
it { should_not contain_package('nova-network') } it { should contain_package('nova-network').with_name('openstack-nova-network') }
end end
end end

View File

@ -48,6 +48,6 @@ describe 'nova::objectstore' do
'ensure' => 'stopped', 'ensure' => 'stopped',
'enable' => false 'enable' => false
)} )}
it { should_not contain_package('nova-objectstore') } it { should contain_package('nova-objectstore').with('openstack-nova-objectstore') }
end end
end end

View File

@ -48,6 +48,6 @@ describe 'nova::scheduler' do
'ensure' => 'stopped', 'ensure' => 'stopped',
'enable' => false 'enable' => false
)} )}
it { should_not contain_package('nova-scheduler') } it { should contain_package('nova-scheduler').with_name('openstack-nova-scheduler') }
end end
end end

View File

@ -48,6 +48,6 @@ describe 'nova::volume' do
'ensure' => 'stopped', 'ensure' => 'stopped',
'enable' => false 'enable' => false
)} )}
it { should_not contain_package('nova-volume') } it { should contain_package('nova-volume').with_name('openstack-nova-volume') }
end end
end end