Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Refresh and validate credentials after setting env var creds #71

Merged
merged 3 commits into from
Jun 3, 2020

Conversation

clareliguori
Copy link
Member

Fixes #57

Successful actions run:
https://github.com/clareliguori/configure-aws-credentials/runs/722182739?check_suite_focus=true

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@clareliguori clareliguori changed the title Try validating credentials feat: Refresh and validate credentials after setting env var creds May 30, 2020
@clareliguori clareliguori requested a review from a team May 30, 2020 00:37
@allisaurus allisaurus self-assigned this Jun 3, 2020
@@ -134,6 +152,59 @@ describe('Configure AWS Credentials', () => {
expect(core.setSecret).toHaveBeenCalledWith(FAKE_ACCOUNT_ID);
});

test('action with no accessible credentials fails', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we've got a couple tests for error cases, but is there any way to meaningfully test the positive case (correctly configuring diff creds in sequence)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I made this integ test that I confirmed fails prior to the change and passes after, but let me try to add a unit test too
#70

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@mergify mergify bot merged commit 472e549 into aws-actions:master Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to log out?
2 participants