puppet-neutron/spec/classes/neutron_db_postgresql_spec.rb
Sebastien Badia 829cfb0bd8 db: Added postgresql backend using openstacklib helper
Standardize neutron module, and add postgresql backend.

Change-Id: I2dcfa1075b6f23680357f2056731d481b97792d9
Implements: blueprint commmon-openstack-database-resource
2014-12-30 22:10:44 +01:00

59 lines
1.2 KiB
Ruby

require 'spec_helper'
describe 'neutron::db::postgresql' do
let :req_params do
{ :password => 'pw' }
end
let :pre_condition do
'include postgresql::server'
end
context 'on a RedHat osfamily' do
let :facts do
{
:osfamily => 'RedHat',
:operatingsystemrelease => '7.0',
:concat_basedir => '/var/lib/puppet/concat'
}
end
context 'with only required parameters' do
let :params do
req_params
end
it { should contain_postgresql__server__db('neutron').with(
:user => 'neutron',
:password => 'md5696acd1dd66513a556a18a1beccd03d1'
)}
end
end
context 'on a Debian osfamily' do
let :facts do
{
:operatingsystemrelease => '7.8',
:operatingsystem => 'Debian',
:osfamily => 'Debian',
:concat_basedir => '/var/lib/puppet/concat'
}
end
context 'with only required parameters' do
let :params do
req_params
end
it { should contain_postgresql__server__db('neutron').with(
:user => 'neutron',
:password => 'md5696acd1dd66513a556a18a1beccd03d1'
)}
end
end
end