@@ -1149,9 +1149,8 @@ describe('googleauth', () => {
1149
1149
1150
1150
it ( 'getCredentials should get metadata from the server when running on GCE' , async ( ) => {
1151
1151
const clientEmail = '[email protected] ' ;
1152
- const universeDomain = 'my-amazing-universe.com' ;
1153
1152
const scopes = [
1154
- nockIsGCE ( { universeDomain } ) ,
1153
+ nockIsGCE ( ) ,
1155
1154
createGetProjectIdNock ( ) ,
1156
1155
nock ( host ) . get ( svcAccountPath ) . reply ( 200 , clientEmail , HEADERS ) ,
1157
1156
] ;
@@ -1160,7 +1159,6 @@ describe('googleauth', () => {
1160
1159
const body = await auth . getCredentials ( ) ;
1161
1160
assert . ok ( body ) ;
1162
1161
assert . strictEqual ( body . client_email , clientEmail ) ;
1163
- assert . strictEqual ( body . universe_domain , universeDomain ) ;
1164
1162
assert . strictEqual ( body . private_key , undefined ) ;
1165
1163
scopes . forEach ( s => s . done ( ) ) ;
1166
1164
} ) ;
@@ -1644,14 +1642,6 @@ describe('googleauth', () => {
1644
1642
assert . notEqual ( universe_domain , DEFAULT_UNIVERSE ) ;
1645
1643
assert . equal ( await auth . getUniverseDomain ( ) , universe_domain ) ;
1646
1644
} ) ;
1647
-
1648
- it ( 'should use the metadata service if on GCP' , async ( ) => {
1649
- const universeDomain = 'my.universe.com' ;
1650
- const scope = nockIsGCE ( { universeDomain} ) ;
1651
-
1652
- assert . equal ( await auth . getUniverseDomain ( ) , universeDomain ) ;
1653
- await scope . done ( ) ;
1654
- } ) ;
1655
1645
} ) ;
1656
1646
1657
1647
function mockApplicationDefaultCredentials ( path : string ) {
0 commit comments