summaryrefslogtreecommitdiffhomepage
path: root/tests
AgeCommit message (Collapse)Author
2022-04-25Massage #1951 a bitJeff Forcier
- changelog - test - tilde makes no sense here (ProxyJump is only ever [user@]host[:port] syntax) so removed it
2022-04-25blackenJeff Forcier
2022-04-25Merge branch '2.10'Jeff Forcier
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-25Refactor sha1 test skipping a tadJeff Forcier
2022-03-21Fix for compatibility with old versions of cryptographyPaul Howarth
2022-03-21Remove unused variable, keep lint happyPaul Howarth
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-18Merge branch '2.10'Jeff Forcier
2022-03-18Merge branch '2.9' into 2.10Jeff Forcier
2022-03-18Fix publickey authentication with signed RSA keyJun Omae
2022-03-15Fix Free Software Foundation addressPaul Howarth
They moved from Temple Place to Franklin Street in 2005.
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
2021-07-23Merge branch '2.5' into 2.6Jeff Forcier
2021-07-23noqa long lineJeff Forcier
2021-07-23Merge branch '2.7' into masterJeff Forcier
2021-07-23Merge branch '2.6' into 2.7Jeff Forcier
2021-07-23Merge branch '2.5' into 2.6Jeff Forcier
2021-07-23Add some tests for server-mode Diffie-Hellman key exchange.Benno Rice
Tests existed for diffie-hellman-group1-sha1 in both client and server modes but tests for diffie-hellman-group14-sha256 and diffie-hellman-group16-sha512 were missing in server mode.
2021-06-06BlackenJeff Forcier
2021-04-30Fixup readability: Add Test for get() without using prefetchTim Stolarski
2021-04-28Add Test fpr get() without using prefetchTim Stolarski
2020-08-30fixed malformed PEM files -- there should not be leading spacesAlex Gaynor