feat(deployment): add deployment history and rollback support
This commit is contained in:
1 parent
029b25b596
commit
4e9b173edb
36 files changed
+3663
-569
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { describe, it } from "node:test";
|
||||
import { resolveDeploymentStrategy } from "../../src/server/services/deployment-strategy";
|
||||
|
||||
describe("deployment strategy", () => {
|
||||
it("uses atomic rename when no published ports are configured", () => {
|
||||
assert.equal(resolveDeploymentStrategy(""), "ATOMIC_RENAME");
|
||||
assert.equal(resolveDeploymentStrategy(" "), "ATOMIC_RENAME");
|
||||
});
|
||||
|
||||
it("uses recreate with recovery when published ports are configured", () => {
|
||||
assert.equal(resolveDeploymentStrategy("8080:80"), "RECREATE_WITH_RECOVERY");
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user