summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/UNIT/eventscripts/13.per_ip_routing.021.sh
blob: 876b600cb21be071e0c1ba467adffb3036b938e8 (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 - includes system tables"

setup

setup_script_options <<EOF
CTDB_PER_IP_ROUTING_TABLE_ID_LOW=100
CTDB_PER_IP_ROUTING_TABLE_ID_HIGH=500
EOF

required_result 1 "error: range CTDB_PER_IP_ROUTING_TABLE_ID_LOW[${CTDB_PER_IP_ROUTING_TABLE_ID_LOW}]..CTDB_PER_IP_ROUTING_TABLE_ID_HIGH[${CTDB_PER_IP_ROUTING_TABLE_ID_HIGH}] must not include 253-255"
simple_test_event "ipreallocated"