Updated README and test for resolve function.

This commit is contained in:
Joe Testa 2023-06-20 09:26:43 -04:00
parent a74c3abdde
commit e2fc60cbb4
2 changed files with 6 additions and 5 deletions

View File

@ -180,6 +180,7 @@ For convenience, a web front-end on top of the command-line tool is available at
### v3.0.0-dev (2023-??-??)
- Results from concurrent scans against multiple hosts are no longer improperly combined; bug discovered by [Adam Russell](https://github.com/thecliguy).
- Hostname resolution failure no longer causes scans against multiple hosts to terminate unexpectedly; credit [Dani Cuesta](https://github.com/daniel-cues).
- Added 1 new key exchange: `curve448-sha512@libssh.org`.
### v2.9.0 (2023-04-29)

View File

@ -22,12 +22,12 @@ class TestResolve:
vsocket.gsock.addrinfodata['localhost#22'] = socket.gaierror(8, 'hostname nor servname provided, or not known')
conf = self._conf()
s = self.ssh_socket(self.OutputBuffer(), 'localhost', 22, conf.ip_version_preference)
output_spy.begin()
with pytest.raises(SystemExit):
# output_spy.begin()
with pytest.raises(socket.gaierror):
list(s._resolve())
lines = output_spy.flush()
assert len(lines) == 1
assert 'hostname nor servname provided' in lines[-1]
# lines = output_spy.flush()
# assert len(lines) == 1
# assert 'hostname nor servname provided' in lines[-1]
def test_resolve_hostname_without_records(self, output_spy, virtual_socket):
vsocket = virtual_socket