3 .
"${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test
"Release 1 IP, 10 connections killed OK"
9 ctdb_get_1_public_address |
10 while read dev ip bits
; do
11 ip addr add
"${ip}/${bits}" dev
"$dev"
13 # Setup 10 fake connections...
19 while [ $i -lt $count ] ; do
20 echo "${ip}:445 10.254.254.1:1230${i}"
21 # Expected output for killing this connection
22 out
="${out}${out:+${nl}}Killing TCP connection 10.254.254.1:1230${i} ${ip}:445"
24 done >"$FAKE_NETSTAT_TCP_ESTABLISHED_FILE"
28 Killed $count TCP connections to released IP $ip
31 simple_test
$dev $ip $bits