3 describe 'postgresql::client', :type => :class do
7 :operatingsystem => 'Debian',
8 :operatingsystemrelease => '6.0',
12 describe 'with parameters' do
15 :validcon_script_path => '/opt/bin/my-validate-con.sh',
16 :package_ensure => 'absent',
17 :package_name => 'mypackage',
18 :file_ensure => 'file'
22 it 'should modify package' do
23 is_expected.to contain_package("postgresql-client").with({
30 it 'should have specified validate connexion' do
31 should contain_file('/opt/bin/my-validate-con.sh').with({
40 describe 'with no parameters' do
41 it 'should create package with postgresql tag' do
42 is_expected.to contain_package('postgresql-client').with({
48 describe 'with client package name explicitly set undef' do
51 :package_name => 'UNSET'
54 it 'should not manage postgresql-client package' do
55 is_expected.not_to contain_package('postgresql-client')