summaryrefslogtreecommitdiff
path: root/scripts/cli
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/cli')
-rwxr-xr-xscripts/cli/test_service_ssh.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/cli/test_service_ssh.py b/scripts/cli/test_service_ssh.py
index 40e1433b2..e882b8f0a 100755
--- a/scripts/cli/test_service_ssh.py
+++ b/scripts/cli/test_service_ssh.py
@@ -49,6 +49,7 @@ class TestServiceSSH(unittest.TestCase):
""" Check if SSH service can be configured and runs """
self.session.set(base_path + ['port', '2222'])
self.session.set(base_path + ['disable-host-validation'])
+ self.session.set(base_path + ['disable-password-authentication'])
# commit changes
self.session.commit()
@@ -61,6 +62,10 @@ class TestServiceSSH(unittest.TestCase):
dns = get_config_value('UseDNS')
self.assertTrue("no" in dns)
+ # Check PasswordAuthentication
+ pwd = get_config_value('PasswordAuthentication')
+ self.assertTrue("no" in pwd)
+
# Check for running process
self.assertTrue("sshd" in (p.name() for p in process_iter()))