
This allows Nova to be used with PostgreSQL. Requires the puppetlabs/postgresql module. NOTE: I did add this dependency to fixtures but did not add it to the Modulefile due to the fact that the postgresql::python module hasn't been released to puppetforge yet (although it is committed and tests pass). Change-Id: I3522d50935c81c8859c9f597df64aa0af6ca4e71
51 lines
931 B
Ruby
51 lines
931 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
|