File size: 571 Bytes
3932407
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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"