summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/eventscripts/60.nfs.monitor.121.sh
blob: 6d27f60b27abaf4c040867e2db90a8baaf66613d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

. "${TEST_SCRIPTS_DIR}/unit.sh"

define_test "lockd down, 15 iterations"

# This simulates an ongoing failure in the eventscript's automated
# attempts to restart the service.  That is, the eventscript is unable
# to restart the service.

setup_nfs
rpc_services_down "nlockmgr"

#EVENTSCRIPTS_TESTS_TRACE="sh -x"
iterate_test 15 "ok_null" \
    10 "rpc_set_service_failure_response 'lockd'" \
    15 "rpc_set_service_failure_response 'lockd'"