Add integration test for the proxy, using docker-py client

This commit is contained in:
Paul Bellamy committed 2015-05-19 10:34:45 +01:00
1 parent 6c4271f15d
commit 5a6a67f632
3 files changed
+38

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
#! /bin/bash
. ./config.sh
start_suite "Proxy waits for weave to be ready before running container commands"
weave_on $HOST1 launch-proxy
BASE_IMAGE=ubuntu
# Ensure the base image does not exist, so that it will be pulled
if (docker_on $HOST1 images $BASE_IMAGE | grep $BASE_IMAGE); then
docker_on $HOST1 rmi $BASE_IMAGE
fi
assert_raises "docker_proxy_on $HOST1 run -e 'WEAVE_CIDR=10.2.1.1/24' $BASE_IMAGE ip link show ethwe | grep 'state UP'"
end_suite