fuel-library/deployment/puppet/nova/spec/classes/nova_db_postgresql_spec.rb
Bogdan Dobrelya e2cbdd0649 Sync puppet-nova
109d4825e5cdd15aa529c1ef7bcccc05f6a78178 4.0.0

Partial blueprint merge-openstack-puppet-modules

Change-Id: I672620f149e4a63240144f0ce20e84b084cfd459
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2014-07-04 09:01:26 +03:00

51 lines
927 B
Ruby

require 'spec_helper'
describe 'nova::db::postgresql' do
let :required_params do
{ :password => "qwerty" }
end
context 'on a RedHat osfamily' do
let :facts do
{
:postgres_default_version => '8.4',
:osfamily => 'RedHat'
}
end
context 'with only required parameters' do
let :params do
required_params
end
it { should contain_postgresql__db('nova').with(
:user => 'nova',
:password => 'qwerty'
)}
end
end
context 'on a Debian osfamily' do
let :facts do
{
:postgres_default_version => '8.4',
:osfamily => 'Debian'
}
end
context 'with only required parameters' do
let :params do
required_params
end
it { should contain_postgresql__db('nova').with(
:user => 'nova',
:password => 'qwerty'
)}
end
end
end