MonkeyCanCode commented on issue #865: URL: https://github.com/apache/polaris/issues/865#issuecomment-2611517216
So here is this one which @adutra created (not yet ready for review): https://github.com/apache/polaris/pull/804/files It used the following snippet to pass around token for the test: ``` if ! output=$(curl -X POST -H "Polaris-Realm: POLARIS" "http://${POLARIS_HOST:-localhost}:8181/api/catalog/v1/oauth/tokens" \ -d "grant_type=client_credentials" \ -d "client_id=root" \ -d "client_secret=secret" \ -d "scope=PRINCIPAL_ROLE:ALL"); then logred "Error: Failed to retrieve bearer token" exit 1 fi token=$(echo "$output" | awk -F\" '{print $4}') export REGTEST_ROOT_BEARER_TOKEN=$token ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
