Fix: include tasks params for PBS widget (#6655)

This commit is contained in:
shamoon
2026-05-11 00:04:33 -07:00
committed by GitHub
parent 5d71c3aa65
commit a6c753c8aa
2 changed files with 6 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ const widget = {
},
"nodes/localhost/tasks": {
endpoint: "nodes/localhost/tasks",
params: ["errors", "limit", "since"],
},
"nodes/localhost/status": {
endpoint: "nodes/localhost/status",

View File

@@ -1,4 +1,4 @@
import { describe, it } from "vitest";
import { describe, expect, it } from "vitest";
import { expectWidgetConfigShape } from "test-utils/widget-config";
@@ -8,4 +8,8 @@ describe("proxmoxbackupserver widget config", () => {
it("exports a valid widget config", () => {
expectWidgetConfigShape(widget);
});
it("requires failed task query params for the tasks endpoint", () => {
expect(widget.mappings["nodes/localhost/tasks"].params).toEqual(["errors", "limit", "since"]);
});
});