wolflex888 commented on code in PR #12595:
URL: https://github.com/apache/iceberg/pull/12595#discussion_r2022054609
##########
core/src/test/java/org/apache/iceberg/rest/TestRESTCatalog.java:
##########
@@ -124,6 +125,8 @@ public void createCatalog() throws Exception {
HTTPHeaders.of(Map.of("Authorization", "Bearer
client-credentials-token:sub=catalog"));
HTTPHeaders contextHeaders =
HTTPHeaders.of(Map.of("Authorization", "Bearer
client-credentials-token:sub=user"));
+ HTTPHeaders generalTestHeaders =
Review Comment:
Because we are doing test using HTTPClient instead of the adapter. The
client will make requests to `oauth/tokens` , `/v1/config` and head
`namespaces/non-existing` accordingly. either `sub=catalog` or `sub=user` will
not work
--
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]