1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

ctdb-tests: Automate expected NFS test results instead of hard-coding

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2015-06-17 17:13:31 +10:00 committed by Amitay Isaacs
parent 5c7cd209cb
commit 90607e75d2
3 changed files with 3 additions and 95 deletions

View File

@ -7,11 +7,5 @@ define_test "rquotad down"
setup_nfs_ganesha
rpc_services_down "rquotad"
ok<<EOF
ERROR: rquotad failed RPC check:
rpcinfo: RPC: Program not registered
program rquotad version 1 is not available
Trying to restart rquotad [rpc.rquotad]
EOF
rpc_set_service_failure_response "rquotad"
simple_test

View File

@ -9,47 +9,4 @@ define_test "statd down, 10 iterations"
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 $?
simple_test || exit $?
simple_test || exit $?
simple_test || exit $?
CTDB_NFS_DUMP_STUCK_THREADS=3
FAKE_RPC_THREAD_PIDS=1234
required_result 1 <<EOF
ERROR: status failed RPC check:
rpcinfo: RPC: Program not registered
program status version 1 is not available
Trying to restart statd [rpc.statd]
Stack trace for rpc.statd[1234]:
[<ffffffff87654321>] fake_stack_trace_for_pid_1234/stack+0x0/0xff
EOF
simple_test || exit $?
nfs_iterate_test 10 "status"

View File

@ -9,47 +9,4 @@ define_test "statd down, 10 iterations"
setup_nfs
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 $?
simple_test || exit $?
simple_test || exit $?
simple_test || exit $?
CTDB_NFS_DUMP_STUCK_THREADS=3
FAKE_RPC_THREAD_PIDS=1234
required_result 1 <<EOF
ERROR: status failed RPC check:
rpcinfo: RPC: Program not registered
program status version 1 is not available
Trying to restart statd [rpc.statd]
Stack trace for rpc.statd[1234]:
[<ffffffff87654321>] fake_stack_trace_for_pid_1234/stack+0x0/0xff
EOF
simple_test || exit $?
nfs_iterate_test 10 "status"