Skip to content

Commit

Permalink
Fix aws credentials test
Browse files Browse the repository at this point in the history
  • Loading branch information
steinitzu committed Oct 26, 2023
1 parent 99c33c3 commit a809732
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/load/filesystem/test_aws_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,14 @@ 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']
}
}


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'

0 comments on commit a809732

Please sign in to comment.