2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-25 14:17:42 +00:00

forget: Add test for "keep all hourly snapshots"

This commit is contained in:
Torben Giesselmann 2023-03-04 22:13:34 -08:00
parent b77b0749fa
commit 32e6a438be
2 changed files with 1540 additions and 4 deletions

View File

@ -241,10 +241,8 @@ func TestApplyPolicy(t *testing.T) {
WithinYearly: parseDuration("9999y")},
{Last: -1}, // keep all
{Last: -1, Hourly: -1}, // keep all (Last overrides Hourly)
// {Hourly: -1}, // keep all hourlies
// {Daily: -1}, // keep all dailies
// {Daily: -1, Weekly: 4}, // keep all dailies and 4 weeklies
// {Daily: 3, Weekly: -1}, // keep 3 dailies and all weeklies
{Hourly: -1}, // keep all hourlies
// {Daily: 3, Weekly: 2, Monthly: -1, Yearly: -1},
}
for i, p := range tests {

File diff suppressed because it is too large Load Diff