From: Pablo Neira Ayuso Date: Wed, 3 Jul 2019 11:11:52 +0000 (+0200) Subject: tests: shell: update test to include reset command X-Git-Tag: v0.9.2~56 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1694c01c30fba06461ca82ede070bf6a9cd9a4db;p=thirdparty%2Fnftables.git tests: shell: update test to include reset command Update tests to invoke the reset command. Signed-off-by: Pablo Neira Ayuso --- diff --git a/tests/shell/testcases/sets/0024named_objects_0 b/tests/shell/testcases/sets/0024named_objects_0 index 10f99b62..3bd16f2f 100755 --- a/tests/shell/testcases/sets/0024named_objects_0 +++ b/tests/shell/testcases/sets/0024named_objects_0 @@ -9,6 +9,9 @@ table inet x { counter user123 { packets 12 bytes 1433 } + counter user321 { + packets 12 bytes 1433 + } quota user123 { over 2000 bytes } @@ -31,3 +34,5 @@ table inet x { set -e $NFT -f - <<< "$RULESET" + +$NFT reset counter inet x user321 diff --git a/tests/shell/testcases/sets/dumps/0024named_objects_0.nft b/tests/shell/testcases/sets/dumps/0024named_objects_0.nft index 91c3c46b..2ffa4f2f 100644 --- a/tests/shell/testcases/sets/dumps/0024named_objects_0.nft +++ b/tests/shell/testcases/sets/dumps/0024named_objects_0.nft @@ -3,6 +3,10 @@ table inet x { packets 12 bytes 1433 } + counter user321 { + packets 0 bytes 0 + } + quota user123 { over 2000 bytes }