tag postgresql-jdbc package to fix package repo dependency

This commit is contained in:
Richard Clark 2014-05-09 14:01:15 +01:00
parent 702998d8fd
commit 25b11a2e6b
2 changed files with 7 additions and 3 deletions

View file

@ -10,6 +10,7 @@ class postgresql::lib::java (
package { 'postgresql-jdbc': package { 'postgresql-jdbc':
ensure => $package_ensure, ensure => $package_ensure,
name => $package_name, name => $package_name,
tag => 'postgresql',
} }
} }

View file

@ -11,7 +11,8 @@ describe 'postgresql::lib::java', :type => :class do
end end
it { should contain_package('postgresql-jdbc').with( it { should contain_package('postgresql-jdbc').with(
:name => 'libpostgresql-jdbc-java', :name => 'libpostgresql-jdbc-java',
:ensure => 'present' :ensure => 'present',
:tag => 'postgresql',
)} )}
end end
@ -24,7 +25,8 @@ describe 'postgresql::lib::java', :type => :class do
end end
it { should contain_package('postgresql-jdbc').with( it { should contain_package('postgresql-jdbc').with(
:name => 'postgresql-jdbc', :name => 'postgresql-jdbc',
:ensure => 'present' :ensure => 'present',
:tag => 'postgresql',
)} )}
describe 'when parameters are supplied' do describe 'when parameters are supplied' do
let :params do let :params do
@ -32,7 +34,8 @@ describe 'postgresql::lib::java', :type => :class do
end end
it { should contain_package('postgresql-jdbc').with( it { should contain_package('postgresql-jdbc').with(
:name => 'somepackage', :name => 'somepackage',
:ensure => 'latest' :ensure => 'latest',
:tag => 'postgresql',
)} )}
end end
end end