From a80973207481fc1c037b0d873e10ab5e9f0a8b1a Mon Sep 17 00:00:00 2001 From: Steinthor Palsson Date: Wed, 25 Oct 2023 20:05:02 -0400 Subject: [PATCH] Fix aws credentials test --- tests/load/filesystem/test_aws_credentials.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/load/filesystem/test_aws_credentials.py b/tests/load/filesystem/test_aws_credentials.py index b4f367b4e1..f75b5fb79c 100644 --- a/tests/load/filesystem/test_aws_credentials.py +++ b/tests/load/filesystem/test_aws_credentials.py @@ -130,6 +130,9 @@ def test_aws_credentials_with_endpoint_url(environment: Dict[str, str]) -> None: "token": "fake_session_token", "profile": None, "endpoint_url": "https://123.r2.cloudflarestorage.com", + "client_kwargs": { + "region_name": environment['AWS_DEFAULT_REGION'] + } } @@ -137,4 +140,4 @@ def set_aws_credentials_env(environment: Dict[str, str]) -> None: environment['AWS_ACCESS_KEY_ID'] = 'fake_access_key' environment['AWS_SECRET_ACCESS_KEY'] = 'fake_secret_key' environment['AWS_SESSION_TOKEN'] = 'fake_session_token' - environment['REGION_NAME'] = 'eu-central-1' + environment['AWS_DEFAULT_REGION'] = 'eu-central-1'