summaryrefslogtreecommitdiffhomepage
path: root/tests/test_sftp_big.py
AgeCommit message (Collapse)Author
2023-06-02Make test for prefetch requests limit stableKlemens Schölhorn
The prefetch requests are added in a background process, so the might not be ready when the test wants to count them. Fix it by introducing a wait_for untility function that waits for a assert to pass for a specified timeout, to give the background thread the chance to start and add the prefetch requests. Also lock the prefetch lock before trying to access the extents to prevent a data race.
2023-06-02Add test for prefetch request limitBenjamin C Winston (Technical Operations)
2023-05-05Migrate rest of main keys and update suite to be more pytest-relaxed compatJeff Forcier
Main branch as of today: 350 passed, 21 skipped, 52 deselected, 3 warnings in 11.10s This branch as of this commit: 361 passed, 21 skipped, 52 deselected, 3 warnings in 10.51s Of those 11 "new" tests, 8 are ones I wrote (tests/pkey.py). Hard to figure out what the other 3 are given pytest-relaxed's output is very different from regular verbose pytest. oops.
2023-01-16blackenJeff Forcier
2023-01-16No more (object)ionsJeff Forcier
2023-01-16s/%/fstrings/gJeff Forcier
Except in one spot where it was too complicated to bother for now XD
2022-03-15Fix Free Software Foundation addressPaul Howarth
They moved from Temple Place to Franklin Street in 2005.
2019-06-08flake8 now applied to tests, huzzahJeff Forcier
2019-06-08Clean up shitty old test names of form test_[9-0A-Z]+_.*Jeff Forcier
2018-08-22Bump black up to 18.6b4Jeff Forcier
2018-05-29Blacken under black 18.5b0Jeff Forcier
2018-05-17Blacken Paramiko on 2.4Chris Rose
2017-10-25Mark known slow tests as 'slow' pytest marker, and skip them by defaultJeff 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-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
2015-07-23prefetch now requires file_size to be passed in as a parameterTorkil Gustavsen
Calling stat from inside the prefetch-body has led users to receive IOError: The message [<filename>] is not extractable.
2014-04-17BufferedFile.read() now returns byte strings instead of text stringsAntoine Brenner
It is the right thing to do since we have no idea what encoding the file is in, or even if the file is text data. BufferedFile.readline() is unchanged and returns text strings assuming the file is utf-8 encoded. This should fix the following issue: http://comments.gmane.org/gmane.comp.sysutils.backup.obnam/252 Antoine Brenner Conflicts: sites/www/changelog.rst
2014-03-07Fix import * and a bunch of PEP8 formattingScott Maxwell
2014-03-07Start in on star import eradicationJeff Forcier
2013-11-19Use 'with' for opening most file and SFTPFIle objectsScott Maxwell
2013-11-02Fix some deprecation and resource warningsScott Maxwell
2013-11-02Make sftp.open handle binary and text, more type conversionScott Maxwell
2013-11-01Changes inspired by the nischu7 branchScott Maxwell
2013-10-31More type fixesScott Maxwell
2013-10-31Setup so we can run test_sftp_big independentlyScott Maxwell
2013-10-30Convert and detect types properly, use helper constants, use StringIO and rangeScott Maxwell
2013-10-30Fix message sendingScott Maxwell
Create constants for byte messages, implement asbytes so many methods can take Message and key objects directly and split get_string into get_text and get_binary. Also, change int handling to use mpint with a flag whenever the int is greater than 32 bits.
2013-10-30Fix importsScott Maxwell
2013-09-27Fixed a typo in the license header of most filesJeff Forcier
Conflicts: paramiko/proxy.py
2009-07-19fix my email address to be the current one.Robey Pointer
2008-03-22[project @ robey@lag.net-20080323020309-9bjcp7l2ygdu49d2]Robey Pointer
slight tweak to test, make it verify the length too
2008-03-22[project @ robey@lag.net-20080323020054-ar5bmythf7fr5rgk]Robey Pointer
in the test that verifies key renegotiation during a large file "put", also do a "get" of the large file (with prefetch) to verify that nothing screwy happens.
2007-02-13[project @ robey@lag.net-20070213191706-v8djxd4jiunb3his]Robey Pointer
bump copyright year to 2007
2006-07-25[project @ robey@lag.net-20060726000907-b9a2d46eecc64cec]Robey Pointer
allow prefetch + readv to occur at the same time (even though it will be really inefficient). instead of a moving pointer, use the prefetched buffers as an indication of what we've downloaded so far. break up large readv requests into the max packet size. add 2 more unit tests to test this stuff.
2006-05-01[project @ robey@lag.net-20060502002709-617a268779f7ca6b]Robey Pointer
readv should just yield results as it gets them (suggestion from robertc)
2006-03-11[project @ robey@lag.net-20060312040732-8d16f6c42f12f138]Robey Pointer
document readv, fix thinko, and add a readv unit test
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