File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/credential-provider-imds/src/remoteProvider Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ const creds: ImdsCredentials = Object.freeze({
13
13
describe ( "isImdsCredentials" , ( ) => {
14
14
it ( "should accept valid ImdsCredentials objects" , ( ) => {
15
15
expect ( isImdsCredentials ( creds ) ) . toBe ( true ) ;
16
+ const { AccountId, ...credsWithoutAccountId } = creds ;
17
+ expect ( isImdsCredentials ( credsWithoutAccountId ) ) . toBe ( true ) ;
16
18
} ) ;
17
19
18
20
it ( "should reject credentials without an AccessKeyId" , ( ) => {
@@ -61,6 +63,6 @@ describe("fromImdsCredentials", () => {
61
63
expect ( converted . secretAccessKey ) . toEqual ( credsWithoutAccountId . SecretAccessKey ) ;
62
64
expect ( converted . sessionToken ) . toEqual ( credsWithoutAccountId . Token ) ;
63
65
expect ( converted . expiration ) . toEqual ( new Date ( credsWithoutAccountId . Expiration ) ) ;
64
- expect ( converted ) . not . toHaveProperty ( ' accountId' ) ; // Verify accountId is not included
66
+ expect ( converted ) . not . toHaveProperty ( " accountId" ) ; // Verify accountId is not included
65
67
} ) ;
66
- } ) ;
68
+ } ) ;
You can’t perform that action at this time.
0 commit comments