aboutsummaryrefslogtreecommitdiffstats
path: root/molecule/default/tests/test_client_setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'molecule/default/tests/test_client_setup.py')
-rw-r--r--molecule/default/tests/test_client_setup.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/molecule/default/tests/test_client_setup.py b/molecule/default/tests/test_client_setup.py
index a0e4f4a..6d11a93 100644
--- a/molecule/default/tests/test_client_setup.py
+++ b/molecule/default/tests/test_client_setup.py
@@ -223,10 +223,14 @@ class TestBackupScript:
script = host.file('/usr/local/bin/run_borg_backup@borg-server')
assert script.contains('borg@borg-server')
assert script.contains('/opt/borg')
- elif hostname in ('borg-client', 'borg-client-2'):
+ elif hostname == 'borg-client':
script = host.file('/usr/local/bin/run_borg_backup')
assert script.contains('borg@borg-server')
assert script.contains('/opt/borg')
+ elif hostname == 'borg-client-2':
+ script = host.file('/usr/local/bin/run_borg_backup')
+ assert script.contains('backupserver@borg-server-2')
+ assert script.contains('/var/backups')
else:
pytest.fail(f"Unexpected hostname: {hostname}")