summaryrefslogtreecommitdiffstats
path: root/tests/py/any/ct.t
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-05-09 11:59:39 +0200
committerFlorian Westphal <fw@strlen.de>2018-05-09 11:59:39 +0200
commit71624f25f22b1d750bb532ced75e080b4123fb56 (patch)
tree59bb768cb238ddc096235a377d1ba1aedc065e46 /tests/py/any/ct.t
parent9ef4f9e6fe0c766395d00701131289bc2007c23c (diff)
tests: py: add expires tests with different time bases
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/py/any/ct.t')
-rw-r--r--tests/py/any/ct.t7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/py/any/ct.t b/tests/py/any/ct.t
index ce6d51a4..5ed3b4a0 100644
--- a/tests/py/any/ct.t
+++ b/tests/py/any/ct.t
@@ -63,8 +63,11 @@ ct zone set {123, 127};fail
ct label set {123, 127};fail
ct event set {new, related, destroy, label};fail
-ct expiration 30;ok;ct expiration 30s
-ct expiration 22;ok;ct expiration 22s
+ct expiration 30s;ok
+ct expiration 30000ms;ok;ct expiration 30s
+ct expiration 1m-1h;ok
+ct expiration 1d-1h;fail
+ct expiration > 4d23h59m59s;ok
ct expiration != 233;ok;ct expiration != 3m53s
ct expiration 33-45;ok;ct expiration 33s-45s
ct expiration != 33-45;ok;ct expiration != 33s-45s