From 4926cb6f9ac9411a307c9d3866ed0828faa6e9a0 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Thu, 16 Mar 2017 19:53:44 +0000 Subject: [PATCH] Add test to check that bridge IP is not the same as container IP --- test/830_cni_plugin_test.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/test/830_cni_plugin_test.sh b/test/830_cni_plugin_test.sh index f33485fe..dd6dc7fd 100755 --- a/test/830_cni_plugin_test.sh +++ b/test/830_cni_plugin_test.sh @@ -16,11 +16,23 @@ run_on $HOST1 sudo mkdir -p /opt/cni/bin weave_on $HOST1 setup-cni weave_on $HOST1 launch +C0=$(docker_on $HOST1 run --net=none --name=c0 -dt $SMALL_IMAGE /bin/sh) C1=$(docker_on $HOST1 run --net=none --privileged --name=c1 -dt $SMALL_IMAGE /bin/sh) C2=$(docker_on $HOST1 run --net=none --name=c2 -dt $SMALL_IMAGE /bin/sh) # Enable unsolicited ARPs so that ping after the address reuse does not time out exec_on $HOST1 c1 sysctl -w net.ipv4.conf.all.arp_accept=1 +# Contrived example to trigger the bug in #2839 +cni_connect $HOST1 c0 <