fix(test): require fleet doctor healthy checks (#115946)

This commit is contained in:
Vincent Koc
2026-07-29 22:59:09 +08:00
committed by GitHub
parent 41f118cec3
commit 5fa8c4a4e5
+22
View File
@@ -126,6 +126,28 @@ describe("fleet doctor", () => {
fetchImpl: vi.fn<typeof fetch>(async () => new Response(null, { status: 200 })),
});
expect(reports).toHaveLength(1);
expect(reports[0]?.findings.map((entry) => entry.check)).toEqual([
"runtime-local",
"container-present",
"container-owned",
"container-running",
"gateway-health",
"cap-drop",
"security-opt",
"init",
"pids-limit",
"memory-limit",
"cpu-limit",
"restart-policy",
"port-binding",
"gateway-token-env",
"network-present",
"network-owned",
"network-attachments",
"network-egress",
"data-dir",
"auth-dir",
]);
expect(reports[0]?.findings.every((entry) => entry.status === "pass")).toBe(true);
},
);