- gateway: GET /devices registry (per-IP connect count, timestamps, device/fw from new 'hello' protocol event); graceful utterance errors -> error event; uvicorn ws-ping-timeout 120s - firmware: hello on WS connect; static 192.168.86.53 fallback after 15s without DHCP; scan-on-boot removed (kept for diagnostics); ping_interval 8s; fonts regenerated --no-compress (compressed glyphs render blank with LV_USE_FONT_COMPRESSED off); 8MB factory partition; montserrat_28; LVGL lock timeout semantics fixed - docs: sauron endpoint plan, power ladder, versioning policy Known issue: 'Outside' AP association succeeds but no L2 traffic flows (no DHCP, no ARP) — worked once at 22:05 then never again; ToJ side verified clean. Investigation ongoing. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
18 lines
460 B
Python
18 lines
460 B
Python
from fastapi.testclient import TestClient
|
|
|
|
from desklock_gateway.main import app
|
|
|
|
|
|
def test_healthz() -> None:
|
|
client = TestClient(app)
|
|
response = client.get("/healthz")
|
|
assert response.status_code == 200
|
|
assert response.json() == {"status": "ok"}
|
|
|
|
|
|
def test_devices_registry_empty() -> None:
|
|
client = TestClient(app)
|
|
response = client.get("/devices")
|
|
assert response.status_code == 200
|
|
assert isinstance(response.json(), dict)
|