]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests/shell: test for maximum length of "comment" in "comments_objects_0"
authorThomas Haller <thaller@redhat.com>
Mon, 23 Oct 2023 13:38:18 +0000 (15:38 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 24 Oct 2023 09:31:01 +0000 (11:31 +0200)
commit92cc90eace679794f67825820d54aa6c14570a0c
treebc7b4e811661611548a5a5881155f8dae01ccdc3
parentf65b2d12236174d477c55e96c4027cd51185ba5e
tests/shell: test for maximum length of "comment" in "comments_objects_0"

The comment length is limited to NFTNL_UDATA_COMMENT_MAXLEN. Test for
that.

Adjust an existing test for that.

Also rename $EXPECTED to $RULESET. We don't compare the value of
$EXPECTED against the actually configured rules. It also wouldn't work,
because the input is not normalized and wouldn't match. It also isn't
necessary, because there is a .nft dump file.

Signed-off-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/testcases/optionals/comments_objects_0
tests/shell/testcases/optionals/dumps/comments_objects_0.nft