Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add threading_lock to test_kms_unavailable #8778

Merged
merged 2 commits into from
Mar 15, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
@pytest.mark.polarion_id("OCS-5154")
@skipif_no_kms
@skipif_managed_service
def test_kms_unavailable(measure_rewrite_kms_endpoint):
def test_kms_unavailable(measure_rewrite_kms_endpoint, threading_lock):
"""
Test that there is appropriate alert when KMS is unavailable and that
this alert is cleared when the KMS endpoint is back online.

"""
api = prometheus.PrometheusAPI()
api = prometheus.PrometheusAPI(threading_lock)

# get alerts from time when manager deployment was scaled down
alerts = measure_rewrite_kms_endpoint.get("prometheus_alerts")
Expand Down
Loading