File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ import {
42
42
} from '../../../src/auth/auth-config' ;
43
43
import { deepCopy } from '../../../src/utils/deep-copy' ;
44
44
import { TenantManager } from '../../../src/auth/tenant-manager' ;
45
+ import { HttpClient } from '../../../src/utils/api-request' ;
45
46
46
47
chai . should ( ) ;
47
48
chai . use ( sinonChai ) ;
@@ -357,7 +358,8 @@ AUTH_CONFIGS.forEach((testConfig) => {
357
358
358
359
it ( 'should be eventually rejected if a cert credential is not specified' , ( ) => {
359
360
const mockCredentialAuth = testConfig . init ( mocks . mockCredentialApp ( ) ) ;
360
-
361
+ // Force the service account ID discovery to fail.
362
+ getTokenStub = sinon . stub ( HttpClient . prototype , 'send' ) . rejects ( utils . errorFrom ( { } ) ) ;
361
363
return mockCredentialAuth . createCustomToken ( mocks . uid , mocks . developerClaims )
362
364
. should . eventually . be . rejected . and . have . property ( 'code' , 'auth/invalid-credential' ) ;
363
365
} ) ;
You can’t perform that action at this time.
0 commit comments