summaryrefslogtreecommitdiff
path: root/tests/nfct/timeout/08gre
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2012-05-26 15:46:52 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2012-05-26 15:47:21 +0200
commit5b6f524eea1ea8d2f0ecb2e17abfba7df708732f (patch)
tree5bb4a141504dcf559a11c4039551e87cd124acee /tests/nfct/timeout/08gre
parentd2e942c76f87ea061d5e8643007f1d4c3ed39694 (diff)
downloadconntrack-tools-5b6f524eea1ea8d2f0ecb2e17abfba7df708732f.tar.gz
conntrack-tools-5b6f524eea1ea8d2f0ecb2e17abfba7df708732f.zip
tests: add nfct tests for cttimeout
This patch adds the automated tests for the cttimeout infrastructure. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/nfct/timeout/08gre')
-rw-r--r--tests/nfct/timeout/08gre16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/nfct/timeout/08gre b/tests/nfct/timeout/08gre
new file mode 100644
index 0000000..7ef4bdb
--- /dev/null
+++ b/tests/nfct/timeout/08gre
@@ -0,0 +1,16 @@
+# add policy object `test'
+nfct timeout add test inet gre unreplied 10 ; OK
+# get policy object `test'
+nfct timeout get test ; OK
+# delete policy object `test'
+nfct timeout delete test ; OK
+# get unexistent policy object `dummy'
+nfct timeout get test ; BAD
+# delete policy object `test', however, it does not exists anymore
+nfct timeout delete test ; BAD
+# add policy object `test'
+nfct timeout add test inet gre unreplied 1 replied 2 ; OK
+# get policy object `test'
+nfct timeout get test ; OK
+# delete policy object `test'
+nfct timeout delete test ; OK