Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions tests/aws/services/opensearch/test_opensearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,21 @@ def try_cluster_health(cluster_url: str):
], "expected cluster state to be in a valid state"


@pytest.fixture(autouse=True)
def disable_ssl_validation_for_unsupported_regions(region_name, monkeypatch):
# list of regions supported in our certificate
# prevents SSL verification for regional hostnames not present in the SAN list of the certificate
if region_name not in {
"eu-central-1",
"eu-west-1",
"us-east-1",
"us-east-2",
"us-west-1",
"us-west-2",
}:
monkeypatch.setattr(requests, "verify_ssl", False)


@markers.skip_offline
class TestOpensearchProvider:
"""
Expand Down
Loading