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-mixed.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-mixed.t')
-rw-r--r-- | tests/monitor/testcases/set-mixed.t | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/monitor/testcases/set-mixed.t b/tests/monitor/testcases/set-mixed.t new file mode 100644 index 00000000..c4699eda --- /dev/null +++ b/tests/monitor/testcases/set-mixed.t @@ -0,0 +1,19 @@ +# 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;} + +# 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 } + +# 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 } |