Start Core Hub FastAPI replacement foundation
This commit is contained in:
parent
75963233b6
commit
1e87adbcbb
37 changed files with 3292 additions and 30 deletions
16
tests/test_health.py
Normal file
16
tests/test_health.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
from fastapi.testclient import TestClient
|
||||
|
||||
|
||||
def test_healthz(app):
|
||||
response = TestClient(app).get("/healthz")
|
||||
|
||||
assert response.status_code == 200
|
||||
assert response.json()["status"] == "ok"
|
||||
assert response.json()["service"] == "core-hub"
|
||||
|
||||
|
||||
def test_readyz(app):
|
||||
response = TestClient(app).get("/readyz")
|
||||
|
||||
assert response.status_code == 200
|
||||
assert response.json()["checks"]["database_url"] == "configured"
|
||||
Loading…
Add table
Add a link
Reference in a new issue