3 describe 'postgresql::server::contrib', :type => :class do
5 "class { 'postgresql::server': }"
10 :osfamily => 'Debian',
11 :operatingsystem => 'Debian',
12 :operatingsystemrelease => '6.0',
14 :concat_basedir => tmpfilename('contrib'),
16 :path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
20 describe 'with parameters' do
23 :package_name => 'mypackage',
24 :package_ensure => 'absent',
28 it 'should create package with correct params' do
29 is_expected.to contain_package('postgresql-contrib').with({
37 describe 'with no parameters' do
38 it 'should create package with postgresql tag' do
39 is_expected.to contain_package('postgresql-contrib').with({
45 describe 'on Gentoo' do
48 :osfamily => 'Gentoo',
49 :operatingsystem => 'Gentoo',
53 it 'should fail to compile' do
55 is_expected.to compile
56 }.to raise_error(/is not supported/)