salt/tests/unit/ssh
Benjamin Drung 3d6f658309 Skip SSHPasswordTests if ssh binary is not found
If the ssh binary is not found in path, SSHPasswordTests will fail:

ERROR: test_password_failure (unit.ssh.test_ssh.SSHPasswordTests)
[CPU:0.0%|MEM:54.9%]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/unit/ssh/test_ssh.py", line 42, in test_password_failure
    client = ssh.SSH(opts)
  File "salt/client/ssh/__init__.py", line 226, in __init__
    raise salt.exceptions.SaltSystemExit('No ssh binary found in path -- ssh must be '
salt.exceptions.SaltSystemExit: None

Either SSHPasswordTests needs to be converted into a real unit test
(i.e. mocking the salt call) or this tests needs to be skipped if ssh is
not available.

Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
2018-03-07 16:36:06 +01:00
..
__init__.py Fix ssh key deployment when using minimal salt-ssh roster 2017-01-25 12:43:11 -05:00
test_roster_defaults.py Replace yaml usage with a helper to ensure unicode is handled properly 2018-01-03 14:14:21 -06:00
test_ssh_single.py Use explicit unicode strings + break up salt.utils 2017-08-08 13:33:43 -05:00
test_ssh.py Skip SSHPasswordTests if ssh binary is not found 2018-03-07 16:36:06 +01:00