mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-10-15 21:31:11 +00:00
test: cover local path branch in rollback file mount test
This commit is contained in:
@@ -180,23 +180,18 @@ describe("rollbackApplication mounts", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("resolves file mount source against the application serverId", async () => {
|
||||
it("resolves file mount source against the local applications path", async () => {
|
||||
const context = createContext({
|
||||
mounts: buildMounts(),
|
||||
serverId: "remote-server",
|
||||
serverId: null,
|
||||
});
|
||||
|
||||
await rollbackApplication(
|
||||
APP_NAME,
|
||||
"test-app:v1",
|
||||
"remote-server",
|
||||
context,
|
||||
);
|
||||
await rollbackApplication(APP_NAME, "test-app:v1", null, context);
|
||||
|
||||
const mounts = getMounts(createServiceMock.mock.calls[0]);
|
||||
expect(mounts).toContainEqual({
|
||||
Type: "bind",
|
||||
Source: expectedFileSource("config.yaml", "remote-server"),
|
||||
Source: expectedFileSource("config.yaml", null),
|
||||
Target: "/app/config.yaml",
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user