colibri.qdrant / tests /openapi /test_k8s_health.py
Gouzi Mohaled
Ajout du dossier tests
3932407
raw
history blame contribute delete
571 Bytes
import pytest
from .helpers.helpers import request_with_validation
@pytest.mark.parametrize("endpoint", ["/healthz", "/livez"])
def test_k8s_health(endpoint):
response = request_with_validation(
api=endpoint,
method="GET",
)
assert response.ok
assert response.text == "healthz check passed"
@pytest.mark.parametrize("endpoint", ["/readyz"])
def test_k8s_ready(endpoint):
response = request_with_validation(
api=endpoint,
method="GET",
)
assert response.ok
assert response.text == "all shards are ready"