Files
weave-scope/integration/205_clustering_sans_weave_2_test.sh
Matthias Radestock 30168c520e don't look for 'weaveproxy' - it no longer exists
... as of Weave Net 2.0
2017-06-25 08:08:09 +01:00

27 lines
596 B
Bash
Executable File

#! /bin/bash
# shellcheck disable=SC1091
. ./config.sh
start_suite "Launch 2 scopes and check they cluster (without weave)"
scope_on "$HOST1" launch "$HOST2"
scope_on "$HOST2" launch "$HOST1"
docker_on "$HOST1" run -dit --name db1 peterbourgon/tns-db
docker_on "$HOST2" run -dit --name db2 peterbourgon/tns-db
sleep 30 # need to allow the scopes to poll dns, resolve the other app ids, and send them reports.
check() {
has_container "$1" weave 0
has_container "$1" weavescope 2
has_container "$1" db1
has_container "$1" db2
}
check "$HOST1"
check "$HOST2"
scope_end_suite