-
Notifications
You must be signed in to change notification settings - Fork 712
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#! /bin/bash | ||
|
||
. ./config.sh | ||
|
||
start_suite "Launch 2 scopes and check they cluster automatically, with custom weave domain" | ||
|
||
weave_on $HOST1 launch --dns-domain foo.local $HOST1 $HOST2 | ||
weave_on $HOST2 launch --dns-domain foo.local $HOST1 $HOST2 | ||
|
||
scope_on $HOST1 launch --weave.hostname=bar.foo.local | ||
scope_on $HOST2 launch --weave.hostname bar.foo.local | ||
|
||
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 |