diff options
Diffstat (limited to 'molecule/default/tests/test_server_setup.py')
| -rw-r--r-- | molecule/default/tests/test_server_setup.py | 2 |
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): |