Skip to content

Commit 8436827

Browse files
committed
Updated travisci file to fail on Puppet 4 failures
1 parent 11213dc commit 8436827

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,5 @@ matrix:
2020
env: PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.6.0"
2121
- rvm: 1.8.7
2222
env: PUPPET_GEM_VERSION="~> 2.7.0" FACTER_GEM_VERSION="~> 1.7.0"
23-
allow_failures:
24-
- rvm: 2.1.6
25-
env: PUPPET_GEM_VERSION="~> 4.0" STRICT_VARIABLES="yes"
2623
notifications:
2724
email: false

spec/unit/classes/firewall_linux_spec.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@
2222
context 'Debian like' do
2323
%w{Debian Ubuntu}.each do |os|
2424
context "operatingsystem => #{os}" do
25-
let(:facts) { facts_default.merge({ :operatingsystem => os }) }
26-
it { should contain_class('firewall::linux::debian').with_require('Package[iptables]') }
25+
releases = (os == 'Debian' ? ['6','7','8'] : ['10.04','12.04','14.04'])
26+
releases.each do |osrel|
27+
let(:facts) { facts_default.merge({ :operatingsystem => os, :operatingsystemrelease => osrel}) }
28+
it { should contain_class('firewall::linux::debian').with_require('Package[iptables]') }
29+
end
2730
end
2831
end
2932
end

0 commit comments

Comments
 (0)