From 7c038cca4276d9761d63f148b382488a83f4b1ad Mon Sep 17 00:00:00 2001 From: Elise Lennion Date: Tue, 17 Jan 2017 13:44:54 -0200 Subject: tests: py: Use stateless option on tests To don't trigger false errors because of unrelated traffic on the tested machine. Tests, which have rules with counter and 'ok' result, are updated to avoid new Warnings. Signed-off-by: Elise Lennion Signed-off-by: Pablo Neira Ayuso --- tests/py/ip/flowtable.t | 2 +- tests/py/ip/flowtable.t.payload | 2 +- tests/py/ip/masquerade.t | 2 +- tests/py/ip/masquerade.t.payload | 2 +- tests/py/ip/redirect.t | 2 +- tests/py/ip/redirect.t.payload | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/py/ip') diff --git a/tests/py/ip/flowtable.t b/tests/py/ip/flowtable.t index aea57c32..41d5d3bb 100644 --- a/tests/py/ip/flowtable.t +++ b/tests/py/ip/flowtable.t @@ -2,4 +2,4 @@ *ip;test-ip;input -flow table xyz { ip saddr timeout 30s counter packets 0 bytes 0};ok +flow table xyz { ip saddr timeout 30s counter};ok diff --git a/tests/py/ip/flowtable.t.payload b/tests/py/ip/flowtable.t.payload index ffadfd25..591abf2b 100644 --- a/tests/py/ip/flowtable.t.payload +++ b/tests/py/ip/flowtable.t.payload @@ -1,4 +1,4 @@ -# flow table xyz { ip saddr timeout 30s counter packets 0 bytes 0} +# flow table xyz { ip saddr timeout 30s counter} xyz test-ip 31 xyz test-ip 0 ip test-ip input diff --git a/tests/py/ip/masquerade.t b/tests/py/ip/masquerade.t index cee6e0e8..26c37043 100644 --- a/tests/py/ip/masquerade.t +++ b/tests/py/ip/masquerade.t @@ -26,5 +26,5 @@ ip saddr 10.1.1.1 masquerade drop;fail # masquerade with sets tcp dport { 1,2,3,4,5,6,7,8,101,202,303,1001,2002,3003} masquerade;ok -ip daddr 10.0.0.0-10.2.3.4 udp dport 53 counter packets 0 bytes 0 masquerade;ok +ip daddr 10.0.0.0-10.2.3.4 udp dport 53 counter masquerade;ok iifname eth0 ct state new,established tcp dport vmap {22 : drop, 222 : drop } masquerade;ok diff --git a/tests/py/ip/masquerade.t.payload b/tests/py/ip/masquerade.t.payload index f4bbe99d..ad0ea518 100644 --- a/tests/py/ip/masquerade.t.payload +++ b/tests/py/ip/masquerade.t.payload @@ -97,7 +97,7 @@ ip test-ip4 postrouting [ lookup reg 1 set __set%d ] [ masq ] -# ip daddr 10.0.0.0-10.2.3.4 udp dport 53 counter packets 0 bytes 0 masquerade +# ip daddr 10.0.0.0-10.2.3.4 udp dport 53 counter masquerade ip test-ip4 postrouting [ payload load 4b @ network header + 16 => reg 1 ] [ cmp gte reg 1 0x0000000a ] diff --git a/tests/py/ip/redirect.t b/tests/py/ip/redirect.t index f6ddfc05..79323611 100644 --- a/tests/py/ip/redirect.t +++ b/tests/py/ip/redirect.t @@ -43,7 +43,7 @@ ip saddr 10.1.1.1 redirect drop;fail # redirect with sets tcp dport { 1, 2, 3, 4, 5, 6, 7, 8, 101, 202, 303, 1001, 2002, 3003} redirect;ok -ip daddr 10.0.0.0-10.2.3.4 udp dport 53 counter packets 0 bytes 0 redirect;ok +ip daddr 10.0.0.0-10.2.3.4 udp dport 53 counter redirect;ok iifname eth0 ct state new,established tcp dport vmap {22 : drop, 222 : drop } redirect;ok # redirect with maps diff --git a/tests/py/ip/redirect.t.payload b/tests/py/ip/redirect.t.payload index dfb5a3bd..1f050bfe 100644 --- a/tests/py/ip/redirect.t.payload +++ b/tests/py/ip/redirect.t.payload @@ -179,7 +179,7 @@ ip test-ip4 output [ lookup reg 1 set __set%d ] [ redir ] -# ip daddr 10.0.0.0-10.2.3.4 udp dport 53 counter packets 0 bytes 0 redirect +# ip daddr 10.0.0.0-10.2.3.4 udp dport 53 counter redirect ip test-ip4 output [ payload load 4b @ network header + 16 => reg 1 ] [ cmp gte reg 1 0x0000000a ] -- cgit v1.2.3