summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/eventscripts/13.per_ip_routing.004.sh
blob: 4595313b715e5a58ae16de42a259d4feabaa25cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

. "${TEST_SCRIPTS_DIR}/unit.sh"

define_test "empty config, takeip"

setup_ctdb
setup_ctdb_policy_routing

create_policy_routing_config 0

public_address=$(ctdb_get_1_public_address)

ok_null
simple_test_event "takeip" $public_address

# empty configuration file should mean there are no routes
check_routes 0