diff options
| author | Colin Wilk <colin@wilk.cx> | 2026-06-28 22:47:11 +0200 |
|---|---|---|
| committer | Colin Wilk <colin@wilk.cx> | 2026-06-28 23:18:35 +0200 |
| commit | 7d96c1a11fc442b4efddf9ce5250cf0a9dfaf02e (patch) | |
| tree | 5561dbeee61aaab05e21f3bc2895ff703a2ce137 /molecule/default/tests/test_client_setup.py | |
| parent | 785e6c88e4c0a3ccc44fd357b4f693c5aadd432c (diff) | |
| download | ansible-role-borgbackup-7d96c1a11fc442b4efddf9ce5250cf0a9dfaf02e.tar.gz ansible-role-borgbackup-7d96c1a11fc442b4efddf9ce5250cf0a9dfaf02e.zip | |
Parametrize server-side borg user
Adds option to choose a non-default borg backup user on the server.
Diffstat (limited to 'molecule/default/tests/test_client_setup.py')
| -rw-r--r-- | molecule/default/tests/test_client_setup.py | 6 |
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}") |