From b0a6bff4ee4410cd554811fa0ca3b28fce908473 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 3 Oct 2022 14:26:02 +0200 Subject: [PATCH] tests: fix testcases Align expected output with the current implementation. Fixes: a540f6d ("fw4: fix cosmetic issue with per-ruleset and per-table include paths") Fixes: 145e159 ("fw4: recognize `option log` and `option counter` in `config nat` sections") Signed-off-by: Jo-Philipp Wich --- tests/01_configuration/01_ruleset | 8 ++++---- tests/01_configuration/02_rule_order | 8 ++++---- tests/03_rules/08_family_inheritance | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/01_configuration/01_ruleset b/tests/01_configuration/01_ruleset index 06249f2..e30ca76 100644 --- a/tests/01_configuration/01_ruleset +++ b/tests/01_configuration/01_ruleset @@ -303,10 +303,10 @@ table inet fw4 { [!] Section @defaults[0] specifies unknown option 'unknown_defaults_option' [!] Section @rule[9] (Test-Deprecated-Rule-Option) option '_name' is deprecated by fw4 [!] Section @rule[9] (Test-Deprecated-Rule-Option) specifies unknown option 'unknown_rule_option' -[call] fs.glob pattern -[call] fs.glob pattern -[call] fs.glob pattern -[call] fs.glob pattern +[call] fs.glob pattern +[call] fs.glob pattern +[call] fs.glob pattern +[call] fs.glob pattern [call] fs.lsdir path [call] fs.lsdir path [call] ctx.call object method args diff --git a/tests/01_configuration/02_rule_order b/tests/01_configuration/02_rule_order index 245bb74..93a0f08 100644 --- a/tests/01_configuration/02_rule_order +++ b/tests/01_configuration/02_rule_order @@ -229,10 +229,10 @@ table inet fw4 { [call] ctx.call object method args [call] ctx.call object method args <{ "type": "firewall" }> [call] fs.open path mode -[call] fs.glob pattern -[call] fs.glob pattern -[call] fs.glob pattern -[call] fs.glob pattern +[call] fs.glob pattern +[call] fs.glob pattern +[call] fs.glob pattern +[call] fs.glob pattern [call] fs.lsdir path [call] fs.lsdir path [call] fs.popen cmdline mode diff --git a/tests/03_rules/08_family_inheritance b/tests/03_rules/08_family_inheritance index fc489b5..fa02ead 100644 --- a/tests/03_rules/08_family_inheritance +++ b/tests/03_rules/08_family_inheritance @@ -266,9 +266,9 @@ table inet fw4 { chain srcnat { type nat hook postrouting priority srcnat; policy accept; - meta nfproto ipv4 masquerade comment "!fw4: NAT #3" - ip6 saddr fc00::/7 masquerade comment "!fw4: NAT #4" - masquerade comment "!fw4: NAT #6" + meta nfproto ipv4 counter masquerade comment "!fw4: NAT #3" + ip6 saddr fc00::/7 counter masquerade comment "!fw4: NAT #4" + counter masquerade comment "!fw4: NAT #6" meta nfproto ipv4 ip daddr 192.168.1.0/24 jump srcnat_ipv4only comment "!fw4: Handle ipv4only IPv4 srcnat traffic" } @@ -276,7 +276,7 @@ table inet fw4 { } chain srcnat_ipv4only { - meta nfproto ipv4 masquerade comment "!fw4: NAT #5" + meta nfproto ipv4 counter masquerade comment "!fw4: NAT #5" } -- 2.30.2