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.

Exercise the support-bundle instance gate with a valid selection

pulse-triage[bot]1aba1382973b
diff --git a/internal/api/contract_test.go b/internal/api/contract_test.go
index 26cd9f5b00..429e8dee61 100644
--- a/internal/api/contract_test.go
+++ b/internal/api/contract_test.go
@@ -28879,7 +28879,9 @@ func TestContractSupportBundleCredentialBoundary(t *testing.T) {
monitorToken := newTokenRecord(t, "synthetic-bundle-monitor-token.12345678", []string{config.ScopeMonitoringRead}, nil)
cfg.APITokens = append(cfg.APITokens, monitorToken)
tenantToken := newTokenRecord(t, "synthetic-bundle-tenant-token.12345678", []string{config.ScopeSettingsRead}, nil)
- tenantToken.OrgID = "tenant-only"
+ // Keep the selected default organisation valid so this case reaches the
+ // existing instance-admin gate, not an absent-org 400 in tenant admission.
+ tenantToken.OrgIDs = []string{"default", "tenant-only"}
cfg.APITokens = append(cfg.APITokens, tenantToken)
config.Mu.Unlock()