Skip to content

Commit

Permalink
Updated travisci file to fail on Puppet 4 failures
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnytdevops committed Jun 8, 2015
1 parent 11213dc commit 8436827
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,5 @@ matrix:
env: PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.6.0"
- rvm: 1.8.7
env: PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.7.0"
allow_failures:
- rvm: 2.1.6
env: PUPPET_GEM_VERSION="~> 4.0" STRICT_VARIABLES="yes"
notifications:
email: false
7 changes: 5 additions & 2 deletions spec/unit/classes/firewall_linux_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@
context 'Debian like' do
%w{Debian Ubuntu}.each do |os|
context "operatingsystem => #{os}" do
let(:facts) { facts_default.merge({ :operatingsystem => os }) }
it { should contain_class('firewall::linux::debian').with_require('Package[iptables]') }
releases = (os == 'Debian' ? ['6','7','8'] : ['10.04','12.04','14.04'])
releases.each do |osrel|
let(:facts) { facts_default.merge({ :operatingsystem => os, :operatingsystemrelease => osrel}) }
it { should contain_class('firewall::linux::debian').with_require('Package[iptables]') }
end
end
end
end
Expand Down

0 comments on commit 8436827

Please sign in to comment.