From: Sharif Nassar Date: Mon, 14 Nov 2011 06:04:42 +0000 (-0800) Subject: Add fixtures for ipencap X-Git-Tag: v0.0.4~6^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=685af540d51656c447815bd2c828dc225fc752fc;p=puppet-modules%2Fpuppetlabs-firewall.git Add fixtures for ipencap --- diff --git a/spec/fixtures/iptables/conversion_hash.rb b/spec/fixtures/iptables/conversion_hash.rb index fa9f21a..26e28d0 100644 --- a/spec/fixtures/iptables/conversion_hash.rb +++ b/spec/fixtures/iptables/conversion_hash.rb @@ -108,6 +108,13 @@ ARGS_TO_HASH = { :limit => '15/hour' }, }, + 'proto_ipencap' => { + :line => '-A INPUT -p ipencap -m comment --comment "0100 INPUT accept ipencap"', + :table => 'filter', + :params => { + :proto => 'ipencap', + }, + }, } # This hash is for testing converting a hash to an argument line. @@ -216,4 +223,12 @@ HASH_TO_ARGS = { }, :args => ['-t', :filter, '-p', :tcp, '-m', 'multiport', '--dports', '123', '-m', 'comment', '--comment', '057 INPUT limit NTP', '-m', 'limit', '--limit', '15/hour'], }, + 'proto_ipencap' => { + :params => { + :name => '0100 INPUT accept ipencap', + :table => 'filter', + :proto => 'ipencap', + }, + :args => ['-t', :filter, '-p', :ipencap, '-m', 'comment', '--comment', '0100 INPUT accept ipencap'], + }, }