Skip to content

Commit eb1e373

Browse files
Do not call GetAccounts with empty filters
Issue: ZENKO-4838
1 parent edf54e4 commit eb1e373

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/ctst/steps/iam-policies/common.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@ When('the user tries to perform vault auth {string}', async function (this: Zenk
3434

3535
switch (action) {
3636
case 'GetAccountInfo':
37-
this.setResult(await VaultAuth.getAccounts(null, null, null, {}, vaultAuthClientOptions) as Command);
37+
this.setResult(await VaultAuth.getAccounts([
38+
this.getSaved<string>('accountNameForScenario') || this.parameters.AccountName,
39+
], null, null, {
40+
// @ts-expect-error accountNames is not generated by CTST yet
41+
accountNames: true,
42+
}, vaultAuthClientOptions) as Command);
3843
break;
3944
default:
4045
throw new Error(`Action ${action} is not supported`);

0 commit comments

Comments
 (0)