]> 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)
committerPhil Sutter <phil@nwl.cc>
Fri, 12 Apr 2024 12:33:14 +0000 (14:33 +0200)
commit0c17b910b3e19c4eacf5567f90b6545ed1fd8aac
treec592a636f363772920f771258dbda1c6a7631f64
parentbf52af188b306acf5a30134d6a670f41f16a9459
tests: py: Fix some JSON equivalents

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