Files
weave/test/605_proxy_inspect_test.sh
T
Marc CARRE 43249a8d39 Change all launch-*/stop-* commands to launch/stop.
Given `proxy` & `router` processes have been merged, `launch-proxy`,
`launch-router`, `stop-proxy`, `stop-router` do not make sense any more, and
should just be `launch` and `stop` with the appropriate flags.
2017-05-10 10:25:36 +00:00

16 lines
465 B
Bash
Executable File

#! /bin/bash
. "$(dirname "$0")/config.sh"
start_suite "Check that docker inspect returns the weave IP"
weave_on $HOST1 launch --rewrite-inspect
proxy docker_on $HOST1 run -dt --name c1 $SMALL_IMAGE /bin/sh
inspect_format="{{.Name}} {{.NetworkSettings.MacAddress}} {{.NetworkSettings.IPAddress}}/{{.NetworkSettings.IPPrefixLen}}"
expected="/$(weave_on $HOST1 ps c1)"
assert "proxy docker_on $HOST1 inspect --format='$inspect_format' c1" "$expected"
end_suite