Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug #721

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

debug #721

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion app-tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -174,4 +181,4 @@ if [ $RETRY_COUNT -eq $MAX_RETRIES ]; then
exit 1
fi

echo "Tests passed successfully."
echo "Tests passed successfully."
Loading