summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/eventscripts/60.ganesha.monitor.141.sh
blob: 9cd82f84cc2f2d3951061c24f35b6b7e9ab3cac5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh

. "${TEST_SCRIPTS_DIR}/unit.sh"

define_test "statd down, 6 iterations"

# statd fails and attempts to restart it fail.

setup_nfs_ganesha
rpc_services_down "status"

ok_null
simple_test || exit $?

ok<<EOF
Trying to restart statd [rpc.statd]
EOF
simple_test || exit $?

ok_null
simple_test || exit $?

ok<<EOF
ERROR: status failed RPC check:
rpcinfo: RPC: Program not registered
program status version 1 is not available
Trying to restart statd [rpc.statd]
EOF
simple_test || exit $?

ok_null
simple_test || exit $?

required_result 1 <<EOF
ERROR: status failed RPC check:
rpcinfo: RPC: Program not registered
program status version 1 is not available
EOF
simple_test || exit $?