aboutsummaryrefslogtreecommitdiffstats
path: root/molecule/default/tests/test_server_setup.py
diff options
context:
space:
mode:
authorColin Wilk <colin@wilk.cx>2026-06-27 21:25:37 +0200
committerColin Wilk <colin@wilk.cx>2026-06-27 21:25:37 +0200
commitcce7d2d258292c283d64ce8da14a6d1e366b564d (patch)
treefe9de437636098066c6bf160d5787b6b35659835 /molecule/default/tests/test_server_setup.py
parenta22ff185f9836023817f9d4f8df3157b948f8cf2 (diff)
downloadansible-role-borgbackup-cce7d2d258292c283d64ce8da14a6d1e366b564d.tar.gz
ansible-role-borgbackup-cce7d2d258292c283d64ce8da14a6d1e366b564d.zip
Add support for non-root backup clients
Diffstat (limited to 'molecule/default/tests/test_server_setup.py')
-rw-r--r--molecule/default/tests/test_server_setup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/molecule/default/tests/test_server_setup.py b/molecule/default/tests/test_server_setup.py
index cb644cb..3c494f7 100644
--- a/molecule/default/tests/test_server_setup.py
+++ b/molecule/default/tests/test_server_setup.py
@@ -75,7 +75,7 @@ class TestBorgSSHSetup:
if not line.strip():
continue
assert line.startswith('restrict,command="borg serve'), f"Line should start with restrict,command: {line[:50]}"
- assert 'root@' in line, f"Line should contain root@ hostname marker: {line[-30:]}"
+ assert '@' in line and line.rstrip().endswith(('borg-client', 'borg-client-2', 'borg-client-multi', 'borg-client-nonroot')), f"Line should contain user@hostname marker: {line[-40:]}"
assert '--restrict-to-repository' in line, f"Line should have repo restriction: {line[:80]}"
def test_authorized_keys_multi_instance_no_cross_host_repos(self, host):