Files
puppet-sahara/spec/classes/sahara_db_postgresql_spec.rb
Sebastien Badia a0f14ef9dd Rewrite puppet-sahara from scratch
During the Kilo summit, we talked about the state of the current
puppet-sahara module on stackforge, and especially about the brought up parity with
other modules.

For theses reasons, the rewrite was launched/leaded by Robbie Harwood,
but directly coded on Github (and not in a feature branch in this
repository), for this reason, this patch is non-atomic, and import the
latest frozencemetery/puppet-sahara version¹.

This rewrite/import was approved on puppet-openstack mailing list
(following this thread²).

The «reset» of the stackforge repo was discussed (in order to keep the history
of Robbie module) on #openstack-infra, but it seems we have no simple solution.

¹05af265b15
²https://groups.google.com/a/puppetlabs.com/forum/#!topic/puppet-openstack/0BETdNvrd70

Co-Authored-By: Robbie Harwood <rharwood@redhat.com>
Change-Id: Ic3dd7547fdfcba275d8a8b90b8ba84bc3ce1d7c0
2015-02-05 20:40:12 +01:00

27 lines
480 B
Ruby

require 'spec_helper'
describe 'sahara::db::postgresql' do
let :req_params do
{:password => 'pw'}
end
let :facts do
{
:operatingsystemrelease => '6.5',
:osfamily => 'RedHat',
}
end
describe 'with only required params' do
let :params do
req_params
end
it { should contain_postgresql__server__db('sahara').with(
:user => 'sahara',
:password => 'md59b1dd0cc439677764ef5a848112ef0ab'
) }
end
end