diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-02-09 13:00:07 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-02-09 13:00:07 +0100 |
commit | 189b724dd7e5f4a5be4137809376127298bf9d25 (patch) | |
tree | 2f3c22d032eae8244e4e0c8c89bc2340fd61dd19 /scripts/cli | |
parent | 3d4af18fb0cb257d1466fac417c9f13f080ecd04 (diff) | |
download | vyos-1x-189b724dd7e5f4a5be4137809376127298bf9d25.tar.gz vyos-1x-189b724dd7e5f4a5be4137809376127298bf9d25.zip |
login: remove ssh test
Diffstat (limited to 'scripts/cli')
-rwxr-xr-x | scripts/cli/test_system_login.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/scripts/cli/test_system_login.py b/scripts/cli/test_system_login.py index c804a6117..b14b52603 100755 --- a/scripts/cli/test_system_login.py +++ b/scripts/cli/test_system_login.py @@ -18,8 +18,6 @@ import os import re import unittest -from paramiko import SSHClient, WarningPolicy - import vyos.config import vyos.configsession import vyos.util as util @@ -53,28 +51,5 @@ class TestSystemLoginServer(unittest.TestCase): self.session.commit() - # check if we can login via SSH - for user in users: - # check if homedir has been created - self.assertTrue(os.path.isdir("/tmp/" + user)) - - ssh = SSHClient() - ssh.set_missing_host_key_policy(WarningPolicy) - - try: - ssh.connect('localhost', username=user, password=user) - stdin, stdout, stderr = ssh.exec_command('who') - print(stdout.read().decode()) - except Exception as e: - print(e) - self.assertTrue(False) - - ssh.close() - - # check if homedir has been created - # this can only be done after we have connected via ssh and - # pam_mkhomedir was executes - self.assertTrue(os.path.isdir("/tmp/" + user)) - if __name__ == '__main__': unittest.main() |