puppet-keystone/spec/classes/keystone_db_postgresql_spec.rb
Dan Prince 4821c6420d Add tests on keystone:db::postgresql.
Adds missing tests on the keystone::db::postgresql class. Also,
removes some unsupported options from the class.

Change-Id: Ifab6d06dcd388df07cc9cc06bb8e938d3af90c62
2013-04-23 12:41:06 -04:00

27 lines
453 B
Ruby

require 'spec_helper'
describe 'keystone::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('keystone').with(
:user => 'keystone_admin',
:password => 'pw'
) }
end
end