From 685af540d51656c447815bd2c828dc225fc752fc Mon Sep 17 00:00:00 2001 From: Sharif Nassar Date: Sun, 13 Nov 2011 22:04:42 -0800 Subject: [PATCH] Add fixtures for ipencap --- spec/fixtures/iptables/conversion_hash.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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'], + }, } -- 2.45.2