smbd: Simplify validate_lock_entries
[Samba.git] / ctdb / tests / eventscripts / 13.per_ip_routing.019.sh
blob072c929d8b4f719bd9e4c315101de02a7bc490da
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "1 IP configured, ipreallocated, less routes, reconfigure"
7 setup_ctdb
8 setup_ctdb_policy_routing
10 create_policy_routing_config 1 default
12 # no takeip, but ipreallocated should add any missing routes
13 ok_null
14 simple_test_event "ipreallocated"
16 # rewrite the configuration to take out the default routes, as per the
17 # above change to $args
18 create_policy_routing_config 1
20 # reconfigure should update routes even though rules are unchanged
21 ok "Reconfiguring service \""${service_name}\""..."
22 simple_test_event "reconfigure"
24 check_routes 1