]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
Fix failing persist_iptables test on RHEL7 and Fedora
authorJohn Eckersberg <jeckersb@redhat.com>
Fri, 4 Apr 2014 15:14:27 +0000 (11:14 -0400)
committerJohn Eckersberg <jeckersb@redhat.com>
Fri, 4 Apr 2014 15:14:27 +0000 (11:14 -0400)
spec/unit/puppet/util/firewall_spec.rb

index 8c33c34f0187bc67d8fbacbc11dc9c84128cdad0..e5864879c32ce23d866e99631a498b51df14b650 100644 (file)
@@ -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')