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: add apiToken to security quick-setup payload

rcourtman98a6f44cbee4
diff --git a/tests/integration/api/update_flow_test.go b/tests/integration/api/update_flow_test.go
index 8b9d78e6b3..53f5c2e509 100644
--- a/tests/integration/api/update_flow_test.go
+++ b/tests/integration/api/update_flow_test.go
@@ -102,9 +102,12 @@ func waitForHealth(t *testing.T, client *http.Client, baseURL string, timeout ti
func setupCredentials(t *testing.T, client *http.Client, baseURL, bootstrapToken, username, password string) {
t.Helper()
+ // Generate a dummy API token for tests (64 hex chars)
+ apiToken := "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
payload := map[string]interface{}{
"username": username,
"password": password,
+ "apiToken": apiToken,
"setupToken": bootstrapToken,
}
req, err := http.NewRequest("POST", baseURL+"/api/security/quick-setup", nil)