
Defaults to ::processorcount Also reseting puppet 2.6 compat in spec/classes/nova_db_postgresql_spec.rb so that unit tests pass, it looks like our 2.6 unit test runner is using puppet 2.7 Change-Id: I521679ce497a6d9f39a88a6e1d16d5a4ca67255a
51 lines
927 B
Ruby
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
|