Skip to content

Commit

Permalink
Fix issue with local testing firewallchain
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Fields committed Jan 23, 2015
1 parent 4b1c215 commit abfbc76
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/unit/puppet/type/firewallchain_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@

describe 'purge iptables rules' do
before(:each) do
allow(Puppet::Type.type(:firewall).provider(:iptables)).to receive(:iptables_save).and_return(<<EOS
stub_return = <<EOS
# Completed on Sun Jan 5 19:30:21 2014
# Generated by iptables-save v1.4.12 on Sun Jan 5 19:30:21 2014
*filter
Expand All @@ -162,7 +162,8 @@
COMMIT
# Completed on Sun Jan 5 19:30:21 2014
EOS
)
allow(Puppet::Type.type(:firewall).provider(:iptables)).to receive(:iptables_save).and_return(stub_return)
allow(Puppet::Type.type(:firewall).provider(:ip6tables)).to receive(:ip6tables_save).and_return(stub_return)
end

it 'should generate iptables resources' do
Expand Down

0 comments on commit abfbc76

Please sign in to comment.