2013-07-30 01:57:22 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2013-08-27 22:43:47 +02:00
|
|
|
describe 'postgresql::server::config_entry', :type => :define do
|
2013-07-30 01:57:22 +02:00
|
|
|
let :facts do
|
|
|
|
{
|
|
|
|
:osfamily => 'RedHat',
|
2013-08-27 22:43:47 +02:00
|
|
|
:operatingsystem => 'RedHat',
|
|
|
|
:operatingsystemrelease => '6.4',
|
2013-07-30 01:57:22 +02:00
|
|
|
}
|
|
|
|
end
|
2013-08-27 22:43:47 +02:00
|
|
|
|
2013-07-30 01:57:22 +02:00
|
|
|
let(:title) { 'config_entry'}
|
2013-08-27 22:43:47 +02:00
|
|
|
|
2013-07-30 01:57:22 +02:00
|
|
|
let :target do
|
|
|
|
tmpfilename('postgresql_conf')
|
|
|
|
end
|
2013-08-27 22:43:47 +02:00
|
|
|
|
2013-07-30 01:57:22 +02:00
|
|
|
context "syntax check" do
|
|
|
|
let(:params) { { :ensure => 'present'} }
|
2013-08-27 22:43:47 +02:00
|
|
|
it { should contain_postgresql__server__config_entry('config_entry') }
|
2013-07-30 01:57:22 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|