dns-{add,remove} can add/remove non-container DNS records

...by omitting the container name/id

Fixes #1385.
This commit is contained in:
Matthias Radestock committed 2015-10-08 17:37:35 +01:00
1 parent 60bda7ca25
commit e6b17c701d
2 files changed
+39 -24

No files matched your search

+7
View File
@@ -4,6 +4,7 @@
C1=10.2.0.78
C2=10.2.0.34
C3=10.2.0.12
NAME1=seeone.weave.local
NAME2=seetwo.weave.local
NAME3=seethree.weave.local
@@ -34,4 +35,10 @@ weave_on $HOST1 dns-remove c1 -h $NAME3
assert_no_dns_record $HOST1 c1 $NAME3
weave_on $HOST1 dns-add $C3 -h $NAME1
assert_dns_record $HOST1 c1 $NAME1 $C3
weave_on $HOST1 dns-remove $C3 -h $NAME1
assert_no_dns_record $HOST1 c1 $NAME1
end_suite