2014-04-02 23:52:07 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'postgresql::lib::perl', :type => :class do
|
|
|
|
|
|
|
|
describe 'on a redhat based os' do
|
|
|
|
let :facts do {
|
|
|
|
:osfamily => 'RedHat',
|
|
|
|
:operatingsystem => 'RedHat',
|
|
|
|
:operatingsystemrelease => '6.4',
|
|
|
|
}
|
|
|
|
end
|
2014-07-09 18:04:43 +02:00
|
|
|
it { is_expected.to contain_package('perl-DBD-Pg').with(
|
2014-04-02 23:52:07 +02:00
|
|
|
:name => 'perl-DBD-Pg',
|
|
|
|
:ensure => 'present'
|
|
|
|
)}
|
|
|
|
end
|
|
|
|
|
|
|
|
describe 'on a debian based os' do
|
|
|
|
let :facts do {
|
|
|
|
:osfamily => 'Debian',
|
|
|
|
:operatingsystem => 'Debian',
|
|
|
|
:operatingsystemrelease => '6.0',
|
|
|
|
}
|
|
|
|
end
|
2014-07-09 18:04:43 +02:00
|
|
|
it { is_expected.to contain_package('perl-DBD-Pg').with(
|
2014-04-02 23:52:07 +02:00
|
|
|
:name => 'libdbd-pg-perl',
|
|
|
|
:ensure => 'present'
|
|
|
|
)}
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|