molecule-core/workspace-server/internal
Molecule AI Core-DevOps e0e5dd911f handlers: add missing db import + remove duplicate test declarations
Two compilation errors were preventing CI/Platform (Go) from running any
tests at all (go vet failed first):

1. delegation_list_test.go: missing `db` import. The file assigns
   `db.DB = mockDB` but never imported the `db` package — a silent
   omission that compiled before the staging promotion's go.mod bump.

2. org_helpers_security_test.go: three test functions redeclared in
   org_helpers_pure_test.go (both files added by the staging promotion):
   TestIsSafeRoleName_Valid, TestMergeCategoryRouting_EmptyListDropsCategory,
   TestMergeCategoryRouting_EmptyKeySkipped. Removed from security file;
   pure_test.go versions use testify and are more comprehensive.

Together with the prevDB/restore fixes in the previous commits, this
should make CI/Platform (Go) fully green.

Refs: mc#975

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-14 12:58:04 +00:00
..
artifacts
buildinfo
bundle
channels fix(platform): clear golangci-lint findings 2026-05-12 22:53:22 -07:00
crypto
db
envx
events fix(platform): clear golangci-lint findings 2026-05-12 22:53:22 -07:00
handlers handlers: add missing db import + remove duplicate test declarations 2026-05-14 12:58:04 +00:00
imagewatch
memory fix(go): remove ineffectual pgplugin index increment 2026-05-13 14:32:41 -07:00
messagestore
metrics
middleware fix(platform): clear golangci-lint findings 2026-05-12 22:53:22 -07:00
models
orgtoken
pendinguploads
plugins fix(platform): clear golangci-lint findings 2026-05-12 22:53:22 -07:00
provisioner fix(provisioner): inject ADMIN_TOKEN into workspace container env (core#831) 2026-05-13 21:05:02 +00:00
provlog
registry handlers/internal: fix db.DB pollution in registry and scheduler test helpers 2026-05-14 12:58:03 +00:00
router
scheduler handlers/internal: fix db.DB pollution in registry and scheduler test helpers 2026-05-14 12:58:03 +00:00
supervised
textutil
ws chore: drop org_layout_test, hub.go, hub_test.go (already in staging with better coverage) 2026-05-13 18:04:00 +00:00
wsauth