From f9354c9eb6752e583bdcdf7e8af658e262fb77b0 Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Wed, 19 Feb 2025 16:03:57 -0800 Subject: [PATCH] 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 --- test/s3api/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/s3api/__init__.py b/test/s3api/__init__.py index 8eaa65567e..a5e6e81691 100644 --- a/test/s3api/__init__.py +++ b/test/s3api/__init__.py @@ -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')