Merge pull request #327 from weaveworks/319-integration-test-sans-weave

add integration test for launching scope without weave installed
This commit is contained in:
Tom Wilkie
2015-07-20 16:02:25 +01:00
2 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
#! /bin/bash
. ./config.sh
start_suite "Launch scope (without weave installed) and check it boots"
assert_raises "run_on $HOST1 \
PATH=/usr/local/scope/bin:/usr/sbin:/usr/bin:/sbin:/bin \
DOCKER_HOST=tcp://$HOST1:$DOCKER_PORT \
scope launch"
assert_raises "curl $HOST1:4040"
end_suite

View File

@@ -8,10 +8,11 @@ echo Copying scope images and scripts to hosts
for HOST in $HOSTS; do
docker_on $HOST load -i ../scope.tar
upload_executable $HOST ../scope
upload_executable $HOST ../scope /usr/local/scope/bin/scope
done
echo Installing weave
for HOST in $HOSTS; do
run_on $HOST "sudo curl -L git.io/weave -o /usr/local/bin/weave"
run_on $HOST "sudo curl -sL git.io/weave -o /usr/local/bin/weave"
run_on $HOST "sudo chmod a+x /usr/local/bin/weave"
done