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:
parent
b77b0749fa
commit
32e6a438be
@ -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 {
|
||||
|
1538
internal/restic/testdata/policy_keep_snapshots_38
vendored
Normal file
1538
internal/restic/testdata/policy_keep_snapshots_38
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user