Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Type the JSON admission fixture as an HTTP handler

pulse-triage[bot]a26c76e6a5ed
diff --git a/internal/api/token_response_authority_test.go b/internal/api/token_response_authority_test.go
index 8f9a294872..f2194f6971 100644
--- a/internal/api/token_response_authority_test.go
+++ b/internal/api/token_response_authority_test.go
@@ -138,7 +138,7 @@ func TestTokenResponseAuthorityRefusesStaleAdmissionBeforeWork(t *testing.T) {
req := httptest.NewRequest(http.MethodPost, "/api/ai/execute", nil)
req.Header.Set("X-API-Token", scopedReadToken)
base := httptest.NewRecorder()
- AuthContextMiddleware(cfg, nil, between).ServeHTTP(base, req)
+ AuthContextMiddleware(cfg, nil, http.HandlerFunc(between)).ServeHTTP(base, req)
if called || base.Code != http.StatusUnauthorized {
t.Fatal("stale admission started work")
}