netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [nft PATCH 1/4] tests: monitor: Fix monitor JSON output for insert command
@ 2023-08-29 13:48 Phil Sutter
  2023-08-29 13:48 ` [nft PATCH 2/4] tests: monitor: Fix time format in ct timeout test Phil Sutter
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Phil Sutter @ 2023-08-29 13:48 UTC (permalink / raw)
  To: netfilter-devel

Looks like commit ba786ac758fba ("tests: monitor: update insert and
replace commands") missed to also fix expected JSON output.

Fixes: 48d20b8cf162e ("monitor: honor NLM_F_APPEND flag for rules")
Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 tests/monitor/testcases/simple.t | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/monitor/testcases/simple.t b/tests/monitor/testcases/simple.t
index 2d9c92de25dd3..c1c7bcfc08beb 100644
--- a/tests/monitor/testcases/simple.t
+++ b/tests/monitor/testcases/simple.t
@@ -15,7 +15,7 @@ J {"add": {"rule": {"family": "ip", "table": "t", "chain": "c", "handle": 0, "ex
 
 I insert rule ip t c counter accept
 O insert rule ip t c counter packets 0 bytes 0 accept
-J {"add": {"rule": {"family": "ip", "table": "t", "chain": "c", "handle": 0, "expr": [{"counter": {"packets": 0, "bytes": 0}}, {"accept": null}]}}}
+J {"insert": {"rule": {"family": "ip", "table": "t", "chain": "c", "handle": 0, "expr": [{"counter": {"packets": 0, "bytes": 0}}, {"accept": null}]}}}
 
 I replace rule ip t c handle 2 accept comment "foo bar"
 O delete rule ip t c handle 2
-- 
2.41.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-08-29 16:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-29 13:48 [nft PATCH 1/4] tests: monitor: Fix monitor JSON output for insert command Phil Sutter
2023-08-29 13:48 ` [nft PATCH 2/4] tests: monitor: Fix time format in ct timeout test Phil Sutter
2023-08-29 13:48 ` [nft PATCH 3/4] tests: monitor: Fix for wrong syntax in set-interval.t Phil Sutter
2023-08-29 13:48 ` [nft PATCH 4/4] tests: monitor: Fix for wrong ordering in expected JSON output Phil Sutter
2023-08-29 16:10 ` [nft PATCH 1/4] tests: monitor: Fix monitor JSON output for insert command Phil Sutter

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).