summaryrefslogtreecommitdiffstats
path: root/tests/monitor/testcases/map-expr.t
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2025-08-23 23:57:28 +0200
committerPhil Sutter <phil@nwl.cc>2025-08-24 00:04:25 +0200
commit428462077f415fe49619ec5d6cbf7477ee5359bc (patch)
tree4a7be04186d180f27aa389dd37613ad9db86387c /tests/monitor/testcases/map-expr.t
parentcbd7aef7637a4ca647380118a2d3e9146121d5d2 (diff)
tests: monitor: Fix for flag arrays in JSON output
Missed to adjust the expected JSON output in this test suite, too. Fixes: 5e492307c2c93 ("json: Do not reduce single-item arrays on output") Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'tests/monitor/testcases/map-expr.t')
-rw-r--r--tests/monitor/testcases/map-expr.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/monitor/testcases/map-expr.t b/tests/monitor/testcases/map-expr.t
index 90420041..d11ad0eb 100644
--- a/tests/monitor/testcases/map-expr.t
+++ b/tests/monitor/testcases/map-expr.t
@@ -3,4 +3,4 @@ I add table ip t
I add map ip t m { typeof meta day . meta hour : verdict; flags interval; counter; }
O -
J {"add": {"table": {"family": "ip", "name": "t", "handle": 0}}}
-J {"add": {"map": {"family": "ip", "name": "m", "table": "t", "type": {"typeof": {"concat": [{"meta": {"key": "day"}}, {"meta": {"key": "hour"}}]}}, "handle": 0, "map": "verdict", "flags": "interval", "stmt": [{"counter": null}]}}}
+J {"add": {"map": {"family": "ip", "name": "m", "table": "t", "type": {"typeof": {"concat": [{"meta": {"key": "day"}}, {"meta": {"key": "hour"}}]}}, "handle": 0, "map": "verdict", "flags": ["interval"], "stmt": [{"counter": null}]}}}