molecule-core/workspace-server/internal
Molecule AI Infra Lead c2dd4db36d fix(orgtoken): sync test mocks with actual query column count
Real Validate() query: SELECT id, prefix, org_id FROM org_api_tokens
Real List() query: SELECT id, prefix, name, org_id, created_by, created_at, last_used_at FROM org_api_tokens

Fixes:
- TestValidate_HappyPath: add org_id to mock row (was 2 cols, query returns 3)
- TestList_NewestFirst: fix column list AND AddRow calls to match List() query
  (7 columns: id, prefix, name, org_id, created_by, created_at, last_used_at)

This resolves the Platform (Go) CI failure blocking all molecule-core PRs.

Ref: pre-existing failure, unrelated to F1085 security fix.
2026-04-23 17:34:30 +00:00
..
artifacts test(artifacts): suppress w.Write return values to satisfy errcheck 2026-04-21 01:49:03 +00:00
bundle fix(platform): unblock SaaS workspace registration end-to-end 2026-04-21 03:06:46 -07:00
channels fix(errcheck): suppress unchecked resp.Body.Close() across workspace-server (#1229) 2026-04-21 02:45:34 +00:00
crypto chore: open-source restructure — rename dirs, remove internal files, scrub secrets 2026-04-18 00:24:44 -07:00
db test: schema_migrations tracking — 4 cases (first boot, re-boot, mixed, down.sql filter) 2026-04-18 11:52:27 -07:00
envx chore: open-source restructure — rename dirs, remove internal files, scrub secrets 2026-04-18 00:24:44 -07:00
events chore: open-source restructure — rename dirs, remove internal files, scrub secrets 2026-04-18 00:24:44 -07:00
handlers fix(platform-go-ci): align test mocks with schema drift + org_id context contract (#1755) 2026-04-23 07:14:33 +00:00
metrics chore: open-source restructure — rename dirs, remove internal files, scrub secrets 2026-04-18 00:24:44 -07:00
middleware fix(platform-go-ci): align test mocks with schema drift + org_id context contract (#1755) 2026-04-23 07:14:33 +00:00
models fix: CWE-78 rm scope, go vet failures, delegation idempotency 2026-04-21 18:22:30 +00:00
orgtoken fix(orgtoken): sync test mocks with actual query column count 2026-04-23 17:34:30 +00:00
plugins chore: open-source restructure — rename dirs, remove internal files, scrub secrets 2026-04-18 00:24:44 -07:00
provisioner fix(cp-provisioner): use CP_ADMIN_API_TOKEN bearer for /cp/admin/* routes 2026-04-22 17:13:38 -07:00
registry fix(sweeper): emit WORKSPACE_PROVISION_FAILED so canvas updates UI 2026-04-20 20:38:41 -07:00
router fix(review): address code review blockers on tool-trace + instructions 2026-04-22 16:18:06 -07:00
scheduler feat(scheduler): sweepPhantomBusy — clear stuck active_tasks from crashed runs (extracted from #1664) 2026-04-22 19:57:49 -07:00
supervised chore: open-source restructure — rename dirs, remove internal files, scrub secrets 2026-04-18 00:24:44 -07:00
ws chore: open-source restructure — rename dirs, remove internal files, scrub secrets 2026-04-18 00:24:44 -07:00
wsauth chore: open-source restructure — rename dirs, remove internal files, scrub secrets 2026-04-18 00:24:44 -07:00