set required parameters
A few additional params are now required. This commit sets them so that the tests pass.
This commit is contained in:
parent
29e06293c2
commit
fc30821d4e
@ -6,6 +6,10 @@ describe 'nova::api' do
|
||||
'include nova'
|
||||
end
|
||||
|
||||
let :params do
|
||||
{:admin_password => 'passw0rd'}
|
||||
end
|
||||
|
||||
describe 'on debian platforms' do
|
||||
let :facts do
|
||||
{ :osfamily => 'Debian' }
|
||||
@ -22,7 +26,7 @@ describe 'nova::api' do
|
||||
) }
|
||||
describe 'with enabled as true' do
|
||||
let :params do
|
||||
{:enabled => true}
|
||||
{:admin_password => 'passw0rd', :enabled => true}
|
||||
end
|
||||
it { should contain_service('nova-api').with(
|
||||
'name' => 'nova-api',
|
||||
@ -32,7 +36,7 @@ describe 'nova::api' do
|
||||
end
|
||||
describe 'with package version' do
|
||||
let :params do
|
||||
{:ensure_package => '2012.1-2'}
|
||||
{:admin_password => 'passw0rd', :ensure_package => '2012.1-2'}
|
||||
end
|
||||
it { should contain_package('nova-api').with(
|
||||
'ensure' => '2012.1-2'
|
||||
|
@ -4,6 +4,10 @@ describe 'nova::keystone::auth' do
|
||||
|
||||
describe 'with defaults' do
|
||||
|
||||
let :params do
|
||||
{:password => 'nova_password'}
|
||||
end
|
||||
|
||||
it { should contain_keystone_user('nova').with(
|
||||
:ensure => 'present',
|
||||
:password => 'nova_password'
|
||||
@ -61,7 +65,7 @@ describe 'nova::keystone::auth' do
|
||||
describe 'when setting auth name' do
|
||||
|
||||
let :params do
|
||||
{:auth_name => 'foo' }
|
||||
{:password => 'nova_password', :auth_name => 'foo' }
|
||||
end
|
||||
|
||||
it { should contain_keystone_user('foo').with(
|
||||
@ -112,6 +116,7 @@ describe 'nova::keystone::auth' do
|
||||
|
||||
let :params do
|
||||
{
|
||||
:password => 'nova_password',
|
||||
:public_address => '10.0.0.1',
|
||||
:admin_address => '10.0.0.2',
|
||||
:internal_address => '10.0.0.3',
|
||||
|
Loading…
Reference in New Issue
Block a user