3 describe 'postgresql::globals', type: :class do
4 context 'on a debian 6' do
14 :osfamily => 'Debian',
15 :operatingsystem => 'Debian',
16 :operatingsystemrelease => '6.0',
17 :lsbdistid => 'Debian',
18 :lsbdistcodename => 'squeeze'
22 describe 'with no parameters' do
24 is_expected.to contain_class('postgresql::globals')
28 describe 'manage_package_repo => true' do
31 manage_package_repo: true
34 it 'should pull in class postgresql::repo' do
35 is_expected.to contain_class('postgresql::repo')
40 context 'on redhat family systems' do
44 operatingsystem: 'RedHat',
45 operatingsystemrelease: '7.1'
48 describe 'with no parameters' do
50 is_expected.to contain_class('postgresql::globals')
54 describe 'manage_package_repo on RHEL => true' do
57 manage_package_repo: true,
58 repo_proxy: 'http://proxy-server:8080'
62 it 'should pull in class postgresql::repo' do
63 is_expected.to contain_class('postgresql::repo')
67 should contain_yumrepo('yum.postgresql.org').with(
69 'proxy' => 'http://proxy-server:8080'
74 describe 'repo_baseurl on RHEL => mirror.localrepo.com' do
77 manage_package_repo: true,
78 repo_baseurl: 'http://mirror.localrepo.com'
82 it 'should pull in class postgresql::repo' do
83 is_expected.to contain_class('postgresql::repo')
87 should contain_yumrepo('yum.postgresql.org').with(
89 'baseurl' => 'http://mirror.localrepo.com'