Skip to content

Commit

Permalink
Merge pull request #327 from weaveworks/319-integration-test-sans-weave
Browse files Browse the repository at this point in the history
add integration test for launching scope without weave installed
  • Loading branch information
tomwilkie committed Jul 20, 2015
2 parents 275aec4 + 799e5b2 commit 69265d2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions integration/105_launch_sans_weave_test.sh
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion integration/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 69265d2

Please sign in to comment.