tests: Allow more configuration for S3 cross-compat tests

Specifically, allow endpoint and region to be configured. This allows
developers to compare boto3 behaviors with TLS enabled/disabled, for
example, or AWS behaviors between different regions.

Change-Id: I4113e2fd47e5535eec8bd9487884af077e8b0318
This commit is contained in:
Tim Burke 2025-02-19 16:03:57 -08:00
parent 8b6abfb85d
commit f9354c9eb6

View File

@ -50,8 +50,8 @@ def load_aws_config(conf_file):
conf = readconf(conf_file, 'default')
global _CONFIG
_CONFIG = {
'endpoint': 'https://s3.amazonaws.com',
'region': 'us-east-1',
'endpoint': conf.get('endpoint', 'https://s3.amazonaws.com'),
'region': conf.get('region', 'us-east-1'),
'access_key1': conf.get('aws_access_key_id'),
'secret_key1': conf.get('aws_secret_access_key'),
'session_token1': conf.get('aws_session_token')