From 77b81cafb9a93a97a6b4a914fb6fbb45976f5c81 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Wed, 26 May 2021 18:58:06 +0200 Subject: tests: add test case for removal of anon sets with only a single element Also add a few examples that should not be changed: - anon set with 2 elements - anon map with 1 element - anon set with a concatenation The latter could be done with cmp but this currently triggers 'Error: Use concatenations with sets and maps, not singleton values' after removing the anon set. Signed-off-by: Florian Westphal --- tests/shell/testcases/sets/dumps/0053echo_0.nft | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/shell/testcases/sets') diff --git a/tests/shell/testcases/sets/dumps/0053echo_0.nft b/tests/shell/testcases/sets/dumps/0053echo_0.nft index 6a816636..bb7c5513 100644 --- a/tests/shell/testcases/sets/dumps/0053echo_0.nft +++ b/tests/shell/testcases/sets/dumps/0053echo_0.nft @@ -1,6 +1,6 @@ table inet filter { chain input { type filter hook input priority filter; policy drop; - iifname { "lo" } ip saddr { 10.0.0.0/8 } ip daddr { 192.168.100.62 } tcp dport { 2001 } counter packets 0 bytes 0 accept + iifname "lo" ip saddr 10.0.0.0/8 ip daddr 192.168.100.62 tcp dport 2001 counter packets 0 bytes 0 accept } } -- cgit v1.2.3