From abd40b25d2ed413994e19699425964115ef49aa5 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 19 Jul 2017 15:05:29 +0200 Subject: tests: Add basic monitor testing framework This implements testing of 'nft monitor' output correctness and adds a number of testcases for named sets. Signed-off-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- tests/monitor/testcases/set-maps.t | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/monitor/testcases/set-maps.t (limited to 'tests/monitor/testcases/set-maps.t') diff --git a/tests/monitor/testcases/set-maps.t b/tests/monitor/testcases/set-maps.t new file mode 100644 index 00000000..d94016be --- /dev/null +++ b/tests/monitor/testcases/set-maps.t @@ -0,0 +1,11 @@ +# 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 } + +I add element ip t portip { 80-100: 10.0.0.1 } +O add element ip t portip { 80-100 : 10.0.0.1 } + +I add element ip t portip { 1024-65535: 10.0.0.1 } +O add element ip t portip { 1024-65535 : 10.0.0.1 } -- cgit v1.2.3