From d656a508523c2ddfa7f02eab6448243ae6e285b0 Mon Sep 17 00:00:00 2001 From: Srigovind Nayak Date: Sun, 1 Sep 2024 17:22:39 +0530 Subject: [PATCH] forget: update tests to reflect specific reasons for keeping oldest snapshots in a group --- internal/restic/testdata/policy_keep_snapshots_16 | 2 +- internal/restic/testdata/policy_keep_snapshots_17 | 2 +- internal/restic/testdata/policy_keep_snapshots_35 | 2 +- internal/restic/testdata/policy_keep_snapshots_36 | 2 +- internal/restic/testdata/policy_keep_snapshots_37 | 4 ++-- internal/restic/testdata/policy_keep_snapshots_38 | 2 +- internal/restic/testdata/policy_keep_snapshots_39 | 4 ++-- internal/restic/testdata/policy_keep_snapshots_4 | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/internal/restic/testdata/policy_keep_snapshots_16 b/internal/restic/testdata/policy_keep_snapshots_16 index da6f43a1c..07444102b 100644 --- a/internal/restic/testdata/policy_keep_snapshots_16 +++ b/internal/restic/testdata/policy_keep_snapshots_16 @@ -68,7 +68,7 @@ "paths": null }, "matches": [ - "yearly snapshot" + "oldest yearly snapshot" ], "counters": { "yearly": 6 diff --git a/internal/restic/testdata/policy_keep_snapshots_17 b/internal/restic/testdata/policy_keep_snapshots_17 index ee728d4e0..de489d445 100644 --- a/internal/restic/testdata/policy_keep_snapshots_17 +++ b/internal/restic/testdata/policy_keep_snapshots_17 @@ -214,7 +214,7 @@ "paths": null }, "matches": [ - "yearly snapshot" + "oldest yearly snapshot" ], "counters": { "yearly": 6 diff --git a/internal/restic/testdata/policy_keep_snapshots_35 b/internal/restic/testdata/policy_keep_snapshots_35 index ece4ddbd2..afc2017dd 100644 --- a/internal/restic/testdata/policy_keep_snapshots_35 +++ b/internal/restic/testdata/policy_keep_snapshots_35 @@ -165,7 +165,7 @@ "paths": null }, "matches": [ - "yearly within 9999y" + "oldest yearly within 9999y" ], "counters": {} } diff --git a/internal/restic/testdata/policy_keep_snapshots_36 b/internal/restic/testdata/policy_keep_snapshots_36 index cce4cf537..6023e993e 100644 --- a/internal/restic/testdata/policy_keep_snapshots_36 +++ b/internal/restic/testdata/policy_keep_snapshots_36 @@ -1978,7 +1978,7 @@ "paths": null }, "matches": [ - "last snapshot" + "oldest last snapshot" ], "counters": { "last": -1 diff --git a/internal/restic/testdata/policy_keep_snapshots_37 b/internal/restic/testdata/policy_keep_snapshots_37 index 9856a83d6..0cf643ab6 100644 --- a/internal/restic/testdata/policy_keep_snapshots_37 +++ b/internal/restic/testdata/policy_keep_snapshots_37 @@ -2169,8 +2169,8 @@ "paths": null }, "matches": [ - "last snapshot", - "hourly snapshot" + "oldest last snapshot", + "oldest hourly snapshot" ], "counters": { "last": -1, diff --git a/internal/restic/testdata/policy_keep_snapshots_38 b/internal/restic/testdata/policy_keep_snapshots_38 index f5d7136d4..ef4eb6777 100644 --- a/internal/restic/testdata/policy_keep_snapshots_38 +++ b/internal/restic/testdata/policy_keep_snapshots_38 @@ -1708,7 +1708,7 @@ "paths": null }, "matches": [ - "hourly snapshot" + "oldest hourly snapshot" ], "counters": { "hourly": -1 diff --git a/internal/restic/testdata/policy_keep_snapshots_39 b/internal/restic/testdata/policy_keep_snapshots_39 index f5fb4b1bf..fc06d8994 100644 --- a/internal/restic/testdata/policy_keep_snapshots_39 +++ b/internal/restic/testdata/policy_keep_snapshots_39 @@ -238,8 +238,8 @@ "paths": null }, "matches": [ - "monthly snapshot", - "yearly snapshot" + "oldest monthly snapshot", + "oldest yearly snapshot" ], "counters": { "monthly": -1, diff --git a/internal/restic/testdata/policy_keep_snapshots_4 b/internal/restic/testdata/policy_keep_snapshots_4 index ff572d6a0..66e5cebe2 100644 --- a/internal/restic/testdata/policy_keep_snapshots_4 +++ b/internal/restic/testdata/policy_keep_snapshots_4 @@ -1978,7 +1978,7 @@ "paths": null }, "matches": [ - "last snapshot" + "oldest last snapshot" ], "counters": { "last": 97