summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/UNIT/eventscripts/13.per_ip_routing.022.sh
blob: 6f0638eaf8ef8623a60aca676129000561f8a9a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

. "${TEST_SCRIPTS_DIR}/unit.sh"

define_test "Invalid table ID range - reversed"

setup

setup_script_options <<EOF
CTDB_PER_IP_ROUTING_TABLE_ID_LOW=9000
CTDB_PER_IP_ROUTING_TABLE_ID_HIGH=1000
EOF

required_result 1 "error: CTDB_PER_IP_ROUTING_TABLE_ID_LOW[${CTDB_PER_IP_ROUTING_TABLE_ID_LOW}] and/or CTDB_PER_IP_ROUTING_TABLE_ID_HIGH[${CTDB_PER_IP_ROUTING_TABLE_ID_HIGH}] improperly configured"
simple_test_event "ipreallocated"