Skip to content

Commit 0945a48

Browse files
hari-radBenSNews
authored andcommitted
fix unit tests (#3)
1 parent 24ef0ea commit 0945a48

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

index.test.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -610,8 +610,7 @@ describe('Configure AWS Credentials', () => {
610610
RoleArn: 'arn:aws:iam::111111111111:role/MY-ROLE',
611611
RoleSessionName: 'GitHubActions',
612612
DurationSeconds: 6 * 3600,
613-
WebIdentityToken: 'testpayload',
614-
SourceIdentity: GITHUB_ACTOR_SANITIZED
613+
WebIdentityToken: 'testpayload'
615614
})
616615
});
617616

@@ -625,8 +624,7 @@ describe('Configure AWS Credentials', () => {
625624
RoleArn: 'arn:aws:iam::111111111111:role/MY-ROLE',
626625
RoleSessionName: 'GitHubActions',
627626
DurationSeconds: 6 * 3600,
628-
WebIdentityToken: 'testpayload',
629-
SourceIdentity: GITHUB_ACTOR_SANITIZED
627+
WebIdentityToken: 'testpayload'
630628
})
631629
});
632630

@@ -643,8 +641,7 @@ describe('Configure AWS Credentials', () => {
643641
RoleArn: 'arn:aws:iam::111111111111:role/MY-ROLE',
644642
RoleSessionName: 'GitHubActions',
645643
DurationSeconds: 3600,
646-
WebIdentityToken: 'testtoken',
647-
SourceIdentity: GITHUB_ACTOR_SANITIZED
644+
WebIdentityToken: 'testtoken'
648645
});
649646
expect(core.setSecret).toHaveBeenNthCalledWith(1, FAKE_STS_ACCESS_KEY_ID);
650647
expect(core.setSecret).toHaveBeenNthCalledWith(2, FAKE_STS_SECRET_ACCESS_KEY);
@@ -664,8 +661,7 @@ describe('Configure AWS Credentials', () => {
664661
RoleArn: 'arn:aws:iam::111111111111:role/MY-ROLE',
665662
RoleSessionName: 'GitHubActions',
666663
DurationSeconds: CUSTOM_ROLE_DURATION,
667-
WebIdentityToken: 'testtoken',
668-
SourceIdentity: GITHUB_ACTOR_SANITIZED
664+
WebIdentityToken: 'testtoken'
669665
});
670666
expect(core.setSecret).toHaveBeenNthCalledWith(1, FAKE_STS_ACCESS_KEY_ID);
671667
expect(core.setSecret).toHaveBeenNthCalledWith(2, FAKE_STS_SECRET_ACCESS_KEY);

0 commit comments

Comments
 (0)