From ce8ea7bbe261177f56418bdcd449a786c5faa260 Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 29 Oct 2026 23:28:13 +0100 Subject: [PATCH] restic: the night process is judged by its unit; the module has no runtime account for a tool check to stand beside (issue 1955) --- modules/restic/cmd/restic-backups/health_test.go | 2 +- modules/restic/module.json | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/modules/restic/cmd/restic-backups/health_test.go b/modules/restic/cmd/restic-backups/health_test.go index 9518ab4f..8034fd7f 100644 --- a/modules/restic/cmd/restic-backups/health_test.go +++ b/modules/restic/cmd/restic-backups/health_test.go @@ -263,7 +263,7 @@ func TestTheManifestRunsTheNightJudgedByItsHealthTool(t *testing.T) { } env := m.Build.Artifacts[0].Env want := map[string]struct{ run, kind, tool string }{ - "night": {"night", "tool", "backup_health"}, + "night": {"night", "unit", ""}, } for _, r := range m.Resources { w, ok := want[r["id"].(string)] diff --git a/modules/restic/module.json b/modules/restic/module.json index 283bfef9..91a0eb4e 100644 --- a/modules/restic/module.json +++ b/modules/restic/module.json @@ -139,12 +139,7 @@ "MESH_BACKUP_DATA": "${dir:state}/data.conf" }, "health": { - "kind": "tool", - "tool": "backup_health", - "interval": "60s", - "timeout": "20s", - "looks": 2, - "grace": "60s" + "kind": "unit" } } ],