Move PBS since param to optional params
Docker CI / Docker Build & Push (push) Has been cancelled
Lint / Linting Checks (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Release Drafter / Auto Label PR (push) Has been cancelled
Tests / vitest (1) (push) Has been cancelled
Tests / vitest (2) (push) Has been cancelled
Tests / vitest (3) (push) Has been cancelled
Tests / vitest (4) (push) Has been cancelled

This commit is contained in:
shamoon
2026-09-17 07:36:08 -07:00
parent 6b6926108e
commit f7666df9d8
2 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -10,7 +10,8 @@ const widget = {
}, },
"nodes/localhost/tasks": { "nodes/localhost/tasks": {
endpoint: "nodes/localhost/tasks", endpoint: "nodes/localhost/tasks",
params: ["errors", "limit", "since"], params: ["errors", "limit"],
optionalParams: ["since"],
}, },
"nodes/localhost/status": { "nodes/localhost/status": {
endpoint: "nodes/localhost/status", endpoint: "nodes/localhost/status",
@@ -9,7 +9,8 @@ describe("proxmoxbackupserver widget config", () => {
expectWidgetConfigShape(widget); expectWidgetConfigShape(widget);
}); });
it("requires failed task query params for the tasks endpoint", () => { it("requires failed task query params for the tasks endpoint, with since optional", () => {
expect(widget.mappings["nodes/localhost/tasks"].params).toEqual(["errors", "limit", "since"]); expect(widget.mappings["nodes/localhost/tasks"].params).toEqual(["errors", "limit"]);
expect(widget.mappings["nodes/localhost/tasks"].optionalParams).toEqual(["since"]);
}); });
}); });