From 3c3c91bda0e0e17ff7791eff5614276bd1c6c148 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 25 Jul 2017 20:39:43 +0200 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- tests/monitor/testcases/set-maps.t | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests/monitor/testcases/set-maps.t') 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 - -- cgit v1.2.3