summaryrefslogtreecommitdiffstats
path: root/tests/py/ip/objects.t
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2017-03-14 16:55:17 +0100
committerFlorian Westphal <fw@strlen.de>2017-03-16 10:10:04 +0100
commit8675f943e7eff24f29aaa492cb58267f9291de31 (patch)
treedc1907fc65879c7ba7543f198460365be2d7488e /tests/py/ip/objects.t
parent1ed84c4626973cee92e4a238ad55f7ba1f5af249 (diff)
tests: py: add ct helper tests
needs minor tweak to nft-test.py so we don't zap the ';' withhin the {}. Signed-off-by: Florian Westphal <fw@strlen.de> Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/ip/objects.t')
-rw-r--r--tests/py/ip/objects.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/py/ip/objects.t b/tests/py/ip/objects.t
index 8109402d..ec8e8fd9 100644
--- a/tests/py/ip/objects.t
+++ b/tests/py/ip/objects.t
@@ -13,3 +13,7 @@ counter name tcp dport map {443 : "cnt1", 80 : "cnt2", 22 : "cnt1"};ok
ip saddr 192.168.1.3 quota name "qt1";ok
ip saddr 192.168.1.3 quota name "qt3";fail
quota name tcp dport map {443 : "qt1", 80 : "qt2", 22 : "qt1"};ok
+
+%cthelp1 type ct helper { type \"ftp\" protocol tcp\; };ok
+ct helper set "cthelp1";ok
+ct helper set tcp dport map {21 : "cthelp1", 2121 : "cthelp1" };ok