summaryrefslogtreecommitdiffhomepage
path: root/test.py
AgeCommit message (Collapse)Author
2014-03-29Switch from using PyCrypto's Random to using os.urandom.Alex Gaynor
There's several reasons for this change: 1) It's faster for reads up to 1024 bytes (nearly 10x faster for 16 byte reads) 2) It receives considerably more security review since it's in the kernel. 3) It's yet another step towards running on PyPy. 4) Using userspace CSPRNGs is considered something of an anti-pattern. See: http://sockpuppet.org/blog/2014/02/25/safely-generate-random-numbers/ http://webcache.googleusercontent.com/search?q=cache:2nTvpCgKZXIJ:www.2uo.de/myths-about-urandom/+&cd=3&hl=en&ct=clnk&gl=us
2013-11-19Change conditional from PY3 to PY2 to be better prepared for a possible Py4.Scott Maxwell
2013-11-01Fix thread stop for Py3Scott Maxwell
2013-11-01Don't import test_sftp or test_sftp_big unless we are going to do the testsScott Maxwell
2013-10-30Fix importsScott Maxwell
2013-09-27Fixed a typo in the license header of most filesJeff Forcier
Conflicts: paramiko/proxy.py
2012-09-24Exit correctly so test.py can be used in CIJeff Forcier
(cherry picked from commit d516fe71ea1d8bdb7b2e278fa519f7f860d7e234)
2012-09-24Fixes to failing-test teardowns to avoid more exceptions or hangsJeff Forcier
(cherry picked from commit 734f3d6f42ef1564f473fee5526e0354fc8196fc) Conflicts: test.py
2009-07-19fix my email address to be the current one.Robey Pointer
2008-01-23[project @ robey@lag.net-20080124013849-jno9xkgwvvqrvuov]Robey Pointer
split auth tests into their own file, and clean up the remaining transport tests a bit (use existing refactoring).
2007-02-13[project @ robey@lag.net-20070213191706-v8djxd4jiunb3his]Robey Pointer
bump copyright year to 2007
2007-01-22[project @ robey@lag.net-20070122211718-02rz92vb9626vur4]Robey Pointer
an errant slash was making unit tests unrunnable on windows
2006-11-10[project @ robey@lag.net-20061111005330-08c517e2576693bd]Robey Pointer
use python from env for unit tests
2006-07-31[project @ robey@lag.net-20060731070137-571efc087c20347a]Robey Pointer
clean up test.py a bit and allow filtering from the command line
2006-05-07[project @ robey@lag.net-20060508002007-3b7b87c361fe876a]Robey Pointer
add unit tests for SSHClient, and fix a few bugs that uncovered
2006-04-11[project @ robey@lag.net-20060411074019-1c4ec3497399bf11]Robey Pointer
oops, don't forget BufferedPipe unit tests
2006-03-09[project @ robey@lag.net-20060309081455-84be2ae54f98e897]Robey Pointer
move sftp big-file tests into a separate class and add one that does a prefetch, then seeks in random order
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
2005-12-04[project @ robey@lag.net-20051204090414-7c8318ab735f6188]Robey Pointer
experimental util functions for parsing/getting openssh host config, and unit tests (turned out to be pretty easy)
2005-12-02[project @ robey@ralph.lag.net-20051203043919-0a8c4665d04853fc]Robey Pointer
turn down output for unit tests by default, but add --verbose option to manually crank them back up
2005-05-10[project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-8]Robey Pointer
add unit tests for the packetizer, and fix a little locking bug where i think more of the packetizer write function should be inside a lock
2005-05-01[project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-5]Robey Pointer
split out Packetizer, fix banner detection bug, new unit test split out a chunk of BaseTransport into a Packetizer class, which handles the in/out packet data, ciphers, etc. it didn't make the code any smaller (transport.py is still close to 1500 lines, which is awful) but it did split out a coherent chunk of functionality into a discrete unit. in the process, fixed a bug that alain spineux pointed out: the banner check was too forgiving and would block forever waiting for an SSH banner. now it waits 5 seconds for the first line, and 2 seconds for each subsequent line, before giving up. added a unit test to test keepalive, since i wasn't sure that was still working after pulling out Packetizer.
2005-02-28[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-154]Robey Pointer
even better 1.2 lapras re-bump the version # to 1.2 (with a new date since i added more stuff). add 2005 to the copyright date in a bunch of files.
2005-01-16[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-139]Robey Pointer
make loopback sftp tests the default change the unit tests to default to always running the sftp tests locally, and make a -R option to force the tests to run against a remote server. the tests seem to work fine locally, and it helps test out server mode, even though there's a danger that they could get isolated from reality and only test that paramiko can talk to itself.
2004-12-19[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-136]Robey Pointer
loopback sftp test add ability to turn off more tests, and a secret (for now) -X option to do the sftp tests via loopback socket. added another symlink sftp test to see what happens with absolute symlinks.
2004-11-07[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-102]Robey Pointer
add key exchange tests + 1 more sftp test add test suite for key-exchange protocols, since i apparently broke the "gex" protocol recently and never noticed. also add an sftp unit test for mkdir/rmdir.
2004-10-20[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-94]Robey Pointer
start testing Transport the beginnings of tests for Transport. only the bare minimum is there right now. also started doc'ing things up to ivysaur.
2004-09-25[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-91]Robey Pointer
fix test.py to use options instead of env vars, sftp tests default off fix up the test framework so that the sftp unit tests aren't always run (you have to ask for them explicitly) and they take their configuration from command-line options. they still require a remote server.
2004-06-10[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-61]Robey Pointer
no more Foobar fix "Foobar" to be "Paramiko" in the one place i missed it in all the gpl headers. sigh. :)
2004-03-08[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-32]Robey Pointer
add unit tests add unit tests for BufferedFile and SFTP (it's a start). remove the demo sftp client because it was 99% copied from the other demos, which makes it kinda confusing. the unit tests are a much better example.