mirror of
https://github.com/qdrant/qdrant.git
synced 2026-08-06 01:50:57 -05:00
23 lines
571 B
Python
23 lines
571 B
Python
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"
|