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-mixed.t | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'tests/monitor/testcases/set-mixed.t') diff --git a/tests/monitor/testcases/set-mixed.t b/tests/monitor/testcases/set-mixed.t index 2eb35b5a..9c1c5323 100644 --- a/tests/monitor/testcases/set-mixed.t +++ b/tests/monitor/testcases/set-mixed.t @@ -1,19 +1,15 @@ # first the setup I add table ip t -O add table ip t I add set ip t portrange { type inet_service; flags interval; } -O add set ip t portrange { type inet_service;flags interval; } I add set ip t ports { type inet_service; } -O add set ip t ports { type inet_service;} +O - # make sure concurrent adds work I add element ip t portrange { 1024-65535 } I add element ip t ports { 10 } -O add element ip t portrange { 1024-65535 } -O add element ip t ports { 10 } +O - # delete items again I delete element ip t portrange { 1024-65535 } I delete element ip t ports { 10 } -O delete element ip t portrange { 1024-65535 } -O delete element ip t ports { 10 } +O - -- cgit v1.2.3