From a7582412cf5bda4c89083c5a26f5dfb237255ada Mon Sep 17 00:00:00 2001 From: Hari Radhakrishnan Date: Fri, 10 Jun 2022 09:19:14 +1000 Subject: [PATCH] fix unit tests --- index.test.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/index.test.js b/index.test.js index 188441716..201d06bf6 100644 --- a/index.test.js +++ b/index.test.js @@ -563,8 +563,7 @@ describe('Configure AWS Credentials', () => { RoleArn: 'arn:aws:iam::111111111111:role/MY-ROLE', RoleSessionName: 'GitHubActions', DurationSeconds: 6 * 3600, - WebIdentityToken: 'testpayload', - SourceIdentity: GITHUB_ACTOR_SANITIZED + WebIdentityToken: 'testpayload' }) }); @@ -578,8 +577,7 @@ describe('Configure AWS Credentials', () => { RoleArn: 'arn:aws:iam::111111111111:role/MY-ROLE', RoleSessionName: 'GitHubActions', DurationSeconds: 6 * 3600, - WebIdentityToken: 'testpayload', - SourceIdentity: GITHUB_ACTOR_SANITIZED + WebIdentityToken: 'testpayload' }) }); @@ -596,8 +594,7 @@ describe('Configure AWS Credentials', () => { RoleArn: 'arn:aws:iam::111111111111:role/MY-ROLE', RoleSessionName: 'GitHubActions', DurationSeconds: 3600, - WebIdentityToken: 'testtoken', - SourceIdentity: GITHUB_ACTOR_SANITIZED + WebIdentityToken: 'testtoken' }); expect(core.setSecret).toHaveBeenNthCalledWith(1, FAKE_STS_ACCESS_KEY_ID); expect(core.setSecret).toHaveBeenNthCalledWith(2, FAKE_STS_SECRET_ACCESS_KEY); @@ -617,8 +614,7 @@ describe('Configure AWS Credentials', () => { RoleArn: 'arn:aws:iam::111111111111:role/MY-ROLE', RoleSessionName: 'GitHubActions', DurationSeconds: CUSTOM_ROLE_DURATION, - WebIdentityToken: 'testtoken', - SourceIdentity: GITHUB_ACTOR_SANITIZED + WebIdentityToken: 'testtoken' }); expect(core.setSecret).toHaveBeenNthCalledWith(1, FAKE_STS_ACCESS_KEY_ID); expect(core.setSecret).toHaveBeenNthCalledWith(2, FAKE_STS_SECRET_ACCESS_KEY);