ctdb-tests: Move eventscript tests to UNIT/ subdirectory
[vlendec/samba-autobuild/.git] / ctdb / tests / UNIT / eventscripts / 13.per_ip_routing.009.sh
1 #!/bin/sh
2
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
4
5 define_test "All IPs configured, takeip 1 address"
6
7 setup
8
9 # configure all addresses
10 create_policy_routing_config all default
11
12 # add routes for all 1 IP
13 ctdb_get_1_public_address |
14 while read dev ip bits ; do
15     ok_null
16     simple_test_event "takeip" $dev $ip $bits
17 done
18
19 # for 1 IP
20 check_routes 1 default