Extend smoke-test to include pinging

This commit is contained in:
Bryan Boreham committed 2016-11-14 12:37:42 +00:00
1 parent e458c11e66
commit 10baab38d3
1 file changed
+8
+8
View File
@@ -44,6 +44,14 @@ wait_for_connections() {
assert_raises wait_for_connections
# Check we can ping between the Weave bridg IPs on each host
HOST1EXPIP=$($SSH $HOST1 "weave expose")
HOST2EXPIP=$($SSH $HOST2 "weave expose")
HOST3EXPIP=$($SSH $HOST3 "weave expose")
assert_raises "run_on $HOST1 $PING $HOST2EXPIP"
assert_raises "run_on $HOST2 $PING $HOST1EXPIP"
assert_raises "run_on $HOST3 $PING $HOST2EXPIP"
# See if we can get some pods running that connect to the network
run_on $HOST1 "kubectl run hello --image=weaveworks/hello-world --replicas=3"