CVE-2016-0771: tests/dns: Remove dependencies on env variables
[Samba.git] / ctdb / tests / eventscripts / 60.nfs.monitor.122.sh
bloba0e0656c412af988959b68a94c9fb1e99f52cbae
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "lockd down, 7 iterations, back up after 2"
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 2 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 nfs_iterate_test 7 "nlockmgr" \
17 3 "rpc_services_up nlockmgr"