Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/changelog-fragments/768.contrib.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Changed tests to use more lightweight ECDSA keys to avoid
timeouts -- by :user:`Jakuje`.
10 changes: 5 additions & 5 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def sshd_hostkey_path(sshd_path):

# noqa: DAR101
"""
path = sshd_path / 'ssh_host_rsa_key'
keygen_cmd = 'ssh-keygen', '-N', '', '-f', str(path)
path = sshd_path / 'ssh_host_ecdsa_key'
keygen_cmd = 'ssh-keygen', '-N', '', '-f', str(path), '-t', 'ecdsa'
subprocess.check_call(keygen_cmd)
path.chmod(_FILE_PRIV_RW_OWNER)
return path
Expand All @@ -92,11 +92,11 @@ def ssh_clientkey_path(sshd_path):

# noqa: DAR101
"""
path = sshd_path / 'ssh_client_rsa_key'
path = sshd_path / 'ssh_client_ecdsa_key'
keygen_cmd = ( # noqa: WPS317
'ssh-keygen',
'-t', 'rsa',
'-b', '8192',
'-t', 'ecdsa',
'-b', '256',
'-C', 'ansible-pylibssh integration tests key',
'-N', '',
'-f', str(path),
Expand Down
Loading