mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-19 10:33:29 +00:00
test(e2e): restore offline Proxmox qualification
Recognize the overview request by its defining workload resource types so additive query families do not route the canonical offline-node fixture to an empty response.
This commit is contained in:
parent
ff507a6e44
commit
811c299cae
1 changed files with 8 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue