summaryrefslogtreecommitdiffhomepage
path: root/tests/test_sftp.py
AgeCommit message (Collapse)Author
2013-09-27Merge branch '1.9' into 1.10Jeff Forcier
2013-09-27Fixed a typo in the license header of most filesJeff Forcier
Conflicts: paramiko/proxy.py
2013-03-04Adding test capturing desired behavior and demonstrating issue #142.Jason R. Coombs
2013-03-04Delint test_sftp (remove unused imports and unused variables, remove excess ↵Jason R. Coombs
whitespace, move imports to top, remove semicolon terminator) --HG-- extra : source : 01df712a396de5fa7e1c0cc265411fdb2bbc5f41
2013-01-05Replace useless version check with import from __future__Michael Williamson
2013-01-05Verify Python version >= 2.6 before running context manager testMichael Williamson
2013-01-04Turn SFTPFile into a context managerMichael Williamson
2010-04-13code style and fix test.Robey Pointer
2009-12-18added functionality to skip verifying the file, which works around sftp ↵Larry Wright
servers that remove the file immediately after it's been closed.
2009-10-31bug 411099: chdir() isn't saving the cwd in a normalized way. added test.Robey Pointer
2009-07-19fix my email address to be the current one.Robey Pointer
2008-07-06[project @ robey@lag.net-20080706230815-v2ybqxm237zw0wa0]Robey Pointer
add a callback method that can be used to track get/put progress in SFTPClient. suggested by Phil Schwartz.
2007-02-13[project @ robey@lag.net-20070213191706-v8djxd4jiunb3his]Robey Pointer
bump copyright year to 2007
2006-09-01[project @ robey@lag.net-20060901205930-021bcc34e3d5d8c8]Robey Pointer
sadly, revert the append optimization -- it breaks for openssh
2006-08-22[project @ robey@lag.net-20060823025538-3f8a4d761d7d4118]Robey Pointer
when a file is open for append, don't stat to get the file position unless the user asks for it explicitly
2006-08-01[project @ robey@lag.net-20060801182143-088ff687e0945937]Robey Pointer
use hexlify in tests
2006-05-12[project @ robey@lag.net-20060512172544-f1cab2a1959987bf]Robey Pointer
fix new cygwin test failures reported by alexander
2006-05-03[project @ robey@lag.net-20060503163531-2297cd257acc51e5]Robey Pointer
make a slightly different exception for the expected mode on cygwin (why would they add support for some but not all of the unix mode bits? very odd)
2006-04-28[project @ robey@lag.net-20060428172401-ad8da020daedd941]Robey Pointer
2 more unit test bugs found by alexander (can't change atime on win32)
2006-04-20[project @ robey@lag.net-20060420072627-958cad5e36cb8ecc]Robey Pointer
fix a bug where prefetch() at EOF would throw an exception, and add a unit test
2006-04-06[project @ robey@lag.net-20060406181821-68f9bc13b3580d37]Robey Pointer
some fixes for win32: potential fix for lockup during failed tests; don't try chmod/chown or symlinks; fix canonicalize to convert dos-style path separators to '/'; open local files in binary mode; close a file before erasing it
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-20060220031741-3227438ff1b03a29]Robey Pointer
add SFTPClient.truncate. add chmod, chown, utime, and truncate to SFTPFile. and of course tests.
2005-12-02[project @ robey@ralph.lag.net-20051203043223-8ee54573dcda1386]Robey Pointer
new unit test for doing a bunch of prefetches at once
2005-12-02[project @ robey@lag.net-20051202120305-73accda404b89d27]Robey Pointer
dumb test to verify utf8 encoding
2005-11-12[project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-80]Robey Pointer
add 'x' flag to open to allow O_EXCL behavior
2005-10-29[project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-72]Robey Pointer
don't attempt to start a rekey negotiation from within send_message -- always do it from the feeder thread. this prevents a situation where more than one thread may decide spontaneously to rekey, sending multiple kexinit messages, which confuses the hell out of the remote host :) also, do some locking around the clear-to-send event, to avoid a race when we first go into rekeying. add some tests for these things too
2005-10-24[project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-70]Robey Pointer
add SFTPFile.prefetch() to allow pre-fetching a file that will be downloaded in full -- quick testing showed this could speed up downloads 3x or more
2005-09-25[project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-60]Robey Pointer
add file pipelining for writes
2005-08-03[project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-49]Robey Pointer
dumb tiny tweaks
2005-07-18[project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-46]Robey Pointer
add SFTPFile.check and server support (and test) -- it's an sftp extension that allows a client to retrieve the hash of part or all of a file without downloading it. we're probably the only ones who implement it yet
2005-07-13[project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-33]Robey Pointer
add SFTPClient.put and SFTPClient.get, and make sftp file objects auto-close on del
2005-07-13[project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-32]Robey Pointer
add the concept of a cwd to SFTPClient, and add a unit test for it
2005-06-28[project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-17]Robey Pointer
more unit tests
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-04-18[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-163]Robey Pointer
add SFTPClient.close() add SFTPClient.close() and add a simple little unit test for it.
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-02-28[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-153]Robey Pointer
tweak sftp_file write behavior on large blocks of data BufferedFile.write() wasn't correctly dealing with the possibility that the underlying write might not write the entire data block at once (even though the docs said it would). now that it's working, make sftp_file take advantage of it in order to chop up blocks larger than 32kB (the max allowed on sftp) and add a unit test for it.
2005-02-06[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-143]Robey Pointer
fix an sftp unit test fix one of the sftp unit tests to actually work.
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-12-10[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-122]Robey Pointer
symlink, readlink add support for symlink command, and finish support for readlink. (i guess i started readlink a while ago but forgot to add the right method to the SFTPServerInterface class.)
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-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-09-11[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-81]Robey Pointer
more unit tests add test for BufferedFile.read(-1) and sftp.normalize().
2004-06-10[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-57]Robey Pointer
more unit tests add a unit test for sending a large (1MB) file with line buffering but no linefeeds (this triggered several bugs and inefficiencies), and another test to verify that the write buffer is flushed on seek.
2004-05-29[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-55]Robey Pointer
add an sftp unit test for making 100 files create 100 files on the remote server, set their mode with chmod, then verify that they're all there and contain the right data. valeriy is reporting that sometimes he's getting stuck after 20 and though i'm not seeing it, i want to add a test to try to pin it down.
2004-04-06[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-42]Robey Pointer
support py22, more or less add roger binns' patches for supporting python 2.2. i hedged a bit on the logging stuff and just added some trickery to let logging be stubbed out for python 2.2. this changed a lot of import statements but i managed to avoid hacking at any of the existing logging. socket timeouts are required for the threads to notice when they've been deactivated. worked around it by using the 'select' module on py22. also fixed the sftp unit tests to cope with a password-protected private key.
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.