From 830d280740bb414dadef0eba44f41f9fd1e7c6bf Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 29 Aug 2023 15:44:25 +0200 Subject: tests: monitor: Fix for wrong ordering in expected JSON output Adjust JSON for delete before add for replace after respective kernel fix, too. Fixes: ba786ac758fba ("tests: monitor: update insert and replace commands") Signed-off-by: Phil Sutter --- tests/monitor/testcases/simple.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/monitor/testcases') diff --git a/tests/monitor/testcases/simple.t b/tests/monitor/testcases/simple.t index c1c7bcfc..67be5c85 100644 --- a/tests/monitor/testcases/simple.t +++ b/tests/monitor/testcases/simple.t @@ -20,8 +20,8 @@ J {"insert": {"rule": {"family": "ip", "table": "t", "chain": "c", "handle": 0, I replace rule ip t c handle 2 accept comment "foo bar" O delete rule ip t c handle 2 O add rule ip t c handle 5 accept comment "foo bar" -J {"add": {"rule": {"family": "ip", "table": "t", "chain": "c", "handle": 0, "comment": "foo bar", "expr": [{"accept": null}]}}} J {"delete": {"rule": {"family": "ip", "table": "t", "chain": "c", "handle": 0, "expr": [{"accept": null}]}}} +J {"add": {"rule": {"family": "ip", "table": "t", "chain": "c", "handle": 0, "comment": "foo bar", "expr": [{"accept": null}]}}} I add counter ip t cnt O add counter ip t cnt { packets 0 bytes 0 } -- cgit v1.2.3