3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "1 IP configured, takeip, releaseip, ipreallocated"
7 # This partly tests the test infrastructure. If the (stub) "ctdb
8 # moveip" doesn't do anything then the IP being released will still be
9 # on the node and the ipreallocated event will add the routes back.
13 create_policy_routing_config 1 default
15 ctdb_get_1_public_address |
16 while read dev ip bits ; do
18 simple_test_event "takeip" $dev $ip $bits
22 simple_test_event "releaseip" $dev $ip $bits
25 simple_test_event "ipreallocated"
28 # all routes should have been removed and not added back