1598196ae7
This allows Glance 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
27 lines
441 B
Ruby
27 lines
441 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'glance::db::postgresql' do
|
|
|
|
let :req_params do
|
|
{:password => 'pw'}
|
|
end
|
|
|
|
let :facts do
|
|
{
|
|
:postgres_default_version => '8.4',
|
|
:osfamily => 'RedHat',
|
|
}
|
|
end
|
|
|
|
describe 'with only required params' do
|
|
let :params do
|
|
req_params
|
|
end
|
|
it { should contain_postgresql__db('glance').with(
|
|
:user => 'glance',
|
|
:password => 'pw'
|
|
) }
|
|
end
|
|
|
|
end
|