docs: document service health checks
This commit is contained in:
1 parent
16e54b63f2
commit
324e1cab4e
2 files changed
+14
No files matched your search
@@ -23,3 +23,12 @@ def test_readme_documents_a_complete_local_quickstart():
|
||||
assert "uvicorn src.main:app" in text
|
||||
assert "http://127.0.0.1:8000/api/v1/context" in text
|
||||
assert "uvicorn==" in REQUIREMENTS.read_text()
|
||||
|
||||
|
||||
def test_readme_documents_liveness_and_gitea_readiness_checks():
|
||||
text = README.read_text()
|
||||
|
||||
assert "`/healthz`" in text
|
||||
assert "`/readyz`" in text
|
||||
assert "does not contact Gitea" in text
|
||||
assert "HTTP 503" in text
|
||||
Reference in new issue
Block a user