diff options
author | Phil Sutter <phil@nwl.cc> | 2023-08-29 15:17:13 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2023-08-29 18:12:56 +0200 |
commit | f66ef82e714aa502a2f59ffc31a6ffb16590db09 (patch) | |
tree | 7983dfa5a398ccae6bf65437167e92e47d7e11e7 | |
parent | 41f8628f6fb8340dde21e1295191a2d131c1a8df (diff) |
tests: monitor: Fix monitor JSON output for insert command
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>
-rw-r--r-- | tests/monitor/testcases/simple.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/monitor/testcases/simple.t b/tests/monitor/testcases/simple.t index 2d9c92de..c1c7bcfc 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 |