summaryrefslogtreecommitdiffstats
path: root/tests/py/ip
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2016-08-29 19:50:45 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2016-08-29 20:30:23 +0200
commitd089630ecbc783d7f0c6df972033694b1671c009 (patch)
tree813700a839e569116e40f30d81ca228748ecb20d /tests/py/ip
parente7b1270057037c1c2524204c4c903c995cf77aab (diff)
tests: py: adapt it to new add element command semantics
Since fd33d96 ("src: create element command"), add element doesn't fail anymore if the element exists, you have to use create instead in case you want to check if the element already exists. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/ip')
-rw-r--r--tests/py/ip/sets.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/py/ip/sets.t b/tests/py/ip/sets.t
index 0e2b1935..ee17d998 100644
--- a/tests/py/ip/sets.t
+++ b/tests/py/ip/sets.t
@@ -13,9 +13,9 @@
!set1 type ipv4_addr;ok
?set1 192.168.3.4;ok
-?set1 192.168.3.4;fail
+?set1 192.168.3.4;ok
+?set1 192.168.3.5 192.168.3.6;ok
?set1 192.168.3.5 192.168.3.6;ok
-?set1 192.168.3.5 192.168.3.6;fail
?set1 192.168.3.8 192.168.3.9;ok
?set1 192.168.3.10 192.168.3.11;ok
?set1 1234:1234:1234:1234:1234:1234:1234:1234;fail
@@ -24,7 +24,7 @@
!set2 type ipv4_addr;ok
?set2 192.168.3.4;ok
?set2 192.168.3.5 192.168.3.6;ok
-?set2 192.168.3.5 192.168.3.6;fail
+?set2 192.168.3.5 192.168.3.6;ok
?set2 192.168.3.8 192.168.3.9;ok
?set2 192.168.3.10 192.168.3.11;ok