mirror of
https://github.com/restic/restic.git
synced 2024-12-27 18:28:30 +00:00
forget: Add test for "keep all hourly snapshots"
This commit is contained in:
parent
b77b0749fa
commit
32e6a438be
2 changed files with 1540 additions and 4 deletions
|
@ -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 a new issue