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.

Drop standalonePageModel snippet from agentless contract test; bump test timeout to 20m

rcourtman3e618492425d
diff --git a/Makefile b/Makefile
index cf6376d803..f1d7629d89 100644
--- a/Makefile
+++ b/Makefile
@@ -91,7 +91,7 @@ control-plane:
test:
@./scripts/ensure_test_assets.sh
@echo "Running backend tests..."
- go test -race -timeout 10m $$(go list $(GO_TEST_PACKAGES))
+ go test -race -timeout 20m $$(go list $(GO_TEST_PACKAGES))
# Run integration tests (requires Ollama at OLLAMA_URL or 127.0.0.1:11434)
test-integration:
diff --git a/internal/unifiedresources/code_standards_test.go b/internal/unifiedresources/code_standards_test.go
index 45be67eef1..79cfa6a1f3 100644
--- a/internal/unifiedresources/code_standards_test.go
+++ b/internal/unifiedresources/code_standards_test.go
@@ -296,11 +296,13 @@ func TestAgentlessAvailabilityTargetKindStaysCanonical(t *testing.T) {
"export type AvailabilityTargetKind = 'machine' | 'service' | 'device';",
"targetKind?: AvailabilityTargetKind;",
},
- filepath.Join("..", "..", "frontend-modern", "src", "features", "standalone", "standalonePageModel.ts"): {
- "resource.availability?.targetKind",
- "resource.platformData?.availability as { targetKind?: string }",
- "availabilityTargetKindFor(resource) === 'machine'",
- },
+ // standalonePageModel.ts no longer references targetKind: commit
+ // 1e16cf34f intentionally narrowed the Machines surface to Pulse
+ // Agent resources only, so agentless availability targets are no
+ // longer classified by kind for the Machines list. The server
+ // contract (config/availability.go, monitoring/availability_poller.go,
+ // types.go, frontend-modern/src/api/availabilityTargets.ts) still
+ // preserves targetKind for any future UI that wants to consume it.
}
for path, snippets := range requiredSnippets {