]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: py: Implement payload_record()
authorPhil Sutter <phil@nwl.cc>
Wed, 10 Sep 2025 13:14:23 +0000 (15:14 +0200)
committerPhil Sutter <phil@nwl.cc>
Thu, 23 Oct 2025 20:48:51 +0000 (22:48 +0200)
commitb84762fd6e248e960e70c26453faf45a5f975e70
tree0367731d6fe68e2a99c381a1f04c550b2d87a14a
parentaad26d166278aacbd42ce0d1f258c6fd30a05c7c
tests: py: Implement payload_record()

This is a helper function to store payload records (and JSON
equivalents) in .got files. The code it replaces missed to insert a
newline before the new entry and also did not check for existing records
in all spots.

Signed-off-by: Phil Sutter <phil@nwl.cc>
tests/py/nft-test.py