|
@@ -44,6 +44,8 @@ def test_parse_configuration_transforms_file_into_mapping():
|
|
- hostname.borg
|
|
- hostname.borg
|
|
|
|
|
|
retention:
|
|
retention:
|
|
|
|
+ keep_minutely: 60
|
|
|
|
+ keep_hourly: 24
|
|
keep_daily: 7
|
|
keep_daily: 7
|
|
|
|
|
|
consistency:
|
|
consistency:
|
|
@@ -57,7 +59,7 @@ def test_parse_configuration_transforms_file_into_mapping():
|
|
|
|
|
|
assert result == {
|
|
assert result == {
|
|
'location': {'source_directories': ['/home', '/etc'], 'repositories': ['hostname.borg']},
|
|
'location': {'source_directories': ['/home', '/etc'], 'repositories': ['hostname.borg']},
|
|
- 'retention': {'keep_daily': 7},
|
|
|
|
|
|
+ 'retention': {'keep_daily': 7, 'keep_hourly': 24, 'keep_minutely': 60},
|
|
'consistency': {'checks': ['repository', 'archives']},
|
|
'consistency': {'checks': ['repository', 'archives']},
|
|
}
|
|
}
|
|
|
|
|