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

. "${TEST_SCRIPTS_DIR}/unit.sh"

define_test "missing config file"

setup_ctdb
setup_ctdb_policy_routing

# Error because policy routing is configured but the configuration
# file is missing.
required_result 1 <<EOF
error: CTDB_PER_IP_ROUTING_CONF=${CTDB_BASE}/policy_routing file not found
EOF

for i in "startup" "ipreallocated" "monitor" ; do
    simple_test_event "$i"
done