We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc1db09 commit 2fe8041Copy full SHA for 2fe8041
1 file changed
tests/aws/services/opensearch/test_opensearch.py
@@ -99,6 +99,21 @@ def try_cluster_health(cluster_url: str):
99
], "expected cluster state to be in a valid state"
100
101
102
+@pytest.fixture(autouse=True)
103
+def disable_ssl_validation_for_unsupported_regions(region_name, monkeypatch):
104
+ # list of regions supported in our certificate
105
+ # prevents SSL verification for regional hostnames not present in the SAN list of the certificate
106
+ if region_name not in {
107
+ "eu-central-1",
108
+ "eu-west-1",
109
+ "us-east-1",
110
+ "us-east-2",
111
+ "us-west-1",
112
+ "us-west-2",
113
+ }:
114
+ monkeypatch.setattr(requests, "verify_ssl", False)
115
+
116
117
@markers.skip_offline
118
class TestOpensearchProvider:
119
"""
0 commit comments