From 5a2da873dd032618dce16f88697237c9f8a4188e Mon Sep 17 00:00:00 2001 From: Phoebus Mak Date: Fri, 8 Mar 2024 16:10:36 +0000 Subject: [PATCH] Fix request ssl error --- python/tests/conftest.py | 4 ++-- python/tests/integration/arcticdb/test_arctic.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/python/tests/conftest.py b/python/tests/conftest.py index e74ed8453de..9a01c38ba8b 100644 --- a/python/tests/conftest.py +++ b/python/tests/conftest.py @@ -245,9 +245,9 @@ def s3_store_factory_mock_storage_exception(lib_name, s3_storage): # The following interger is for how many requests until 503 repsonse is sent # -1 means the 503 response is disabled # Setting persisted throughout the lifetime of moto server, so it needs to be reset - requests.post(endpoint + "/rate_limit", b"0").raise_for_status() + requests.post(endpoint + "/rate_limit", b"0", verify=False).raise_for_status() yield lib - requests.post(endpoint + "/rate_limit", b"-1").raise_for_status() + requests.post(endpoint + "/rate_limit", b"-1", verify=False).raise_for_status() @pytest.fixture diff --git a/python/tests/integration/arcticdb/test_arctic.py b/python/tests/integration/arcticdb/test_arctic.py index 42b5cfb3124..7dc9da00a95 100644 --- a/python/tests/integration/arcticdb/test_arctic.py +++ b/python/tests/integration/arcticdb/test_arctic.py @@ -156,7 +156,7 @@ def _get_s3_storage_config(cfg): assert s3_storage.max_connections == 0 assert s3_storage.connect_timeout == 0 assert s3_storage.request_timeout == 0 - assert s3_storage.ssl + assert not s3_storage.ssl assert s3_storage.prefix.startswith("test") assert not s3_storage.https assert s3_storage.region == ""