mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-04 02:30:45 +00:00
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:
14
integration/105_launch_sans_weave_test.sh
Executable file
14
integration/105_launch_sans_weave_test.sh
Executable 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user