From 6d8c7bfa5d29793d42d780cb9a53112eea46487a Mon Sep 17 00:00:00 2001 From: Denis DelGrosso Date: Mon, 13 May 2024 15:19:48 +0000 Subject: [PATCH] fix: add missing projectIdentifier to GetServiceAccountOptions --- src/storage.ts | 1 + test/index.ts | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/storage.ts b/src/storage.ts index 681145d3d..224a70b2c 100644 --- a/src/storage.ts +++ b/src/storage.ts @@ -33,6 +33,7 @@ import {DEFAULT_UNIVERSE} from 'google-auth-library'; export interface GetServiceAccountOptions { userProject?: string; + projectIdentifier?: string; } export interface ServiceAccount { emailAddress?: string; diff --git a/test/index.ts b/test/index.ts index 34104d743..6d10c02a3 100644 --- a/test/index.ts +++ b/test/index.ts @@ -1344,7 +1344,10 @@ describe('Storage', () => { }); it('should allow user options', done => { - const options = {}; + const options = { + projectIdentifier: 'test-identifier', + userProject: 'test-user-project', + }; storage.request = (reqOpts: DecorateRequestOptions) => { assert.strictEqual(reqOpts.qs, options);