Use Samba TestCase class, as the python 2.6 one doesn't have assertIs, assertIsInstan...
[Samba.git] / ctdb / tests / eventscripts / 60.nfs.monitor.122.sh
blobfc5cea87c75586f76451f44d36a2f97bb2388b6d
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "lockd down, 15 iterations, back up after 10"
7 # This simulates a success the eventscript's automated attempts to
8 # restart the service.
10 setup_nfs
11 rpc_services_down "nlockmgr"
13 # Iteration 10 should try to restart rpc.lockd. However, our test
14 # stub rpc.lockd does nothing, so we have to explicitly flag it as up.
16 iterate_test 15 "ok_null" \
17 10 "rpc_set_service_failure_response 'lockd'" \
18 11 "rpc_services_up nlockmgr"