test: cover local path branch in rollback file mount test

This commit is contained in:
detail-app[bot]
2026-09-04 02:59:58 +00:00
parent f56b351099
commit 06b071df58
@@ -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",
});
});