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

Reset S3-client object after each test #19553

Merged
merged 1 commit into from Jan 2, 2018
Merged

Conversation

wjordan
Copy link
Contributor

@wjordan wjordan commented Dec 8, 2017

Fixes regression in test-creation caused by #18812.

Now that S3-client objects (containing AWS credentials) are cached in class variables, we need to explicitly reset them in order to ensure that they are not reused across tests.

This fixes a regression in recording new tests (or re-recording an existing test), when a cached S3-client is populated with test credentials (by a pre-recorded test), then a subsequent test requires actual credentials (for a not-yet-recorded test).

Cached S3-client objects contain AWS credentials,
so reset them to ensure that they are not reused across tests.
@wjordan wjordan requested a review from cpirich December 8, 2017 20:36
@islemaster islemaster closed this Dec 14, 2017
@wjordan wjordan changed the base branch from staging-next to staging December 15, 2017 15:18
@wjordan wjordan reopened this Dec 15, 2017
@wjordan wjordan merged commit dd28203 into staging Jan 2, 2018
@wjordan wjordan deleted the s3_client_credential_fix branch January 2, 2018 20:49
wjordan added a commit that referenced this pull request Jan 3, 2018
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.

None yet

2 participants