testprogs/blackbox: add test_trust_utils.sh
[Samba.git] / ctdb / tests / eventscripts / 11.natgw.014.sh
blob462756c062dc87963e040e33158ee35531f50854
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "slave node, no gateway"
7 setup_ctdb
9 setup_ctdb_natgw <<EOF
10 192.168.1.21
11 192.168.1.22 master
12 192.168.1.23
13 192.168.1.24
14 EOF
16 CTDB_NATGW_DEFAULT_GATEWAY=""
18 ok_null
19 simple_test_event "ipreallocated"
21 ok "default via ${FAKE_CTDB_NATGW_MASTER} dev ethXXX metric 10 "
22 simple_test_command ip route show
24 ok_natgw_slave_ip_addr_show
25 simple_test_command ip addr show "$CTDB_NATGW_PUBLIC_IFACE"