From: John Eckersberg Date: Fri, 4 Apr 2014 15:14:27 +0000 (-0400) Subject: Fix failing persist_iptables test on RHEL7 and Fedora X-Git-Tag: 1.1.0~6^2~1 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=a8fa35fdaa2b6895d12cbcfcb6153c1a047223c4;p=puppet-modules%2Fpuppetlabs-firewall.git Fix failing persist_iptables test on RHEL7 and Fedora --- diff --git a/spec/unit/puppet/util/firewall_spec.rb b/spec/unit/puppet/util/firewall_spec.rb index 8c33c34..e586487 100644 --- a/spec/unit/puppet/util/firewall_spec.rb +++ b/spec/unit/puppet/util/firewall_spec.rb @@ -159,6 +159,7 @@ describe 'Puppet::Util::Firewall' do it 'should raise a warning when exec fails' do allow(Facter.fact(:osfamily)).to receive(:value).and_return('RedHat') allow(Facter.fact(:operatingsystem)).to receive(:value).and_return('RedHat') + allow(Facter.fact(:operatingsystemrelease)).to receive(:value).and_return('6') expect(subject).to receive(:execute).with(%w{/sbin/service iptables save}). and_raise(Puppet::ExecutionFailure, 'some error')