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

chore: Use Java Auth Library's GDU constant #2340

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

lqiu96
Copy link
Contributor

@lqiu96 lqiu96 commented Jan 4, 2024

No description provided.

@lqiu96 lqiu96 requested a review from a team as a code owner January 4, 2024 22:44
@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Jan 4, 2024
@lqiu96
Copy link
Contributor Author

lqiu96 commented Jan 4, 2024

Depends on: #2341 to bump in the dependencies.properties

@product-auto-label product-auto-label bot added size: l Pull request size is large. and removed size: s Pull request size is small. labels Jan 5, 2024
@lqiu96 lqiu96 force-pushed the use-credentials-GDU-constant branch from e103591 to cbe3707 Compare January 5, 2024 02:08
@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: l Pull request size is large. labels Jan 5, 2024
Copy link

sonarqubecloud bot commented Jan 5, 2024

Quality Gate Passed Quality Gate passed for 'gapic-generator-java-root'

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

sonarqubecloud bot commented Jan 5, 2024

Quality Gate Passed Quality Gate passed for 'java_showcase_integration_tests'

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
71.4% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@lqiu96 lqiu96 requested a review from blakeli0 January 5, 2024 21:32
@@ -200,7 +200,7 @@ private String determineEndpoint() throws IOException {

// Check if mTLS is configured with non-GDU
if (endpoint.equals(mtlsEndpoint())
&& !resolvedUniverseDomain().equals(GOOGLE_DEFAULT_UNIVERSE)) {
&& !resolvedUniverseDomain().equals(Credentials.GOOGLE_DEFAULT_UNIVERSE)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I might missed this in earlier PRs, since we only set resolvedUniverseDomain later, resolvedUniverseDomain() is always null here?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Never mind, resolvedUniverseDomain was already set in previous steps. It's still good to move Credentials.GOOGLE_DEFAULT_UNIVERSE to the left of the equals method though.

@lqiu96 lqiu96 merged commit a0f3ea1 into main Jan 8, 2024
39 checks passed
@lqiu96 lqiu96 deleted the use-credentials-GDU-constant branch January 8, 2024 17:28
lqiu96 added a commit that referenced this pull request Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants