23 lines
567 B
Bash
Executable File
23 lines
567 B
Bash
Executable File
#! /bin/bash
|
|
|
|
. ./config.sh
|
|
|
|
start_suite "Specify initial IPAM seed"
|
|
|
|
# Launch two disconnected routers
|
|
weave_on $HOST1 launch --name ::1 --ipalloc-init seed=::1,::2
|
|
weave_on $HOST2 launch --name ::2 --ipalloc-init seed=::1,::2
|
|
|
|
# Ensure allocations can proceed
|
|
assert_raises "timeout 10 cat <( start_container $HOST1 --name c1)"
|
|
assert_raises "timeout 10 cat <( start_container $HOST2 --name c2)"
|
|
|
|
# Connect routers
|
|
weave_on $HOST2 connect $HOST1
|
|
|
|
# Check connectivity
|
|
assert_raises "exec_on $HOST1 c1 $PING c2"
|
|
assert_raises "exec_on $HOST2 c2 $PING c1"
|
|
|
|
end_suite
|