dttung2905 commented on code in PR #16:
URL: https://github.com/apache/iceberg-terraform/pull/16#discussion_r2869978186


##########
Makefile:
##########
@@ -22,8 +22,9 @@ test-integration-setup: ## Start Docker services for 
integration tests
        docker compose -f dev/docker-compose.yml rm -f
        docker compose -f dev/docker-compose.yml up -d --wait
 
-test-integration-exec: ## Run integration tests
-       TF_ACC=1 ICEBERG_CATALOG_URI=http://localhost:8181 go test ./... -v
+test-integration-exec: ## Run integration tests (Iceberg REST at 8181, Polaris 
at 8191)
+       POLARIS_TOKEN=$$(curl -sf 
http://localhost:8191/api/catalog/v1/oauth/tokens --user root:s3cr3t -d 
grant_type=client_credentials -d 'scope=PRINCIPAL_ROLE:ALL' | python3 -c 
"import sys,json; d=json.load(sys.stdin); print(d.get('access_token',''))") && \

Review Comment:
   not the cleanest way to do though. If you know of better way, let me know



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to