3 describe 'postgresql::server::plpython', :type => :class do
7 :operatingsystem => 'CentOS',
8 :operatingsystemrelease => '6.0',
9 :concat_basedir => tmpfilename('plpython'),
12 :path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
18 "class { 'postgresql::server': }"
21 describe 'on RedHat with no parameters' do
22 it { is_expected.to contain_class("postgresql::server::plpython") }
23 it 'should create package' do
24 is_expected.to contain_package('postgresql-plpython').with({
31 describe 'with parameters' do
34 :package_ensure => 'absent',
35 :package_name => 'mypackage',
39 it { is_expected.to contain_class("postgresql::server::plpython") }
40 it 'should create package with correct params' do
41 is_expected.to contain_package('postgresql-plpython').with({