X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/cc9b9dac7be9c0bbf1d8e227466e9c71a7b3d35e..58582ec6765abcbed322d0035eb099a6dde426e5:/tools/salt-install/tests/run-test.sh diff --git a/tools/salt-install/tests/run-test.sh b/tools/salt-install/tests/run-test.sh index b91101ee12..cf43273a14 100755 --- a/tools/salt-install/tests/run-test.sh +++ b/tools/salt-install/tests/run-test.sh @@ -1,42 +1,68 @@ -#!/usr/bin/env /bin/bash +#!/bin/bash # Copyright (C) The Arvados Authors. All rights reserved. # # SPDX-License-Identifier: Apache-2.0 -export ARVADOS_API_TOKEN=changemesystemroottoken -export ARVADOS_API_HOST=__CLUSTER__.__DOMAIN__:__HOST_SSL_PORT__ +export ARVADOS_API_TOKEN=__SYSTEM_ROOT_TOKEN__ +export ARVADOS_API_HOST=__CLUSTER__.__DOMAIN__:__CONTROLLER_EXT_SSL_PORT__ export ARVADOS_API_HOST_INSECURE=true +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 # https://doc.arvados.org/v2.0/install/install-jobs-image.html echo "Creating Arvados Standard Docker Images project" uuid_prefix=$(arv --format=uuid user current | cut -d- -f1) -project_uuid=$(arv --format=uuid group create --group "{\"owner_uuid\": \"${uuid_prefix}-tpzed-000000000000000\", \"group_class\":\"project\", \"name\":\"Arvados Standard Docker Images\"}") -echo "Arvados project uuid is '${project_uuid}'" -read -rd $'\000' newlink <