diff --git a/borgmatic/config/schema.yaml b/borgmatic/config/schema.yaml index af0051b7..2cb6dbb3 100644 --- a/borgmatic/config/schema.yaml +++ b/borgmatic/config/schema.yaml @@ -318,7 +318,7 @@ properties: borg_files_cache_ttl: type: integer description: | - Maximum time to live (ttl) for entries in the borg files + Maximum time to live (ttl) for entries in the Borg files cache. example: 20 borg_security_directory: diff --git a/tests/unit/borg/test_environment.py b/tests/unit/borg/test_environment.py index c5fce80d..4cef39b9 100644 --- a/tests/unit/borg/test_environment.py +++ b/tests/unit/borg/test_environment.py @@ -32,3 +32,8 @@ def test_make_environment_with_relocated_repo_access_should_override_default(): environment = module.make_environment({'relocated_repo_access_is_ok': True}) assert environment.get('BORG_RELOCATED_REPO_ACCESS_IS_OK') == 'yes' + + +def test_make_environment_with_integer_variable_value(): + environment = module.make_environment({'borg_files_cache_ttl': 40}) + assert environment.get('BORG_FILES_CACHE_TTL') == '40'