From: Jo-Philipp Wich Date: Mon, 3 Oct 2022 12:26:02 +0000 (+0200) Subject: tests: fix testcases X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=b0a6bff4ee4410cd554811fa0ca3b28fce908473;p=project%2Ffirewall4.git 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 --- 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" }