Skip to content

Commit

Permalink
refactor: universe_domain endpoint to universe-domain (#1810)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-goog authored May 8, 2024
1 parent 4d67f07 commit bb306ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/auth/googleauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export class GoogleAuth<T extends AuthClient = JSONClient> {
let universeDomain: string;

try {
universeDomain = await gcpMetadata.universe('universe_domain');
universeDomain = await gcpMetadata.universe('universe-domain');
universeDomain ||= DEFAULT_UNIVERSE;
} catch (e) {
if (e && (e as GaxiosError)?.response?.status === 404) {
Expand Down
2 changes: 1 addition & 1 deletion test/test.googleauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe('googleauth', () => {
const host = HOST_ADDRESS;
const instancePath = `${BASE_PATH}/instance`;
const svcAccountPath = `${instancePath}/service-accounts/default/email`;
const universeDomainPath = `${BASE_PATH}/universe/universe_domain`;
const universeDomainPath = `${BASE_PATH}/universe/universe-domain`;
const API_KEY = 'test-123';
const PEM_PATH = './test/fixtures/private.pem';
const STUB_PROJECT = 'my-awesome-project';
Expand Down

0 comments on commit bb306ef

Please sign in to comment.