diff --git a/app-tests/run.sh b/app-tests/run.sh index 212fca023..343a740de 100755 --- a/app-tests/run.sh +++ b/app-tests/run.sh @@ -16,12 +16,19 @@ function generate_opal_keys { rm opal_crypto_key.pub opal_crypto_key OPAL_AUTH_MASTER_TOKEN="$(openssl rand -hex 16)" + # debug + echo "Master token: $OPAL_AUTH_MASTER_TOKEN" + OPAL_AUTH_JWT_AUDIENCE=https://api.opal.ac/v1/ OPAL_AUTH_JWT_ISSUER=https://opal.ac/ OPAL_REPO_WATCHER_ENABLED=0 \ opal-server run & sleep 2; OPAL_CLIENT_TOKEN="$(opal-client obtain-token "$OPAL_AUTH_MASTER_TOKEN" --type client)" OPAL_DATA_SOURCE_TOKEN="$(opal-client obtain-token "$OPAL_AUTH_MASTER_TOKEN" --type datasource)" + # debug + echo "Data source token: $OPAL_DATA_SOURCE_TOKEN" + + # shellcheck disable=SC2009 ps -ef | grep opal-server | grep -v grep | awk '{print $2}' | xargs kill sleep 5; @@ -174,4 +181,4 @@ if [ $RETRY_COUNT -eq $MAX_RETRIES ]; then exit 1 fi -echo "Tests passed successfully." +echo "Tests passed successfully." \ No newline at end of file