Skip to content

Commit 7f8f74f

Browse files
authored
fix unit tests (#3)
1 parent 8f3e83f commit 7f8f74f

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
@@ -563,8 +563,7 @@ describe('Configure AWS Credentials', () => {
563563
RoleArn: 'arn:aws:iam::111111111111:role/MY-ROLE',
564564
RoleSessionName: 'GitHubActions',
565565
DurationSeconds: 6 * 3600,
566-
WebIdentityToken: 'testpayload',
567-
SourceIdentity: GITHUB_ACTOR_SANITIZED
566+
WebIdentityToken: 'testpayload'
568567
})
569568
});
570569

@@ -578,8 +577,7 @@ describe('Configure AWS Credentials', () => {
578577
RoleArn: 'arn:aws:iam::111111111111:role/MY-ROLE',
579578
RoleSessionName: 'GitHubActions',
580579
DurationSeconds: 6 * 3600,
581-
WebIdentityToken: 'testpayload',
582-
SourceIdentity: GITHUB_ACTOR_SANITIZED
580+
WebIdentityToken: 'testpayload'
583581
})
584582
});
585583

@@ -596,8 +594,7 @@ describe('Configure AWS Credentials', () => {
596594
RoleArn: 'arn:aws:iam::111111111111:role/MY-ROLE',
597595
RoleSessionName: 'GitHubActions',
598596
DurationSeconds: 3600,
599-
WebIdentityToken: 'testtoken',
600-
SourceIdentity: GITHUB_ACTOR_SANITIZED
597+
WebIdentityToken: 'testtoken'
601598
});
602599
expect(core.setSecret).toHaveBeenNthCalledWith(1, FAKE_STS_ACCESS_KEY_ID);
603600
expect(core.setSecret).toHaveBeenNthCalledWith(2, FAKE_STS_SECRET_ACCESS_KEY);
@@ -617,8 +614,7 @@ describe('Configure AWS Credentials', () => {
617614
RoleArn: 'arn:aws:iam::111111111111:role/MY-ROLE',
618615
RoleSessionName: 'GitHubActions',
619616
DurationSeconds: CUSTOM_ROLE_DURATION,
620-
WebIdentityToken: 'testtoken',
621-
SourceIdentity: GITHUB_ACTOR_SANITIZED
617+
WebIdentityToken: 'testtoken'
622618
});
623619
expect(core.setSecret).toHaveBeenNthCalledWith(1, FAKE_STS_ACCESS_KEY_ID);
624620
expect(core.setSecret).toHaveBeenNthCalledWith(2, FAKE_STS_SECRET_ACCESS_KEY);

0 commit comments

Comments
 (0)