Using a different file each time causes the event script to believe
that the configuration has changed even though only the node states
have changed. Change this to stop the tests from doing something
unexpected.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
192.168.1.24
EOF
-ok "NAT gateway configuration has changed"
+ok_null
simple_test_event "ipreallocated"
ok "default via ${FAKE_CTDB_NATGW_MASTER} dev ethXXX metric 10 "
192.168.1.24
EOF
-ok "NAT gateway configuration has changed"
+ok_null
simple_test_event "ipreallocated"
ok "default via ${CTDB_NATGW_DEFAULT_GATEWAY} dev ethXXX metric 10 "
ok_natgw_master_ip_addr_show
simple_test_command ip addr show "$CTDB_NATGW_PUBLIC_IFACE"
-
192.168.1.24
EOF
-ok "NAT gateway configuration has changed"
+ok_null
simple_test_event "ipreallocated"
ok_natgw_slave_static_routes
192.168.1.24
EOF
-ok "NAT gateway configuration has changed"
+ok_null
simple_test_event "ipreallocated"
ok_natgw_master_static_routes
natgw_config_dir="${TEST_VAR_DIR}/natgw_config"
mkdir -p "$natgw_config_dir"
- # These will accumulate, 1 per test... but will be cleaned up at
- # the end.
- export CTDB_NATGW_NODES=$(mktemp --tmpdir="$natgw_config_dir")
+ export CTDB_NATGW_NODES="${natgw_config_dir}/natgw_nodes"
# Read from stdin
while read _ip _opts ; do