+set -o pipefail
+
+# First, validate that the CA is installed and that we can query it with no errors.
+if ! curl -s -o /dev/null https://${ARVADOS_API_HOST}/users/welcome?return_to=%2F; then
+ echo "The Arvados CA was not correctly installed. Although some components will work,"
+ echo "others won't. Please verify that the CA cert file was installed correctly and"
+ echo "retry running these tests."
+ exit 1
+fi
+
+# Then, run a basic diagnostics test.
+echo "Running arvados-client diagnostics..."
+if ! arvados-client diagnostics -internal-client; then
+ echo "Diagnostics run FAILED, exiting"
+ exit 1
+fi