summaryrefslogtreecommitdiffstats
path: root/tests/py/ip6/sets.t
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2016-04-27 14:34:52 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2016-04-27 15:04:30 +0200
commit98ce06f8b546eacb654bb8738eac4383f43fabbf (patch)
treefc016f0cd75b7a6dbc8ef1bc30ef9a6ce56e050a /tests/py/ip6/sets.t
parent61ce4b3e4f1a1e39004e51d8bb138f8b118b353a (diff)
tests/py: explicitly indication of set type and flags from test definitions
This patch adds explicit set type in test definitions, as well as flags. This has triggered a rework that starts by introducing a Set class to make this whole code more extensible and maintainable. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/ip6/sets.t')
-rw-r--r--tests/py/ip6/sets.t10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/py/ip6/sets.t b/tests/py/ip6/sets.t
index 4bfa6146..765b971b 100644
--- a/tests/py/ip6/sets.t
+++ b/tests/py/ip6/sets.t
@@ -5,13 +5,13 @@
*inet;test-inet;input
*netdev;test-netdev;ingress
-!set_ipv6_add1 ipv6_addr;ok
-!set_inet1 inet_proto;ok
-!set_inet inet_service;ok
-!set_time time;ok
+!w type ipv6_addr;ok
+!x type inet_proto;ok
+!y type inet_service;ok
+!z type time;ok
?set2 192.168.3.4;fail
-!set2 ipv6_addr;ok
+!set2 type ipv6_addr;ok
?set2 1234:1234::1234:1234:1234:1234:1234;ok
?set2 1234:1234::1234:1234:1234:1234:1234;fail
?set2 1234::1234:1234:1234;ok