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

Export mock aws credentials for s3 tests #7176

Merged
merged 2 commits into from
Jan 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions python/cudf/cudf/tests/test_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ def s3_base(worker_id):
Fixture to set up moto server in separate process
"""
with ensure_safe_environment_variables():
# Fake aws credentials exported to prevent botocore looking for
# system aws credentials, https://github.com/spulec/moto/issues/1793
os.environ.setdefault("AWS_ACCESS_KEY_ID", "foobar_key")
os.environ.setdefault("AWS_SECRET_ACCESS_KEY", "foobar_secret")

# Launching moto in server mode, i.e., as a separate process
# with an S3 endpoint on localhost

Expand Down
5 changes: 5 additions & 0 deletions python/dask_cudf/dask_cudf/io/tests/test_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ def s3_base(worker_id):
Fixture to set up moto server in separate process
"""
with ensure_safe_environment_variables():
# Fake aws credentials exported to prevent botocore looking for
# system aws credentials, https://github.com/spulec/moto/issues/1793
os.environ.setdefault("AWS_ACCESS_KEY_ID", "foobar_key")
os.environ.setdefault("AWS_SECRET_ACCESS_KEY", "foobar_secret")

# Launching moto in server mode, i.e., as a separate process
# with an S3 endpoint on localhost

Expand Down