mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-05 11:11:13 +00:00
- Increase waits for system to settle - Add polling for containers and edges - Tabs formatting in setup.sh - 300_internet_edge: Don't let curl fail in subshell (main source of flakyness) - Make last param (count) optional for has_container (from Paul)
30 lines
621 B
Bash
Executable File
30 lines
621 B
Bash
Executable File
#! /bin/bash
|
|
|
|
. ./config.sh
|
|
|
|
start_suite "Launch 2 scopes and check they cluster automatically"
|
|
|
|
weave_on $HOST1 launch $HOST1 $HOST2
|
|
weave_on $HOST2 launch $HOST1 $HOST2
|
|
|
|
scope_on $HOST1 launch
|
|
scope_on $HOST2 launch
|
|
|
|
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 2
|
|
has_container $1 weaveproxy 2
|
|
has_container $1 weavescope 2
|
|
has_container $1 db1
|
|
has_container $1 db2
|
|
}
|
|
|
|
check $HOST1
|
|
check $HOST2
|
|
|
|
scope_end_suite
|