This commit is contained in:
2026-06-09 21:19:30 +08:00
parent 8b41ff9360
commit 0484e79978
66 changed files with 4043 additions and 533 deletions
+4 -1
View File
@@ -176,6 +176,9 @@ func newACPIntegrationSuite(t *testing.T) *acpIntegrationSuite {
ShutdownGrace: 5 * time.Second,
}
sup := acp.NewSupervisor(acpRepo, auditRec, disp, nil, nil, nil, enc, supCfg, log)
permSvc := acp.NewPermissionService(acpRepo, auditRec, 0, log)
sup.SetPermissionService(permSvc)
permSvc.SetRelayLocator(sup)
// Minimal stubs for SessionService dependencies — sufficient for branch=main
// path (no wtSvc / wsRepo calls) and tests that exercise quota/conflict logic.
@@ -192,7 +195,7 @@ func newACPIntegrationSuite(t *testing.T) *acpIntegrationSuite {
r.Use(middleware.RequestID)
user.NewHandler(userSvc).Mount(r)
acp.NewHandler(
akSvc, sessSvc, sup, acpRepo,
akSvc, sessSvc, sup, acpRepo, permSvc,
userSvc,
acpUserAdminAdapter{svc: userSvc},
enc,