mirror of
https://github.com/weaveworks/scope.git
synced 2026-02-14 18:09:59 +00:00
29 lines
582 B
Bash
Executable File
29 lines
582 B
Bash
Executable File
#! /bin/bash
|
|
|
|
# shellcheck disable=SC1091
|
|
. ./config.sh
|
|
|
|
start_suite "Test short lived connections between containers on different hosts"
|
|
|
|
weave_on "$HOST1" launch "$HOST1" "$HOST2"
|
|
weave_on "$HOST2" launch "$HOST1" "$HOST2"
|
|
|
|
scope_on "$HOST1" launch
|
|
scope_on "$HOST2" launch
|
|
|
|
server_on "$HOST1"
|
|
client_on "$HOST2"
|
|
|
|
sleep 30 # need to allow the scopes to poll dns, resolve the other app ids, and send them reports
|
|
|
|
check() {
|
|
has_container "$1" nginx
|
|
has_container "$1" client
|
|
has_connection containers "$1" client nginx
|
|
}
|
|
|
|
check "$HOST1"
|
|
check "$HOST2"
|
|
|
|
scope_end_suite
|