Skip to content

Commit

Permalink
Add CHANGELOG entry
Browse files Browse the repository at this point in the history
  • Loading branch information
y0urself committed May 31, 2021
1 parent a4434ec commit 7371028
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ and this project adheres to [Calendar Versioning](https://calver.org)html).
## [Unreleased]
### Added
### Changed
* For SSH Connections: Reject unknown hosts, ask user if he wants to connect to unknown remote host and ask user if he wants to add the host to `known_hosts` [#486](https://github.com/greenbone/python-gvm/pull/486)

### Deprecated
### Removed
### Fixed
Expand Down
6 changes: 3 additions & 3 deletions tests/connections/test_ssh_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,9 @@ def test_trigger_oserror_in_get_remote_key_connect(self):
ssh_connection._get_remote_host_key()

def test_trigger_oserror_in_get_remote_key_disconnect(self):
with patch('socket.socket') as SocketMock:
client_mock = SocketMock.return_value
client_mock.disconnect.side_effect = OSError('foo')
with patch('paramiko.transport.Transport') as TransportMock:
client_mock = TransportMock.return_value
client_mock.close.side_effect = paramiko.SSHException('foo')

ssh_connection = SSHConnection(
hostname="0.0.0.0",
Expand Down

0 comments on commit 7371028

Please sign in to comment.