Fix up tests for DNS changes
Now that `weave dns-args` doesn't parse any flags we need to
call it or not call it, which `start_container` will do for us.
Also add back the part of the test where we run weaver with and
without DNS, which had become lost in 8b061fd555
Also change a couple of tests to use proxy to start containers,
again to avoid needing `dns-args` to parse flags.
This commit is contained in:
1 parent
5b2311bb45
commit
9ffd0e3450
4 files changed
+19
-10
No files matched your search
+1
-1
@@ -189,7 +189,7 @@ start_container_image() {
|
||||
fi
|
||||
is_cidr "$1" && { cidr=$1; shift; }
|
||||
container=$(docker_on $host run $weave_dns_args $name_args "$@" -dt $image /bin/sh)
|
||||
if ! weave_on $host attach $cidr $container >/dev/null ; then
|
||||
if ! weave_on $host attach $cidr $ATTACH_ARGS $container >/dev/null ; then
|
||||
docker_on $host rm -f $container
|
||||
return 1
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user