diff options
author | Phil Sutter <phil@nwl.cc> | 2017-07-19 15:05:29 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-07-19 19:24:39 +0200 |
commit | abd40b25d2ed413994e19699425964115ef49aa5 (patch) | |
tree | f0296a9f79cac884b60a1f2e6667b00386eed2b1 /tests/monitor/testcases/set-maps.t | |
parent | 504439a02da3ca284e17b9755f3734e45a68cc44 (diff) |
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 <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.t | 11 |
1 files changed, 11 insertions, 0 deletions
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 } |