diff --git a/pytest_tests/testsuites/conftest.py b/pytest_tests/testsuites/conftest.py index 0a145be6..93db652a 100644 --- a/pytest_tests/testsuites/conftest.py +++ b/pytest_tests/testsuites/conftest.py @@ -241,7 +241,9 @@ def s3_client( assert cid in containers_list, f"Expected cid {cid} in {containers_list}" s3_client_cls = request.param - client = s3_client_cls(access_key_id, secret_access_key, cluster.default_s3_gate_endpoint) + # aws configure adds every new profile to configs and there is no way to remove it using CLI/boto3 calls + # so it is better to set default one here instead of randomly generated name + client = s3_client_cls(access_key_id, secret_access_key, cluster.default_s3_gate_endpoint, profile="default") yield client