From: Pablo Neira Ayuso <pablo@netfilter.org>
To: netfilter-devel@vger.kernel.org
Subject: [PATCH nft] tests: shell: update test to include reset command
Date: Wed, 3 Jul 2019 13:12:57 +0200 [thread overview]
Message-ID: <20190703111257.4638-1-pablo@netfilter.org> (raw)
Update tests to invoke the reset command.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
tests/shell/testcases/sets/0024named_objects_0 | 5 +++++
tests/shell/testcases/sets/dumps/0024named_objects_0.nft | 4 ++++
2 files changed, 9 insertions(+)
diff --git a/tests/shell/testcases/sets/0024named_objects_0 b/tests/shell/testcases/sets/0024named_objects_0
index 10f99b62a143..3bd16f2fd028 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 91c3c46b6637..2ffa4f2ff757 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
}
--
2.11.0
reply other threads:[~2019-07-03 11:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190703111257.4638-1-pablo@netfilter.org \
--to=pablo@netfilter.org \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).