]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: py: Fix some JSON equivalents
authorPhil Sutter <phil@nwl.cc>
Fri, 22 Mar 2024 13:00:26 +0000 (14:00 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 31 Jul 2025 22:52:27 +0000 (00:52 +0200)
commitf0d8dfe9bad413b22cab4062d102722b59bc19ac
treedf34fd69007a8008260ef52e237737a443cf7148
parent10cf0830cdee6f4413b43fef600877df2b7e7705
tests: py: Fix some JSON equivalents

commit 0c17b910b3e19c4eacf5567f90b6545ed1fd8aac upstream.

Make sure they match the standard syntax input as much as possible.

For some reason inet/tcp.t.json was using plain arrays in place of
binary OR expressions in many cases. These arrays are interpreted as
list expressions, which seems to be semantically identical but the goal
here is to present an accurate equivalent to the rule in standard
syntax.

Signed-off-by: Phil Sutter <phil@nwl.cc>
tests/py/any/meta.t.json
tests/py/any/tcpopt.t.json
tests/py/inet/tcp.t.json