mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-21 03:18:47 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -69,9 +69,9 @@ describe("canAccessDockerOverWss", () => {
|
|||||||
mockHasPermission.mockResolvedValue(false);
|
mockHasPermission.mockResolvedValue(false);
|
||||||
mockGetAccessibleServerIds.mockResolvedValue(new Set());
|
mockGetAccessibleServerIds.mockResolvedValue(new Set());
|
||||||
mockCheckServiceAccess.mockResolvedValue(undefined);
|
mockCheckServiceAccess.mockResolvedValue(undefined);
|
||||||
expect(await canAccessDockerOverWss(USER, SESSION, "srv-remote", "svc-1")).toBe(
|
expect(
|
||||||
true,
|
await canAccessDockerOverWss(USER, SESSION, "srv-remote", "svc-1"),
|
||||||
);
|
).toBe(true);
|
||||||
// Service path is authoritative — it must not fall through to docker/server.
|
// Service path is authoritative — it must not fall through to docker/server.
|
||||||
expect(mockHasPermission).not.toHaveBeenCalled();
|
expect(mockHasPermission).not.toHaveBeenCalled();
|
||||||
expect(mockGetAccessibleServerIds).not.toHaveBeenCalled();
|
expect(mockGetAccessibleServerIds).not.toHaveBeenCalled();
|
||||||
|
|||||||
Reference in New Issue
Block a user