From 153900936255e1f7845a48250064ce79a901f06e Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Tue, 1 Dec 2015 17:52:06 +0000 Subject: [PATCH] Simple smoke-test for 'local' plugin network --- test/800_plugin_cross_hosts_2_test.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 test/800_plugin_cross_hosts_2_test.sh diff --git a/test/800_plugin_cross_hosts_2_test.sh b/test/800_plugin_cross_hosts_2_test.sh new file mode 100755 index 00000000..47f82d50 --- /dev/null +++ b/test/800_plugin_cross_hosts_2_test.sh @@ -0,0 +1,21 @@ +#! /bin/bash + +. ./config.sh + +C1_NAME=c1.weave.local +C2_NAME=seetwo.weave.local + +start_suite "Ping and DNS over cross-host weave network (via 'local' plugin)" + +DNS_IP=$(weave_on $host docker-bridge-ip) + +weave_on $HOST1 launch +weave_on $HOST2 launch $HOST1 + +start_container_local_plugin $HOST1 --name=c1 --hostname=$C1_NAME --dns=$DNS_IP +start_container_local_plugin $HOST2 --name=c2 --hostname=$C2_NAME --dns=$DNS_IP + +assert_raises "exec_on $HOST1 c1 $PING $C2_NAME" +assert_raises "exec_on $HOST2 c2 $PING $C1_NAME" + +end_suite