From 973de2a610eeec4dad299198b48ab4e18470b0ef Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Mon, 2 Jun 2025 21:04:45 -0600 Subject: [PATCH] feat: add rollback configuration to base application settings - Introduced "limitRollback" and "rollbackActive" properties to the base application configuration in both drop and traefik test files. - These additions enhance the rollback functionality by allowing configuration of rollback limits and activation status. --- apps/dokploy/__test__/drop/drop.test.test.ts | 2 ++ apps/dokploy/__test__/traefik/traefik.test.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/apps/dokploy/__test__/drop/drop.test.test.ts b/apps/dokploy/__test__/drop/drop.test.test.ts index b18d7b4b..87fb6eae 100644 --- a/apps/dokploy/__test__/drop/drop.test.test.ts +++ b/apps/dokploy/__test__/drop/drop.test.test.ts @@ -121,6 +121,8 @@ const baseApp: ApplicationNested = { updateConfigSwarm: null, username: null, dockerContextPath: null, + limitRollback: 5, + rollbackActive: false, }; describe("unzipDrop using real zip files", () => { diff --git a/apps/dokploy/__test__/traefik/traefik.test.ts b/apps/dokploy/__test__/traefik/traefik.test.ts index 6c136b25..47f96acd 100644 --- a/apps/dokploy/__test__/traefik/traefik.test.ts +++ b/apps/dokploy/__test__/traefik/traefik.test.ts @@ -5,6 +5,8 @@ import { createRouterConfig } from "@dokploy/server"; import { expect, test } from "vitest"; const baseApp: ApplicationNested = { + rollbackActive: false, + limitRollback: 5, applicationId: "", herokuVersion: "", giteaRepository: "",