summaryrefslogtreecommitdiffhomepage
path: root/tests
AgeCommit message (Collapse)Author
2017-10-23Replace rest of unittest-style self-asserts in sftp testsJeff Forcier
2017-10-23Start overhauling regular SFTP suite.Jeff Forcier
Includes attempt to split out the longer-lived server component from the client component, in fixtures Also starts tweaking early tests so they're less bad. E.g. test_2_close had its docstring actively disagreeing with its code (which was super confusing since both were committed at the same time in 2005...)
2017-10-23Tweak test-level logging format to include timestampsJeff Forcier
2017-10-23Scope SFTP client/server fixture to be session-level for nowJeff Forcier
Saves at least a few seconds per module this way and not super worried about state bleed so far
2017-10-23Get big sftp tests passing w/ the sftp client + folder crap being a fixtureJeff Forcier
2017-10-23Get sftp-big tests apparently passing.Jeff Forcier
Very slowly. Pretty sure we will want to retain module-level fixtures for that stuff. heh.
2017-10-23Import cleanup, mostly focused on s/tests/./Jeff Forcier
2017-10-23Rename util func that trips pytest's default discovery.Jeff Forcier
Wouldn't matter as much under pytest-relaxed discovery, but, eh
2017-10-16Dropped Python 2.6 so we can stop using u()/b() for literals.Jeff Forcier
Sadly we (ab?)use them in many more places, but hey, every little bit counts
2017-10-14Remove old Python 3.2 codeHugo
2017-10-10Use set literalsJeff Forcier
2017-10-10Update docs, metadata, test references to 2.6/3.3Jeff Forcier
2017-10-10Skip the now-split-out failure test, since we actually do intend to exit ↵Jeff Forcier
silently for now
2017-10-10Split out env-set failure testJeff Forcier
2017-10-10Update still-failing client test to use contextmanager assertRaises styleJeff Forcier
2017-10-10This has been broken since it went in :( the test would never normally pass ↵Jeff Forcier
otherwise...
2017-10-10Use new(er)-style string formatting, {} instead of {0}Jeff Forcier
2017-09-22Comment re: cert testsJeff Forcier
2017-09-22Move cert tests & copies of related keys into separate folder.Jeff Forcier
This prevents non-cert-related tests from incidentally loading the certs, which was masking issues (re #1071)
2017-09-18Merge branch '2.2'Jeff Forcier
2017-09-18Fix rekeying with GSS-API key exchangeSebastian Deiss
When GSS-API key exchange is used a rekey caused a GSS-API MIC failure and closed the transport. This happened because the MIC of the transport session ID (H of the initial kex) was checked against the MIC of the new H created during rekey.
2017-09-12Merge branch '2.1' into 2.2Jeff Forcier
2017-09-12Merge branch '2.2'Jeff Forcier
2017-09-12Merge branch '2.0' into 2.1Jeff Forcier
2017-09-12Merge branch '2.0' into 1061-intJeff Forcier
2017-09-12Merge branch '2.2'Jeff Forcier
2017-09-05Merge branch 'master' into 1026-intJeff Forcier
2017-09-02Python 2.6 fixesJeff Forcier
Fixes #1049
2017-08-28Python 3 fixes re #1042Jeff Forcier
2017-08-28Implement ECDSA certs.Jeff Forcier
So mad at that frickin typo'd specification...
2017-08-28Update recent tests to try all main key families.Jeff Forcier
Includes some dummy certificates. Not sure exactly how @radssh generated the RSA one but I'm using ssh-keygen + a randomly made CA key.
2017-08-28God damn it, really? Whatever.Jeff Forcier
2017-08-28Update first few stub tests + required test-server and PublicBlob impl bitsJeff Forcier
2017-08-28Overhaul PublicBlob and use it better within RSAKey.Jeff Forcier
This allows server-side Paramiko code to correctly create cert-bearing RSAKey objects and thus verify client signatures, and now the test suite passes again, barring the stub tests. Re #1042
2017-08-28Stub tests and partly-working implementation of 'load certs found alongside ↵Jeff Forcier
key_filenames' behavior re #1042 This actually breaks existing tests due to test server not supporting certs...bah
2017-08-22Generic certificate supportPaul Kapp
Roll agnostic certificate support into PKey, and tweak publickey authentication to use it only if set. Requires explicit call to PKey.load_certificate() in order to alter the authentication behavior.
2017-08-04Merge branch '2.1-gsskex-hostkeycheck-fix' into 2.2-gsskex-hostkeycheck-fixAnselm Kruis
2017-08-04AuthHandler: fix the server-mode "gssapi-with-mic" logicAnselm Kruis
A paramiko server is now able to handle a restart of the user authentication during the GSS-API token exchange. This may occur, if the client detects a local GSSAPI problem (e.g. a missing kerberos ticket) and continues with another authentication method. The added test case test_2_auth_trickledown still fails, because the paramiko client contains a bug too.
2017-08-04Merge branch '2.0-gsskex-hostkeycheck-fix' into 2.1-gsskex-hostkeycheck-fixAnselm Kruis
2017-08-04SSHClient: fix the host key testAnselm Kruis
Skip the host key check only, if the transport actually used gssapi-keyex. Add tests for the missing-host-key RejectPolicy. Before this change, a man-in-the-middle attack on the paramiko ssh client with gss_kex=True was possible by having a server that does not support gssapi-keyex and gives any or no host key.
2017-07-28Move assertions outside of the open context managerMichal Kuffa
2017-07-28Add file_obj handling to the Ed25519Key constructorMichal Kuffa
2017-06-13WhitespaceJeff Forcier
2017-06-13implement __hash__() method for Ed25519KeyPierce Lopez
makes Ed25519Key objs comparable, needed for host keys
2017-06-09Merge branch '2.1'Jeff Forcier
2017-06-09Merge branch '2.1' into 910-intJeff Forcier
2017-06-09Merge branch '2.1'Jeff Forcier
2017-06-09Merge branch '2.0' into 2.1Jeff Forcier
2017-06-09Flake8/etc tweaks re #971 in 2.xJeff Forcier
2017-06-09Allow any buffer type to be written to SFTPFileMartin Packman
Fixes #967 #968 Rollup of earlier branches proposed as #969 and #970 with additional fix inside sftp_client. Includes new tests for SFTPFile usage. Change against the 1.17 branch.