diff --git a/test/130_expose_test.sh b/test/130_expose_test.sh index cacc3dfd..d0a26e2a 100755 --- a/test/130_expose_test.sh +++ b/test/130_expose_test.sh @@ -29,6 +29,13 @@ check_container_connectivity() { start_suite "exposing weave network to host" +# expose/hide work prior to launching weave +run_on1 "! $PING $EXP" +weave_on1 "expose $EXP/24" +run_on1 " $PING $EXP" +weave_on1 "hide $EXP/24" +run_on1 "! $PING $EXP" + weave_on $HOST1 launch start_container $HOST1 $C1/24 --name=c1 diff --git a/weave b/weave index 7cbfd0c8..205d3f03 100755 --- a/weave +++ b/weave @@ -947,7 +947,7 @@ case "$COMMAND" in http_call $DNS_CONTAINER_NAME $DNS_HTTP_PORT DELETE /name/weave:expose/${CIDR%/*} 2>/dev/null || true fi done - http_call $CONTAINER_NAME $HTTP_PORT DELETE /ip/weave:expose > /dev/null && true + http_call $CONTAINER_NAME $HTTP_PORT DELETE /ip/weave:expose 2>/dev/null || true ;; stop) [ $# -eq 0 ] || usage