Merge pull request #151 from tux-o-matic/master

Can now pass options to package provider
This commit is contained in:
TP Honey
2016-01-29 13:39:13 +00:00
2 changed files with 19 additions and 2 deletions

View File

@@ -47,6 +47,13 @@ describe 'java', :type => :class do
let(:params) { { 'distribution' => 'jre' } }
it { should contain_package('java').with_name('java-1.8.0-openjdk') }
end
context 'select passed value for Fedora 21 with yum option' do
let(:facts) { {:osfamily => 'RedHat', :operatingsystem => 'Fedora', :operatingsystemrelease => '21'} }
let(:params) { { 'distribution' => 'jre' } }
let(:params) { { 'package_options' => ['--skip-broken'] } }
it { should contain_package('java') }
end
context 'select passed value for Centos 5.3' do
let(:facts) { {:osfamily => 'RedHat', :operatingsystem => 'Centos', :operatingsystemrelease => '5.3'} }