summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/listing
diff options
context:
space:
mode:
authorHarsha Sharma <harshasharmaiitr@gmail.com>2018-08-14 01:09:28 +0530
committerPablo Neira Ayuso <pablo@netfilter.org>2018-08-31 18:40:14 +0200
commit2de594ccb99c70bc908a3f4cc477618babffff6b (patch)
tree5078735ecf6c998c653edf17a85c8f1c474b51a3 /tests/shell/testcases/listing
parent5df2f2e203230eeecb8617992741652226fc3ca4 (diff)
tests: shell: add tests for ct timeout objects
Add tests for listing ct timeout objects and input from file. Signed-off-by: Harsha Sharma <harshasharmaiitr@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases/listing')
-rwxr-xr-xtests/shell/testcases/listing/0013objects_07
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/shell/testcases/listing/0013objects_0 b/tests/shell/testcases/listing/0013objects_0
index c5e0e323..2d72dbb5 100755
--- a/tests/shell/testcases/listing/0013objects_0
+++ b/tests/shell/testcases/listing/0013objects_0
@@ -12,6 +12,12 @@ EXPECTED="table ip test {
l3proto ip
}
+ ct timeout cttime {
+ protocol udp;
+ l3proto ip
+ policy = {unreplied: 15, replied: 12}
+ }
+
chain input {
}
}"
@@ -22,6 +28,7 @@ $NFT add table test
$NFT add chain test input
$NFT add quota test https-quota 25 mbytes
$NFT add ct helper test cthelp { type \"sip\" protocol tcp \; }
+$NFT add ct timeout test cttime { protocol udp \; policy = {replied: 12, unreplied: 15 } \; }
$NFT add table test-ip
GET="$($NFT list table test)"