Browse Source

pass all tests

Divyansh Singh 2 years ago
parent
commit
aeaf69f49e
2 changed files with 3 additions and 4 deletions
  1. 1 1
      borgmatic/config/schema.yaml
  2. 2 3
      tests/end-to-end/test_borgmatic.py

+ 1 - 1
borgmatic/config/schema.yaml

@@ -59,7 +59,7 @@ properties:
                                 used as the label.
                                 used as the label.
                             example: backupserver
                             example: backupserver
                 example:
                 example:
-                    - path: ssh://user@backupserver/./{fqdn}
+                    - path: ssh://user@backupserver/./sourcehostname.borg
                       label: backupserver
                       label: backupserver
                     - path: /mnt/backup
                     - path: /mnt/backup
                       label: local
                       label: local

+ 2 - 3
tests/end-to-end/test_borgmatic.py

@@ -19,9 +19,8 @@ def generate_configuration(config_path, repository_path):
         open(config_path)
         open(config_path)
         .read()
         .read()
         .replace('ssh://user@backupserver/./sourcehostname.borg', repository_path)
         .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('- /home', '- {}'.format(config_path))
         .replace('- /etc', '')
         .replace('- /etc', '')
         .replace('- /var/log/syslog*', '')
         .replace('- /var/log/syslog*', '')