tests: shell: update test to include reset command
Pablo Neira Ayuso
maintainerPATCH 1/1 tests: shell: update test to include reset command
Update tests to invoke the reset command.
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- tests/shell/testcases/sets/0024named_objects_0 | 5 +++++ tests/shell/testcases/sets/dumps/0024named_objects_0.nft | 4 ++++ 2 files changed, 9 insertions(+)
tests/shell/testcases/sets/0024named_objects_0 +5 -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
tests/shell/testcases/sets/dumps/0024named_objects_0.nft +4 -0
@@ -3,6 +3,10 @@ table inet x { packets 12 bytes 1433 } + counter user321 { + packets 0 bytes 0 + } + quota user123 { over 2000 bytes }
Signature · 1 line
2.11.0