fix: two 500s found by actually running the kernel, plus the tests that found them #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/exercise-the-api"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Nothing had ever hit an endpoint before this. Migrations applied and the container started, so CI was green while two routes returned 500. Both are drift between the routers in this repo and the pinned haskytech-haskos-kernel==0.2.0 services they call — invisible to imports and type checks.
Fixed
GET /entities/searchunpacked the service's(list, total)return as if it were(entity, score)pairs.POST /entitiespassed adescriptionkwarg the service does not accept, for a column the model does not have. Dropped from both entity schemas.GET /appscalledensure_builtins(), seeding HaskyOS's own stage apps into whatever database it ran against. SuperCleanOS would have claimed a sales and a pm stage app it does not run.Added
tests/test_api_smoke.py— 12 tests driving every route against a real Postgres via ASGITransport, including unauthenticated rejection and the app-registry regression.scripts/bootstrap_owner.py— a fresh company database has an empty user table behindrequire_roleand there is no bootstrap endpoint by design. This is the way in. Password from env or stdin, never argv.conftest.py, becausehaskos_kernel.databasebuilds its engine at import and the pool outlives a per-test loop.Local owner account created, credentials in Bitwarden at
projects/companyos-kernel/dev-owner.