From aeaf69f49e0081a2b3c835d86d5206a550357155 Mon Sep 17 00:00:00 2001 From: Divyansh Singh Date: Sat, 25 Mar 2023 01:34:03 +0530 Subject: [PATCH] pass all tests --- borgmatic/config/schema.yaml | 2 +- tests/end-to-end/test_borgmatic.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/borgmatic/config/schema.yaml b/borgmatic/config/schema.yaml index 14d028b..e24b0ec 100644 --- a/borgmatic/config/schema.yaml +++ b/borgmatic/config/schema.yaml @@ -59,7 +59,7 @@ properties: used as the label. example: backupserver example: - - path: ssh://user@backupserver/./{fqdn} + - path: ssh://user@backupserver/./sourcehostname.borg label: backupserver - path: /mnt/backup label: local diff --git a/tests/end-to-end/test_borgmatic.py b/tests/end-to-end/test_borgmatic.py index c2d1029..86cd83c 100644 --- a/tests/end-to-end/test_borgmatic.py +++ b/tests/end-to-end/test_borgmatic.py @@ -19,9 +19,8 @@ def generate_configuration(config_path, repository_path): open(config_path) .read() .replace('ssh://user@backupserver/./sourcehostname.borg', repository_path) - .replace('- ssh://user@backupserver/./{fqdn}', '') - .replace('- /var/local/backups/local.borg', '') - .replace('- /home/user/path with spaces', '') + .replace('- path: /mnt/backup', '') + .replace('label: local', '') .replace('- /home', '- {}'.format(config_path)) .replace('- /etc', '') .replace('- /var/log/syslog*', '')