From a8fa35fdaa2b6895d12cbcfcb6153c1a047223c4 Mon Sep 17 00:00:00 2001 From: John Eckersberg Date: Fri, 4 Apr 2014 11:14:27 -0400 Subject: [PATCH] Fix failing persist_iptables test on RHEL7 and Fedora --- spec/unit/puppet/util/firewall_spec.rb | 1 + 1 file changed, 1 insertion(+) 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') -- 2.45.2