Skip to content

Commit d49e9d2

Browse files
authored
fix: add missing projectIdentifier to GetServiceAccountOptions (#2468)
1 parent 75940e3 commit d49e9d2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/storage.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import {DEFAULT_UNIVERSE} from 'google-auth-library';
3333

3434
export interface GetServiceAccountOptions {
3535
userProject?: string;
36+
projectIdentifier?: string;
3637
}
3738
export interface ServiceAccount {
3839
emailAddress?: string;

test/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1344,7 +1344,10 @@ describe('Storage', () => {
13441344
});
13451345

13461346
it('should allow user options', done => {
1347-
const options = {};
1347+
const options = {
1348+
projectIdentifier: 'test-identifier',
1349+
userProject: 'test-user-project',
1350+
};
13481351

13491352
storage.request = (reqOpts: DecorateRequestOptions) => {
13501353
assert.strictEqual(reqOpts.qs, options);

0 commit comments

Comments
 (0)