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

Fix moto env vars & pass AWS_SESSION_TOKEN to conda builds #12902

Merged
merged 4 commits into from
Mar 8, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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: 4 additions & 1 deletion python/cudf/cudf/tests/test_s3.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020-2022, NVIDIA CORPORATION.
# Copyright (c) 2020-2023, NVIDIA CORPORATION.

import os
import socket
Expand Down Expand Up @@ -62,6 +62,9 @@ def s3_base(endpoint_ip, endpoint_port):
os.environ.setdefault("AWS_ACCESS_KEY_ID", "foobar_key")
ajschmidt8 marked this conversation as resolved.
Show resolved Hide resolved
os.environ.setdefault("AWS_SECRET_ACCESS_KEY", "foobar_secret")
os.environ.setdefault("S3FS_LOGGING_LEVEL", "DEBUG")
os.environ.setdefault("AWS_SECURITY_TOKEN", "foobar_security_token")
os.environ.setdefault("AWS_SESSION_TOKEN", "foobar_session_token")
os.environ.setdefault("AWS_DEFAULT_REGION", "us-east-1")

# Launching moto in server mode, i.e., as a separate process
# with an S3 endpoint on localhost
Expand Down
5 changes: 4 additions & 1 deletion python/dask_cudf/dask_cudf/io/tests/test_s3.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020-2022, NVIDIA CORPORATION.
# Copyright (c) 2020-2023, NVIDIA CORPORATION.

import os
import socket
Expand Down Expand Up @@ -58,6 +58,9 @@ def s3_base(endpoint_ip, endpoint_port):
os.environ.setdefault("AWS_ACCESS_KEY_ID", "foobar_key")
os.environ.setdefault("AWS_SECRET_ACCESS_KEY", "foobar_secret")
os.environ.setdefault("S3FS_LOGGING_LEVEL", "DEBUG")
os.environ.setdefault("AWS_SECURITY_TOKEN", "foobar_security_token")
os.environ.setdefault("AWS_SESSION_TOKEN", "foobar_session_token")
os.environ.setdefault("AWS_DEFAULT_REGION", "us-east-1")

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