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.

test(e2e): restore offline Proxmox qualification

pulse-triage[bot]811c299cae7a
diff --git a/tests/integration/tests/65-offline-proxmox-node-visibility.spec.ts b/tests/integration/tests/65-offline-proxmox-node-visibility.spec.ts
index 5c52f512cf..feb8f426a5 100644
--- a/tests/integration/tests/65-offline-proxmox-node-visibility.spec.ts
+++ b/tests/integration/tests/65-offline-proxmox-node-visibility.spec.ts
@@ -126,8 +126,14 @@ async function routeOfflineProxmoxInventory(page: Page) {
// these agent rows for storage, backup, Ceph, and PMG queries violates the
// API's type-filter contract and feeds the same identities into multiple
// reactive caches. Only the overview query owns this fixture.
- const requestedTypes = requestUrl.searchParams.get("type");
- if (requestedTypes === "agent,vm,system-container,oci-container") {
+ const requestedTypes = new Set(
+ (requestUrl.searchParams.get("type") ?? "").split(",").filter(Boolean),
+ );
+ if (
+ ["agent", "vm", "system-container", "oci-container"].every((type) =>
+ requestedTypes.has(type),
+ )
+ ) {
const response = await route.fetch();
const payload = asRecord(await response.json());
const data = Array.isArray(payload.data)