mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-10 08:05:14 +02:00
feat: add managed runtime daemon metadata
This commit is contained in:
parent
8a1f682ec3
commit
ad56689e98
6 changed files with 43 additions and 1 deletions
|
|
@ -69,6 +69,16 @@ def test_health_endpoint_returns_healthy() -> None:
|
|||
assert response.json() == {"status": "healthy"}
|
||||
|
||||
|
||||
def test_health_endpoint_returns_managed_runtime_version(monkeypatch) -> None:
|
||||
monkeypatch.setenv("KTX_DAEMON_VERSION", "0.2.0")
|
||||
client = TestClient(create_app())
|
||||
|
||||
response = client.get("/health")
|
||||
|
||||
assert response.status_code == 200
|
||||
assert response.json() == {"status": "healthy", "version": "0.2.0"}
|
||||
|
||||
|
||||
def test_database_introspect_endpoint_returns_snapshot() -> None:
|
||||
calls = []
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue