mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
ctdb-tests: Improve releaseip connection resetting tests
Make the tests more general by setting up the IP address using a "takeip" event. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
0dce39e278
commit
e78d2cbff2
@ -8,7 +8,8 @@ setup_ctdb
|
||||
|
||||
ctdb_get_1_public_address |
|
||||
while read dev ip bits ; do
|
||||
ip addr add "${ip}/${bits}" dev "$dev"
|
||||
ok_null
|
||||
simple_test_event "takeip" $dev $ip $bits
|
||||
|
||||
count=10
|
||||
setup_tcp_connections $count \
|
||||
@ -18,5 +19,5 @@ while read dev ip bits ; do
|
||||
Killed ${count}/${count} TCP connections to released IP $ip
|
||||
EOF
|
||||
|
||||
simple_test $dev $ip $bits
|
||||
simple_test_event "releaseip" $dev $ip $bits
|
||||
done
|
@ -8,7 +8,8 @@ setup_ctdb
|
||||
|
||||
ctdb_get_1_public_address |
|
||||
while read dev ip bits ; do
|
||||
ip addr add "${ip}/${bits}" dev "$dev"
|
||||
ok_null
|
||||
simple_test_event "takeip" $dev $ip $bits
|
||||
|
||||
count=10
|
||||
setup_tcp_connections $count \
|
||||
@ -23,5 +24,5 @@ Remaining connections:
|
||||
10.0.0.3:445 10.254.254.1:43211
|
||||
EOF
|
||||
|
||||
simple_test $dev $ip $bits
|
||||
simple_test_event "releaseip" $dev $ip $bits
|
||||
done
|
@ -8,7 +8,8 @@ setup_ctdb
|
||||
|
||||
ctdb_get_1_public_address |
|
||||
while read dev ip bits ; do
|
||||
ip addr add "${ip}/${bits}" dev "$dev"
|
||||
ok_null
|
||||
simple_test_event "takeip" $dev $ip $bits
|
||||
|
||||
count=10
|
||||
|
||||
@ -26,5 +27,5 @@ Remaining connections:
|
||||
10.0.0.3:445 10.254.254.3:43213
|
||||
EOF
|
||||
|
||||
simple_test $dev $ip $bits
|
||||
simple_test_event "releaseip" $dev $ip $bits
|
||||
done
|
@ -8,7 +8,8 @@ setup_ctdb
|
||||
|
||||
ctdb_get_1_public_address |
|
||||
while read dev ip bits ; do
|
||||
ip addr add "${ip}/${bits}" dev "$dev"
|
||||
ok_null
|
||||
simple_test_event "takeip" $dev $ip $bits
|
||||
|
||||
setup_tcp_connections 0
|
||||
|
||||
@ -31,5 +32,5 @@ Remaining connections:
|
||||
10.0.0.3:445 10.254.254.10:43220
|
||||
EOF
|
||||
|
||||
simple_test $dev $ip $bits
|
||||
simple_test_event "releaseip" $dev $ip $bits
|
||||
done
|
Loading…
x
Reference in New Issue
Block a user