summaryrefslogtreecommitdiffstats
path: root/tests/monitor/testcases/set-maps.t
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2017-07-25 20:39:43 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2017-07-27 10:50:21 +0200
commit3c3c91bda0e0e17ff7791eff5614276bd1c6c148 (patch)
treee582081a1a3137d2c733872883359423379aaa68 /tests/monitor/testcases/set-maps.t
parent8a3b2e7327a3057b5976df4af387b8143aad6110 (diff)
tests/monitor: Simplify testcases
By introducing 'O -' indicating that output should be identical as input, testcases can be simplified quite a bit. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/monitor/testcases/set-maps.t')
-rw-r--r--tests/monitor/testcases/set-maps.t7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/monitor/testcases/set-maps.t b/tests/monitor/testcases/set-maps.t
index 6ea36cb9..3d86720e 100644
--- a/tests/monitor/testcases/set-maps.t
+++ b/tests/monitor/testcases/set-maps.t
@@ -1,11 +1,10 @@
# first the setup
I add table ip t
-O add table ip t
I add map ip t portip { type inet_service: ipv4_addr; flags interval; }
-O add map ip t portip { type inet_service : ipv4_addr;flags interval; }
+O -
I add element ip t portip { 80-100: 10.0.0.1 }
-O add element ip t portip { 80-100 : 10.0.0.1 }
+O -
I add element ip t portip { 1024-65535: 10.0.0.1 }
-O add element ip t portip { 1024-65535 : 10.0.0.1 }
+O -