summaryrefslogtreecommitdiffstats
path: root/tests/py/nft-test.py
diff options
context:
space:
mode:
authorHarsha Sharma <harshasharmaiitr@gmail.com>2018-08-14 01:07:55 +0530
committerPablo Neira Ayuso <pablo@netfilter.org>2018-08-31 18:40:13 +0200
commit5df2f2e203230eeecb8617992741652226fc3ca4 (patch)
treea608b62954aa11c36aa0ae84461a3023292957af /tests/py/nft-test.py
parentc7c94802679cd9ba09aa78f332f533ecae1b9e0c (diff)
tests: py: add ct timeout tests
Add test for adding ct timeout objects and assigning it via rule. Signed-off-by: Harsha Sharma <harshasharmaiitr@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/nft-test.py')
-rwxr-xr-xtests/py/nft-test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/py/nft-test.py b/tests/py/nft-test.py
index 3b89ec35..23f73d50 100755
--- a/tests/py/nft-test.py
+++ b/tests/py/nft-test.py
@@ -1081,6 +1081,10 @@ def obj_process(obj_line, filename, lineno):
obj_type = "ct helper"
tokens[3] = ""
+ if obj_type == "ct" and tokens[3] == "timeout":
+ obj_type = "ct timeout"
+ tokens[3] = ""
+
if len(tokens) > 3:
obj_spcf = " ".join(tokens[3:])