chore: import upstream snapshot with attribution
CI / lint (push) Has been cancelled
CI / js-syntax (push) Successful in 10m24s
CI / deps-audit (push) Has been cancelled
CI / test (push) Failing after 24m55s
CI / sast-bandit (push) Failing after 11m13s
CI / trivy (push) Failing after 9m32s
Docker Publish / build-and-push (push) Failing after 34m3s
CI / lint (push) Has been cancelled
CI / js-syntax (push) Successful in 10m24s
CI / deps-audit (push) Has been cancelled
CI / test (push) Failing after 24m55s
CI / sast-bandit (push) Failing after 11m13s
CI / trivy (push) Failing after 9m32s
Docker Publish / build-and-push (push) Failing after 34m3s
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
|
||||
def test_health_endpoints_report_ok():
|
||||
from app.main import app
|
||||
|
||||
with TestClient(app) as client:
|
||||
for path in ("/health", "/api/health"):
|
||||
r = client.get(path)
|
||||
assert r.status_code == 200
|
||||
body = r.json()
|
||||
assert body["name"] == "StemDeck"
|
||||
assert body["status"] == "ok"
|
||||
assert body["version"]
|
||||
assert "ffmpeg_configured" in body
|
||||
assert "jobs_dir" not in body
|
||||
assert "data_dir" not in body
|
||||
Reference in New Issue
Block a user