MCPcopy Create free account
hub / github.com/Tong89/smartNode / TestLivenessProbe

Class TestLivenessProbe

tests/test_api.py:209–216  ·  view source on GitHub ↗

存活探针契约。

Source from the content-addressed store, hash-verified

207
208
209class TestLivenessProbe:
210 """存活探针契约。"""
211
212 def test_status_200(self, client):
213 assert client.get("/api/livez").status_code == 200
214
215 def test_status_field_is_alive(self, client):
216 assert _json(client.get("/api/livez")).get("status") == "alive"
217
218
219# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected