summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-02-09 13:00:07 +0100
committerChristian Poessinger <christian@poessinger.com>2020-02-09 13:00:07 +0100
commit189b724dd7e5f4a5be4137809376127298bf9d25 (patch)
tree2f3c22d032eae8244e4e0c8c89bc2340fd61dd19
parent3d4af18fb0cb257d1466fac417c9f13f080ecd04 (diff)
downloadvyos-1x-189b724dd7e5f4a5be4137809376127298bf9d25.tar.gz
vyos-1x-189b724dd7e5f4a5be4137809376127298bf9d25.zip
login: remove ssh test
-rw-r--r--debian/control1
-rwxr-xr-xscripts/cli/test_system_login.py25
2 files changed, 0 insertions, 26 deletions
diff --git a/debian/control b/debian/control
index 41a0338db..97f8b27ea 100644
--- a/debian/control
+++ b/debian/control
@@ -15,7 +15,6 @@ Standards-Version: 3.9.6
Package: vyos-smoketest
Architecture: all
Depends: python3,
- python3-paramiko,
${python3:Depends},
${shlibs:Depends},
${misc:Depends},
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()