test: pin tailscale bind diagnostics

This commit is contained in:
Shakker
2026-05-11 14:13:27 +01:00
parent 1dddb502a8
commit 31f128e86f

View File

@@ -54,14 +54,13 @@ describe("gateway tailscale bind validation", () => {
});
expect(lanRes.ok).toBe(false);
if (!lanRes.ok) {
expect(lanRes.issues).toEqual(
expect.arrayContaining([
expect.objectContaining({
path: "gateway.bind",
message: expect.stringContaining("gateway.bind must resolve to loopback"),
}),
]),
);
expect(lanRes.issues).toEqual([
{
path: "gateway.bind",
message:
'gateway.bind must resolve to loopback when gateway.tailscale.mode=serve (use gateway.bind="loopback" or gateway.bind="custom" with gateway.customBindHost="127.0.0.1")',
},
]);
}
const customRes = validateConfigObject({