diff options
| author | Pablo Neira Ayuso <pablo@netfilter.org> | 2026-02-16 12:26:45 +0100 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2026-02-16 19:47:39 +0100 |
| commit | 14dc90737a57bd1c6dc0ebc3eb30ab3090cc0afb (patch) | |
| tree | b28ebbbe71f7e9bdd52aaa49ceffb48805862342 /tests/shell | |
| parent | 183c13b8aa0ecfed6becff0ebd13be3d44ee44fa (diff) | |
json: complete multi-statement set element support
Remove artificial limitation on the maximum number of statements per
element in listings.
Moreover, update tests/shell which are currently incorrect.
Fixes: e6d1d0d61195 ("src: add set element multi-statement support")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell')
3 files changed, 30 insertions, 0 deletions
diff --git a/tests/shell/testcases/nft-f/dumps/0025empty_dynset_0.json-nft b/tests/shell/testcases/nft-f/dumps/0025empty_dynset_0.json-nft index 0cde23b0..5e73c644 100644 --- a/tests/shell/testcases/nft-f/dumps/0025empty_dynset_0.json-nft +++ b/tests/shell/testcases/nft-f/dumps/0025empty_dynset_0.json-nft @@ -101,6 +101,10 @@ "rate": 1, "burst": 5, "per": "second" + }, + "counter": { + "packets": 0, + "bytes": 0 } } } diff --git a/tests/shell/testcases/sets/dumps/0060set_multistmt_0.json-nft b/tests/shell/testcases/sets/dumps/0060set_multistmt_0.json-nft index 1aede147..8622d50f 100644 --- a/tests/shell/testcases/sets/dumps/0060set_multistmt_0.json-nft +++ b/tests/shell/testcases/sets/dumps/0060set_multistmt_0.json-nft @@ -41,6 +41,10 @@ "rate": 1, "burst": 5, "per": "second" + }, + "counter": { + "packets": 0, + "bytes": 0 } } }, @@ -51,6 +55,10 @@ "rate": 1, "burst": 5, "per": "second" + }, + "counter": { + "packets": 0, + "bytes": 0 } } }, @@ -61,6 +69,10 @@ "rate": 1, "burst": 5, "per": "second" + }, + "counter": { + "packets": 0, + "bytes": 0 } } } diff --git a/tests/shell/testcases/sets/dumps/0060set_multistmt_1.json-nft b/tests/shell/testcases/sets/dumps/0060set_multistmt_1.json-nft index 6098dc56..aea0fe49 100644 --- a/tests/shell/testcases/sets/dumps/0060set_multistmt_1.json-nft +++ b/tests/shell/testcases/sets/dumps/0060set_multistmt_1.json-nft @@ -44,6 +44,10 @@ "counter": { "packets": 0, "bytes": 0 + }, + "quota": { + "val": 500, + "val_unit": "bytes" } } }, @@ -53,6 +57,12 @@ "counter": { "packets": 9, "bytes": 756 + }, + "quota": { + "val": 500, + "val_unit": "bytes", + "used": 500, + "used_unit": "bytes" } } }, @@ -62,6 +72,10 @@ "counter": { "packets": 0, "bytes": 0 + }, + "quota": { + "val": 1000, + "val_unit": "bytes" } } } |
