From 2a3701d012d7daa884f1d638eecbf050f03bc7aa Mon Sep 17 00:00:00 2001 From: kami Date: Sat, 1 Aug 2026 14:33:26 +0400 Subject: [PATCH] update: fix the startup fixture the rollback validation now refuses The docker-shaped update block in TestUpdateBlockValidatedAtStartup has source_dir equal to install_dir and no source_rollback, which is exactly the deployment the new validation refuses. The fixture is meant to be the good case, so it now says how the source is rolled back. Found in review of #69. --- internal/config/config_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/config/config_test.go b/internal/config/config_test.go index 501aa43..d1b10d0 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -346,7 +346,8 @@ func TestUpdateBlockValidatedAtStartup(t *testing.T) { "snapshot_dir": "/var/lib/maven/snapshots", "binaries": ["mavend", "mavweb"], "restart_cmd": ["docker", "compose", "up", "-d", "--build", "mavend"], - "health_socket": "/run/maven/mavend.sock" + "health_socket": "/run/maven/mavend.sock", + "source_rollback": "git" }}` c, err := Load(writeConfig(t, good)) if err != nil {