]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests/shell: add missing nft/nodump files for tests
authorThomas Haller <thaller@redhat.com>
Wed, 13 Sep 2023 17:05:06 +0000 (19:05 +0200)
committerFlorian Westphal <fw@strlen.de>
Fri, 15 Sep 2023 14:03:41 +0000 (16:03 +0200)
Three tests didn't have a nft/nodump file, because previously I only
generated files on Fedora kernel, where those tests are failing.

Generate them on CentOS-Stream-9 with kernel 5.14.0-354.el9.x86_64.

Signed-off-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
tests/shell/testcases/listing/dumps/0013objects_0.nft [new file with mode: 0644]
tests/shell/testcases/sets/dumps/reset_command_0.nodump [new file with mode: 0644]
tests/shell/testcases/transactions/dumps/bad_expression.nft [new file with mode: 0644]

diff --git a/tests/shell/testcases/listing/dumps/0013objects_0.nft b/tests/shell/testcases/listing/dumps/0013objects_0.nft
new file mode 100644 (file)
index 0000000..1ea610f
--- /dev/null
@@ -0,0 +1,29 @@
+table ip test {
+       quota https-quota {
+               25 mbytes
+       }
+
+       ct helper cthelp {
+               type "sip" protocol tcp
+               l3proto ip
+       }
+
+       ct timeout cttime {
+               protocol udp
+               l3proto ip
+               policy = { unreplied : 15s, replied : 12s }
+       }
+
+       ct expectation ctexpect {
+               protocol tcp
+               dport 5432
+               timeout 1h
+               size 12
+               l3proto ip
+       }
+
+       chain input {
+       }
+}
+table ip test-ip {
+}
diff --git a/tests/shell/testcases/sets/dumps/reset_command_0.nodump b/tests/shell/testcases/sets/dumps/reset_command_0.nodump
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tests/shell/testcases/transactions/dumps/bad_expression.nft b/tests/shell/testcases/transactions/dumps/bad_expression.nft
new file mode 100644 (file)
index 0000000..e69de29