summaryrefslogtreecommitdiffhomepage
path: root/tests/test_hostkeys.py
AgeCommit message (Collapse)Author
2023-05-05Enhance PKey a bunchJeff Forcier
- add .name to eventually replace .get_name - use that in a bunch of spots to avoid some duplication - add .identifiers classmethod to extend existing idea from ECDSAKey - add from_type_string alt constructor which uses .identifiers - use that in HostKeys (includes hopefully-minor refactoring) - no longer giving outdated init kwarg to ECDSA host key loading
2023-05-05Remove outdated/bad test fixtureJeff Forcier
This was added for #2173 but seemingly in its initial pass, before the submitter realized two spaces is _not_ a valid separator. It accidentally passed the tests due to how HostKeys.from_line was implemented at the time (two spaces -> 'key type' was misread and an empty string -> empty string not a valid key type -> returns None). An impending rewrite of that method turned this up.
2023-05-05Add ed25519 and ecdsa key types to hostkeys test fixturesJeff Forcier
2023-02-16spacing to pass style checkAlex Chavkin
2023-02-16Update tests for #2173Alex Chavkin
2023-01-09Update encode/decodebytesJeff Forcier
2022-03-15Fix Free Software Foundation addressPaul Howarth
They moved from Temple Place to Franklin Street in 2005.
2021-11-28Blacken for hostkeys fixJeff Forcier
2021-11-28test_hostkeys: test SubDict.__delitem__()Lans Zhang
SubDict.__delitem__() would trigger the KeyError exception if a key type to be deleted is not present. Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
2019-06-08flake8 now applied to tests, huzzahJeff Forcier
2019-06-08Clean up shitty old test names of form test_[9-0A-Z]+_.*Jeff Forcier
2018-08-22Bump black up to 18.6b4Jeff Forcier
2018-05-17Blacken Paramiko on 2.4Chris Rose
2017-10-23Import cleanup, mostly focused on s/tests/./Jeff Forcier
2017-06-01Test & impl for truly functional HostKeys.__delitem__Jeff Forcier
2015-09-30Silently ignore invalid keys in HostKeys.load()Martin Topholm
When broken entries exists in known_hosts, paramiko raises SSHException with "Invalid key". This patch catches the exception during HostKeys.load() and continues to next line. This should fix #490.
2014-03-07Fix import * and a bunch of PEP8 formattingScott Maxwell
2013-11-19Remove byte conversions and unhexlify calls that we only needed for Py2.5 ↵Scott Maxwell
support and use the `b` byte string marker instead
2013-11-19Use 'with' for opening most file and SFTPFIle objectsScott Maxwell
2013-11-02Fix some deprecation and resource warningsScott Maxwell
2013-10-31Fix bytes/str type in more placesScott Maxwell
2013-10-30Fix message sendingScott Maxwell
Create constants for byte messages, implement asbytes so many methods can take Message and key objects directly and split get_string into get_text and get_binary. Also, change int handling to use mpint with a flag whenever the int is greater than 32 bits.
2013-09-27Fixed a typo in the license header of most filesJeff Forcier
Conflicts: paramiko/proxy.py
2009-07-19fix my email address to be the current one.Robey Pointer
2007-02-13[project @ robey@lag.net-20070213191706-v8djxd4jiunb3his]Robey Pointer
bump copyright year to 2007
2006-11-11[project @ robey@lag.net-20061112055617-098a150cf051bffa]Robey Pointer
try a trick that should let 'hostkeys[hostname][keytype] = key' work for HostKeys objects again.
2006-11-10[project @ robey@lag.net-20061111004413-7bab08f1bad7f96f]Robey Pointer
bug 70398: allow constructions like: hostkeys['hostname'] = {} to create an empty host entry object, so that future attempts to set keys will at least not throw an exception. (they'll still silently do nothing, though.)
2006-08-28[project @ robey@lag.net-20060828234834-51542dc36057b361]Robey Pointer
fix __setitem__ to do the right thing
2006-08-01[project @ robey@lag.net-20060801182143-088ff687e0945937]Robey Pointer
use hexlify in tests
2006-04-08[project @ robey@lag.net-20060408222456-d3813e0206a2cda7]Robey Pointer
assertTrue doesn't exist in py23
2006-03-11[project @ robey@lag.net-20060312040633-92b1c78bf815905d]Robey Pointer
add test to verify that 'for x in hostkeys' works
2006-03-09[project @ robey@lag.net-20060309080450-bad95b03d60d3d4f]Robey Pointer
improve HostKeys so that it more correctly emulates a dict, and add a unit test to verify that
2006-02-19[project @ robey@lag.net-20060220003513-aa54e3e771a530fd]Robey Pointer
add HostKeys, a helper for reading/parsing openssh known_hosts files, including hashed-host support