summaryrefslogtreecommitdiffhomepage
path: root/tests/test_transport.py
AgeCommit message (Collapse)Author
2023-05-25Re-run regular Transport test suite with new experimental subclass tooJeff Forcier
2023-05-18Twiddle RSA signature algorithm fallback behavior in AuthOnlyHandlerJeff Forcier
Also includes more rearranging of AuthHandler related tests
2023-05-05Start consolidating test server nonsenseJeff Forcier
2023-05-05Allow transport tests' server to specify which class to useJeff Forcier
2023-05-05Test proving the issue driving most use of disabled_algorithmsJeff Forcier
Phrased in a it-passes-now fashion, but once fixed in main code path, will need changing of course.
2023-05-05Comment updatesJeff Forcier
2023-05-05Migrate rest of main keys and update suite to be more pytest-relaxed compatJeff Forcier
Main branch as of today: 350 passed, 21 skipped, 52 deselected, 3 warnings in 11.10s This branch as of this commit: 361 passed, 21 skipped, 52 deselected, 3 warnings in 10.51s Of those 11 "new" tests, 8 are ones I wrote (tests/pkey.py). Hard to figure out what the other 3 are given pytest-relaxed's output is very different from regular verbose pytest. oops.
2023-05-05Start moving key fixtures into support folderJeff Forcier
2023-05-05Opt-in overhaul to how MSG_SERVICE_REQUEST is doneJeff Forcier
- New subclass(es) for opt-in use. Most below messages refer to them, not parent classes. - In parent classes, make handler tables instance attributes for easier subclass twiddling. - Refactor Transport-level session check - Refactor Transport-level auth handler instantiation (but keep behavior the same, for now) - Add service-request handler to Transport subclass, and remove from AuthHandler subclass - Remove manual event injection from the handful of Transport auth methods which supported it. Suspect unused, don't need the extra complexity, and wasn't consistent anyways - can add back smarter later if anyone needs it. - Not bothering with gssapi at all for now as I cannot easily test it - Primarily tested against the new AuthStrategy architecture
2023-01-24[DATALAD RUNCMD] Run codespell -wYaroslav Halchenko
=== Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^
2023-01-16well that's just super()!Jeff Forcier
2023-01-12We live in the future nowJeff Forcier
2023-01-11blackenJeff Forcier
2023-01-09s/mock/unittest.mock/gJeff Forcier
2023-01-09py3compat.bytes -> builtin or literal dependingJeff Forcier
2023-01-09Migrate some byte related helpers aroundJeff Forcier
I feel like we should be able to just nuke byte_chr and friends at this point, but it's not entirely obvious, so let's rock that boat later.
2022-04-26replace blowfish with different cipher in testMike Roest
2022-04-26Remove blowfish from transport ciphersMike Roest
2022-04-25Merge branch '2.10'Jeff Forcier
2022-04-25Merge branch '2.9' into 2.10Jeff Forcier
2022-04-25threading related deprecation fixes for python 3.10Narendra-Neerukonda
2022-04-25Merge branch '2.10'Jeff Forcier
2022-04-22Add -cert-v01@openssh.com variants to accepted host key algorithmsJeff Forcier
Solves #2035
2022-03-25Refactor sha1 test skipping a tadJeff Forcier
2022-03-21blackenPaul Howarth
2022-03-20Skip tests requiring sha1 signing if the backend doesn't support thatPaul Howarth
Red Hat Enterprise Linux 9 will have SHA-1 signatures disabled by default. It is likely that SHA-1 signatures will disappear elsewhere over time too. This change detects if sha1 signatures are not supported by the backend and skips tests that rely on that functionality. This is a workaround for #2004. It would be good to reduce the reliance of the test suite on sha1 signatures except in the cases where that is explicitly being tested, and the markers added here give a decent starting point for seeing where to change things.
2022-03-15Fix Free Software Foundation addressPaul Howarth
They moved from Temple Place to Franklin Street in 2005.
2021-12-24Changelog and test re #1955Jeff Forcier
2021-12-23Add support for RSA SHA2 host and public keysJeff Forcier
Includes a handful of refactors and new semiprivate attributes on Transport and AuthHandler for better test visibility.
2021-12-09Weird typos introduced 2 years ago, bahJeff Forcier
Test currently passes on my workstation tho
2019-06-21Extend new algorithm disabling to compressionsJeff Forcier
2019-06-21Spot check use of new algorithm propertiesJeff Forcier
2019-06-21Rename to disableD_algorithms everywhere for consistencyJeff Forcier
Having it feel verb-y isn't that much better than the alternative, and consistency is a nice hobgoblin
2019-06-21Basic impl of algorithm filteringJeff Forcier
Not actually leveraged anywhere yet
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-09-18Fix and changelog re #1283Jeff Forcier
2018-09-18Fix a pseudo-bug re: responding to MSG_UNIMPLEMENTED w/ itselfJeff Forcier
2018-09-17Blacken 2.0 with black 18.6b4Jeff Forcier
2018-09-17Mark known slow tests as 'slow' pytest marker, and skip them by defaultJeff Forcier
2018-09-17Import cleanup, mostly focused on s/tests/./Jeff Forcier
2018-09-17Rename util func that trips pytest's default discovery.Jeff Forcier
Wouldn't matter as much under pytest-relaxed discovery, but, eh
2018-03-12Initial tests proving CVE-2018-7750 / #1175Jeff Forcier
2018-03-12Allow overriding test client connect kwargs in Transport test suiteJeff Forcier
2017-06-09Allow any buffer type to be sent to ChannelMartin Packman
Fixes #968 Changes the behaviour of the underlying asbytes helper to pass along unknown types. Most callers already handle this by passing the bytes along to a file or socket-like object which will raise TypeError anyway. Adds test coverage through the Transport implementation. Change against the 1.17 branch.
2017-06-05test transport security options can be set to defaultsPierce Lopez
ensures all defaults key/cipher/digest etc types are supported
2017-05-31Additional house style formatting tweaks, mostly re: removal of line ↵Jeff Forcier
continuations
2016-06-09Issue #537 reproduction test and fixKrzysztof Rusek
2016-04-22Merge branch '1.15' into 1.16Jeff Forcier
2016-04-22Hack in a sleep() to avoid race conditions during timeout test.Jeff Forcier
(HOPEFULLY) closes #612