Extend tests to check it shows up. Tests assume that metrics are published with metrics in alphabetical order, which appears to be the case for now.
22 lines
656 B
Bash
Executable File
22 lines
656 B
Bash
Executable File
#!/bin/bash
|
|
|
|
. "$(dirname "$0")/config.sh"
|
|
|
|
C1=10.2.1.4
|
|
C2=10.2.1.7
|
|
|
|
start_suite "Ping over encrypted cross-host weave network (sleeve)"
|
|
|
|
WEAVE_NO_FASTDP=1 weave_on $HOST1 launch --password wfvAwt7sj
|
|
WEAVE_NO_FASTDP=1 weave_on $HOST2 launch --password wfvAwt7sj $HOST1
|
|
|
|
start_container $HOST1 $C1/24 --name=c1
|
|
start_container $HOST2 $C2/24 --name=c2
|
|
assert_raises "exec_on $HOST1 c1 $PING $C2"
|
|
|
|
assert_raises "weave_on $HOST1 status connections | grep -P 'encrypted *sleeve'"
|
|
assert_raises "weave_on $HOST2 status connections | grep -P 'encrypted *sleeve'"
|
|
assert "connections_metric $HOST1 encryption=\\\"yes\\\"",state=\\\"established\\\" "1"
|
|
|
|
end_suite
|