setup
-rpc_services_down "portmapper"
-
nfs_iterate_test 2 "portmapper"
setup
-rpc_services_down "nfs"
-
nfs_iterate_test 10 "nfs"
# knfsd fails and attempts to restart it fail.
setup
-rpc_services_down "nfs"
-
nfs_setup_fake_threads "nfsd"
nfs_iterate_test 10 "nfs"
# knfsd fails and attempts to restart it fail.
setup
-rpc_services_down "nfs"
-
nfs_setup_fake_threads "nfsd" 1001 1002 1003
nfs_iterate_test 10 "nfs"
# Test flag to indicate that stats are expected to change
nfs_stats_set_changed "nfs" "status"
-rpc_services_down "nfs"
-
nfs_iterate_test 10 "nfs"
# Test flag to indicate that stats are expected to change
nfs_stats_set_changed "status"
-rpc_services_down "nfs"
-
nfs_iterate_test 10 "nfs"
setup
-rpc_services_down "nlockmgr"
-
nfs_iterate_test 7 "nlockmgr"
setup
-rpc_services_down "nlockmgr"
-
# Iteration 2 should try to restart rpc.lockd. However, our test
# stub rpc.lockd does nothing, so we have to explicitly flag it as up.
setup
-rpc_services_down "rquotad"
-
nfs_iterate_test 7 "rquotad"
setup
-rpc_services_down "rquotad"
-
nfs_iterate_test 7 "rquotad" \
3 'rpc_services_up "rquotad"'
setup
-rpc_services_down "status"
-
nfs_iterate_test 7 "status"
setup
-rpc_services_down "status"
-
nfs_iterate_test 7 "status" \
3 'rpc_services_up "status"'
setup
-rpc_services_down "status"
nfs_setup_fake_threads "rpc.status" 1001
nfs_iterate_test 2 "status"
setup
-rpc_services_down "status"
-
nfs_iterate_test 7 "status"
setup
-rpc_services_down "mountd"
-
nfs_iterate_test 7 "mountd"
setup
-rpc_services_down "mountd"
-
# Iteration 2 should try to restart rpc.mountd. However, our test
# stub rpc.mountd does nothing, so we have to explicitly flag it as
# up.
#
# - 2nd argument is the NFS/RPC service being tested
#
-# rpcinfo is used on each iteration to test the availability of the
-# service
+# This service is marked down before the 1st iteration.
#
-# If this is not set or null then no RPC service is checked and the
-# required output is not reset on each iteration. This is useful in
-# baseline tests to confirm that the eventscript and test
+# rpcinfo is then used on each iteration to test the availability of
+# the service.
+#
+# If this is not set or null it is assumed all services are healthy
+# and no output or non-zero return codes are generated. This is
+# useful in baseline tests to confirm that the eventscript and test
# infrastructure is working correctly.
#
# - Subsequent arguments come in pairs: an iteration number and
shift
fi
+ if [ -n "$_rpc_service" ]; then
+ debug <<EOF
+--------------------------------------------------
+EOF
+ rpc_services_down "$_rpc_service"
+ fi
+
+ debug <<EOF
+--------------------------------------------------
+EOF
# shellcheck disable=SC2154
# Variables defined in define_test()
echo "Running $_repeats iterations of \"$script $event\" $args"