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.

Fix OIDC login bypass test to expect 302

rcourtmanbbfc5a9fc46d
diff --git a/internal/api/security_regression_test.go b/internal/api/security_regression_test.go
index 64ec46735c..c37ba57852 100644
--- a/internal/api/security_regression_test.go
+++ b/internal/api/security_regression_test.go
@@ -3223,8 +3223,8 @@ func TestOIDCLoginBypassesAuth(t *testing.T) {
req.RemoteAddr = "203.0.113.46:1234"
rec := httptest.NewRecorder()
router.Handler().ServeHTTP(rec, req)
- if rec.Code != http.StatusTemporaryRedirect {
- t.Fatalf("expected 307 redirect when OIDC is disabled, got %d", rec.Code)
+ if rec.Code != http.StatusFound {
+ t.Fatalf("expected 302 redirect when OIDC is disabled, got %d", rec.Code)
}
}