Skip to content

fix(gax): treat empty GOOGLE_CLOUD_UNIVERSE_DOMAIN env var as unset - #95

Open
lqiu96 wants to merge 1 commit into
mainfrom
fix/gax-empty-universe-domain-env
Open

lqiu96 wants to merge 1 commit into
mainfrom
fix/gax-empty-universe-domain-env

Conversation

@lqiu96

@lqiu96 lqiu96 commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Update EndpointContext.Builder#determineUniverseDomain() to treat an empty GOOGLE_CLOUD_UNIVERSE_DOMAIN environment variable ("") as unset and fall back to googleapis.com, while preserving IllegalArgumentException when universeDomain is explicitly set to "".
  • Read GOOGLE_CLOUD_UNIVERSE_DOMAIN via envProvider() (which defaults to System::getenv) so environment variable resolution can be unit tested in-process.
  • Add unit tests in EndpointContextTest covering empty env var fallback, non-empty env var resolution, and explicit empty rejection.

@lqiu96
lqiu96 force-pushed the fix/gax-empty-universe-domain-env branch from 2b59aa1 to fa07ad6 Compare November 24, 2026 06:05
@lqiu96
lqiu96 force-pushed the fix/gax-empty-universe-domain-env branch from fa07ad6 to 11e291e Compare November 30, 2026 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant