Skip to content

Conversation

difin
Copy link
Contributor

@difin difin commented Oct 9, 2025

What changes were proposed in this pull request?

Added Java integration test for testing HMSRestCatalogClient with Oauth2 mode and changed existing RESCatalog client q-tests (those that use HMS and Gravitino as a server) to use Oauth2.

Why are the changes needed?

To test HMSRestCatalogClient with Oauth2 so that it could be used in production systems.

Does this PR introduce any user-facing change?

No, this PR only adds/updates tests.

How was this patch tested?

New and existing tests.

Copy link

@okumin okumin changed the title HIVE-29020: Iceberg: Validate HMS REST Catalog Client with OAuth2 HIVE-29234: Iceberg: Validate HMS REST Catalog Client with OAuth2 Oct 10, 2025
Copy link
Contributor

@okumin okumin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, +1

Please follow the addressable advice from SonarQube.
https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=6124&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true

I changed the JIRA ticket number in the title because I suspect HIVE-29234 is probably the intended one. Please revert it if I'm wrong

.replace("OAUTH2_JWKS_URI", getJwksUri())
.replace("OAUTH2_CLIENT_ID", OAUTH2_SERVER_ICEBERG_CLIENT_ID)
.replace("OAUTH2_CLIENT_SECRET", OAUTH2_SERVER_ICEBERG_CLIENT_SECRET)
// .replace("localhost", "host.docker.internal")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants