Implement ops-hub bootstrap compatibility
This commit is contained in:
parent
1e87adbcbb
commit
c532ad8731
21 changed files with 1330 additions and 402 deletions
|
|
@ -1,16 +1,13 @@
|
|||
from fastapi.testclient import TestClient
|
||||
|
||||
|
||||
def test_healthz(app):
|
||||
response = TestClient(app).get("/healthz")
|
||||
def test_healthz(client):
|
||||
response = client.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")
|
||||
def test_readyz(client):
|
||||
response = client.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