Setup test logging

This commit is contained in:
2024-12-19 23:42:19 +01:00
parent cf2e1809a4
commit f0b6aa0d6e
20 changed files with 33 additions and 9 deletions

View File

@@ -6,6 +6,7 @@ import (
"time"
"novamd/internal/auth"
_ "novamd/internal/testenv"
)
func TestNewJWTService(t *testing.T) {

View File

@@ -141,7 +141,6 @@ func (m *Middleware) RequireWorkspaceAccess(next http.Handler) http.Handler {
"handler", "RequireWorkspaceAccess",
"clientIP", r.RemoteAddr,
"userId", ctx.UserID,
"workspaceId", ctx.Workspace.ID,
)
// If no workspace in context, allow the request

View File

@@ -11,6 +11,7 @@ import (
"novamd/internal/auth"
"novamd/internal/context"
"novamd/internal/models"
_ "novamd/internal/testenv"
)
// Mock SessionManager

View File

@@ -8,6 +8,7 @@ import (
"novamd/internal/auth"
"novamd/internal/models"
_ "novamd/internal/testenv"
)
// Mock SessionStore