summaryrefslogtreecommitdiffhomepage
path: root/tests
AgeCommit message (Collapse)Author
2022-06-03Merge branch '2.9' into 2.10Jeff Forcier
2022-06-03Merge branch '2.8' into 2.9Jeff Forcier
2022-06-03Add test proving basic behavior of #1822Jeff Forcier
2022-06-03Merge branch '2.9' into 2.10Jeff Forcier
2022-06-03Merge branch '2.8' into 2.9Jeff Forcier
2022-06-03Skip tests requiring invoke if it's not installedMichał Górny
Since invoke is an optional dependency and only one group of tests require it, skip them gracefully rather than failing if it's not present.
2022-06-03Merge branch '2.9' into 2.10Jeff Forcier
2022-06-03Merge branch '2.8' into 2.9Jeff Forcier
2022-06-03Fix broken unittesty skipTest in locale decoratorJeff Forcier
2022-06-03sftp tests: Replace unittest partsStanislav Levin
The original PR https://github.com/paramiko/paramiko/pull/992 introduced several tests for sftp functionality. These tests made use of unittest's stuff like `assertTrue` and `assertEqual` because at that moment the tests were grouped under the `unittest.TestCase`-based class (`SFTPTest`). Before PR merge `unittest.TestCase` was refactored out from sftp tests (667bd74b139ed86f9b261d3abf5b6042ba80920b) but PR was not updated. The sftp tests are marked with `slow` and that's why they are not failed in CI (slow tests are excluded by default). Fixes: https://github.com/paramiko/paramiko/issues/1941 Signed-off-by: Stanislav Levin <slev@altlinux.org>
2022-05-20Merge branch '2.9' into 2.10Jeff Forcier
2022-05-20Revert "Mark new tests that require SHA1"Jeff Forcier
This reverts commit dca52aa8a2ddbc32fc874a8d235652c68e1dc3b9. Forgot this decorator wasn't ported back this far, heh.
2022-05-20Merge branch '2.9' into 2.10Jeff Forcier
2022-05-20Mark new tests that require SHA1Paul Howarth
Like https://github.com/paramiko/paramiko/pull/2011
2022-05-20Merge branch '2.9' into 2.10Jeff Forcier
2022-05-20Add test proving #1599Jeff Forcier
2022-05-16Merge branch '2.9' into 2.10Jeff Forcier
2022-05-16Fix OpenSSH<7.8 + RSA-CERT use re: SHA2Jeff Forcier
Closes #2017
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.9' into 2.10Jeff Forcier
2022-04-25don't throw exception when comparing PKey to non-PKeyChristopher Papke
2022-04-22Add -cert-v01@openssh.com variants to accepted host key algorithmsJeff Forcier
Solves #2035
2022-03-18Merge branch '2.9' into 2.10Jeff Forcier
2022-03-18Fix publickey authentication with signed RSA keyJun Omae
2022-03-14Use args, not kwargs, to retain py2 compat for nowJeff Forcier
2022-03-11blackenJeff Forcier
2022-03-11Fix CVE re: PKey.write_private_key chmod raceJeff Forcier
CVE-2022-24302 (see changelog for link)
2022-03-11Helps to actually leverage your mocked system callsJeff Forcier
2022-03-11OpenSSH docs state %C should also work in IdentityFile and Match execJeff Forcier
(at least, of what we presently ourselves support - it's also allowed in others)
2022-03-11Prettify, add %C as acceptable controlpath token, mock gethostnameJason Brand
2021-12-24Changelog and test re #1955Jeff Forcier
2021-12-23Add agent RSA-SHA2 support, also tweak changelog w/ more ticketsJeff 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
2021-11-28No idea why the lack of this blew up on circle but not locallyJeff Forcier
Probably the locales differ? sigh
2021-11-28Blacken code for #992Jeff Forcier
2021-11-28Cleanup re #992Jeff Forcier
- remove apparently vestigial bits - remove Python 2.6 related bits - use pytest.skip instead of custom skip
2021-11-28Fix failure in listdir when server uses a localeMartin Packman
Fixes #985 SFTPAttributes uses the locale-aware %b directive for the abbreviated month name with time.strftime, but was not decoding the result on Python 2.7. Add a strftime alias in py3compat that will always return unicode, and resolve the mixing of bytes and text in SFTPAttributes methods. Add a test at the listdir level, and a more specific test for the SFTPAttributes asbytes method.
2021-11-28Add new requireNonAsciiLocale test decoratorMartin Packman
2021-11-28Expose Python 2.6 compatible test skip decoratorMartin Packman
2021-11-28Tests proving #1257Jeff Forcier
2021-11-28Enhance tests of existing/general key cmp/hash behaviorJeff Forcier
Not sure why these were never explicitly tested
2021-11-28Pre-patch test proving security flaw re: 32bit key hash comparisonsJeff Forcier
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>
2021-10-08Try getting Kerberos working on CircleJeff Forcier
Sadly it fails. Unclear whether I'm missing something, or if this represents a diff between the Ubuntu versions Travis last used and what Circle's images are on. I did get the tests themselves truly running, and while I trimmed back the deps a bit vs Travis, it's only as some of them were redundant/required by other packages we install here. Leaving it defined but not actually used in the workflow.
2021-10-08bump test/ci related sleep :(Jeff Forcier
2021-07-23Merge branch '2.7' into masterJeff Forcier
2021-07-23Merge branch '2.6' into 2.7Jeff Forcier