~ubuntu-branches/ubuntu/vivid/ctdb/vivid-proposed

« back to all changes in this revision

Viewing changes to tests/eventscripts/simple/60.nfs.monitor.122.sh

  • Committer: Package Import Robot
  • Author(s): Mathieu Parent
  • Date: 2011-11-06 15:18:59 UTC
  • mto: (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: package-import@ubuntu.com-20111106151859-84nk51h3enndlo4q
Tags: upstream-1.11+git20111102
ImportĀ upstreamĀ versionĀ 1.11+git20111102

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
. "${EVENTSCRIPTS_TESTS_DIR}/common.sh"
 
4
 
 
5
define_test "lockd down, 15 iterations, back up after 10"
 
6
 
 
7
# This simulates a success the eventscript's automated attempts to
 
8
# restart the service.
 
9
 
 
10
setup_nfs
 
11
rpc_services_down "nlockmgr"
 
12
 
 
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.
 
15
 
 
16
iterate_test 15 "ok_null" \
 
17
    10 "rpc_set_service_failure_response 'lockd'" \
 
18
    11 "rpc_services_up nlockmgr"
 
19