]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commit
Use iptables-save and parse the output
authorHunter Haugen <hunter@puppetlabs.com>
Fri, 14 Feb 2014 21:19:54 +0000 (13:19 -0800)
committerHunter Haugen <hunter@puppetlabs.com>
Fri, 14 Feb 2014 21:54:14 +0000 (13:54 -0800)
commite4a9c10497ccce8607a57b5b756bbcdb0290fe9a
tree583aa09fa3a00bb12ee2feb6177f0415590fb0a9
parentd949af09c43bd0fa56a480f21e587eac45179a75
Use iptables-save and parse the output

`iptables -S` didn't work on older OSs, so the tests have been adapted
for that.

There was one test for the NAT table that I'm not sure what the purpose
was, since it seemed to be testing munge instead. I edited it to get it
to pass.
spec/acceptance/change_source_spec.rb
spec/acceptance/firewall_spec.rb
spec/acceptance/firewallchain_spec.rb
spec/acceptance/ip6_fragment_spec.rb
spec/acceptance/isfragment_spec.rb
spec/acceptance/purge_spec.rb
spec/acceptance/rules_spec.rb
spec/acceptance/socket_spec.rb