| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | . "${TEST_SCRIPTS_DIR}/unit.sh" |
| 4 | |
| 5 | define_test "CTDB_NATGW_PUBLIC_IP unset, not follower-only" |
| 6 | |
| 7 | setup |
| 8 | |
| 9 | setup_ctdb_natgw <<EOF |
| 10 | 192.168.1.21 leader |
| 11 | 192.168.1.22 |
| 12 | 192.168.1.23 |
| 13 | 192.168.1.24 |
| 14 | EOF |
| 15 | |
| 16 | setup_script_options <<EOF |
| 17 | CTDB_NATGW_PUBLIC_IP="" |
| 18 | EOF |
| 19 | |
| 20 | required_result 1 "Invalid configuration: CTDB_NATGW_PUBLIC_IP not set" |
| 21 | |
| 22 | for i in "startup" "ipreallocated" ; do |
| 23 | simple_test_event "$i" |
| 24 | done |