
Per Mitaka nova commit 8e8e839ef748be242fd0ad02e3ae233cc98da8b2 we now need to create and sync the 'nova_api' database. Closes-bug: #1539793 Co-Authored-By: Dan Prince <dprince@redhat.com> Co-Authored-By: Emilien Macchi <emilien@redhat.com> Change-Id: I234d2e9e219c6ea4235c3d3c5193b8924d6e6f8e
59 lines
1.3 KiB
Ruby
59 lines
1.3 KiB
Ruby
require 'spec_helper'
|
|
|
|
describe 'nova::db::postgresql_api' 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
|
|
@default_facts.merge({
|
|
: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 { is_expected.to contain_postgresql__server__db('nova_api').with(
|
|
:user => 'nova_api',
|
|
:password => 'md581802bf81b206888b50950e640d70549'
|
|
)}
|
|
end
|
|
|
|
end
|
|
|
|
context 'on a Debian osfamily' do
|
|
let :facts do
|
|
@default_facts.merge({
|
|
: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 { is_expected.to contain_postgresql__server__db('nova_api').with(
|
|
:user => 'nova_api',
|
|
:password => 'md581802bf81b206888b50950e640d70549'
|
|
)}
|
|
end
|
|
|
|
end
|
|
|
|
end
|