summaryrefslogtreecommitdiff
path: root/t/test.py
Commit message (Collapse)AuthorAgeFilesLines
* Added spaces to directory names.Michael P. Soulier2022-11-261-1/+26
|
* Fix race condition when waiting for ACKMarcin Lewandowski2022-03-231-0/+51
| | | | | | | | | | | | | | | | | | TFTPy is designed in a way that socket timeout is used to calculate timeout when waiting for packet. During that time another unexpected packet may arrive. After that the socket operation is restarted and timeout is calculated from start. This might be a problem because both sides have timeout and these timeout may be different or one host may be significantly faster that another. In such situation the timeout will be never triggered as another host will always retransmit his packet faster. For most cases it does not matter because TFTP is always responding to packet sent and transmission may continue. The only one exception is no response to duplicate ACK. It is necessary to prevent Sorcerer's Apprentice Syndrome. This patch introduces additional exception TftpTimeoutExpectACK raised when reaching timeout during waiting on ACK of current block but receiving duplicate ACK of previous block.
* run pyupgradeadehad2021-10-231-1/+1
|
* first attempt with github actions, various lintingadehad2021-10-111-165/+160
|
* Merged PR 117Michael P. Soulier2021-05-181-3/+11
|
* TftpServerState.serverInitial: prevent access to prefix-sharing siblings of ↵Robert Scott2020-08-291-29/+106
| | | | | | | | | | | | tftproot do this by ensuring the tftproot we compare against is terminated with a slash. Fixes #110 include tests proving the fix, along with some more fleshed out tests around permitted and disallowed request paths
* Fixing another broken test caseMichael P. Soulier2018-09-131-1/+1
|
* Fixing some broken test-cases.Michael P. Soulier2018-09-131-2/+2
|
* Fixing some encoding issues in python3Michael P. Soulier2018-09-131-9/+9
|
* Adding some boilerplateMichael P. Soulier2018-05-181-0/+2
|
* Putting TftpClient and TftpServer back into the tftpy module context for ↵Michael P. Soulier2018-05-151-19/+25
| | | | convenience. Also improving the test logger.
* Rationalized module includes and logging.Michael P. Soulier2018-05-151-84/+62
|
* Removing logging.basicConfig from library. Fixes #86.Michael P. Soulier2018-05-091-0/+1
|
* Fix some deprecations and python3 incompatibilitiessedrubal2018-04-041-12/+12
|
* make testStreamLogger and testFileLogger clearerReverend Homer2016-10-241-7/+2
|
* Merge branch 'master' into dynamicPaul Weaver2016-07-071-10/+10
|\ | | | | | | | | | | | | To resolve conflict with latest changes on master Conflicts: tftpy/TftpServer.py
| * Fixing obvious python3 errors. Timeouts still not working.Michael P. Soulier2016-07-061-8/+8
| |
| * Fixing some python3 syntax errorsMichael P. Soulier2016-07-051-2/+2
| |
* | Add a context to dynamic upload_openPaul Weaver2016-06-171-1/+1
| |
* | Implement dynamic upload supportPaul Weaver2016-06-171-2/+26
|/
* tests: fix failure due to alarmCarl van Schaik2016-04-121-10/+14
| | | | | | | Test cases raises an alarm in the server to call the stop() function. This actually interrupts the select system call and raises an exception instead. We catch the interrupted syscall in select and allow it to restart.
* tests: Rate limit test with timing dependencyCarl van Schaik2016-04-101-6/+14
| | | | | | When running tests on a fast server, or with output redirected, some test cases would complete a transfer before the test delay to inject an error.
* Merge branch 'tsize'Michael P. Soulier2015-10-151-0/+6
|\
| * Added tests for tsize option and fixed failures.Michael P. Soulier2015-10-151-0/+6
| |
* | Adding joke of a unit test for logging.Michael P. Soulier2015-10-141-0/+22
|/
* Test case for dynamic server listenportPhilip Derrin2014-06-131-1/+22
|
* Added a test for last change.Michael P. Soulier2013-11-111-0/+3
|
* Added tests for server api stop.Michael P. Soulier2013-09-271-0/+74
|
* Fixed testcases.Michael P. Soulier2013-09-261-13/+13
|
* Fixing a testcase.Michael P. Soulier2013-09-261-7/+7
|
* Fixing unit testsMichael P. Soulier2013-07-281-10/+10
|
* Increasing test file size to 50MB and removed the assertion of a block zero,baserock/morphMichael P. Soulier2013-05-151-7/+7
| | | | as that will happen at block number rollover. Closes issue #36.
* Adding testcases for new file-like input and outputMichael P. Soulier2012-09-301-4/+14
|
* Fixing testcase for pre python 2.7Michael P. Soulier2012-09-291-1/+1
|
* t/test.py: add unit test for insecure path accessFabian Knittel2012-04-261-0/+38
| | | | | The test currently fails, because the request path is improperly checked / sanitised.
* Fixing issue #26, with the server not creating the full path to the filenameMichael P. Soulier2012-03-101-3/+6
| | | | being uploaded.
* Adding subdirectory support. Hopefully closes issue 25.Michael P. Soulier2011-09-011-0/+38
|
* Fixing issue #3, expanding unit tests.Michael P. Soulier2011-07-241-0/+67
|
* Adding a server download state test to the unit tests.Michael P. Soulier2011-06-021-1/+44
|
* Fixing typo in unit testMichael P. Soulier2010-05-251-1/+1
|
* Fixed unit test for factorymsoulier2007-06-051-1/+1
| | | | git-svn-id: https://tftpy.svn.sourceforge.net/svnroot/tftpy/trunk@68 63283fd4-ec1e-0410-9879-cb7f675518da
* Added testcase for TftpPacketFactory.msoulier2006-10-251-0/+18
| | | | git-svn-id: https://tftpy.svn.sourceforge.net/svnroot/tftpy/trunk@29 63283fd4-ec1e-0410-9879-cb7f675518da
* Updated testcases, fixed one error in decode_optionsmsoulier2006-10-131-3/+57
| | | | git-svn-id: https://tftpy.svn.sourceforge.net/svnroot/tftpy/trunk@26 63283fd4-ec1e-0410-9879-cb7f675518da
* Updated testcasesmsoulier2006-10-111-0/+28
| | | | git-svn-id: https://tftpy.svn.sourceforge.net/svnroot/tftpy/trunk@25 63283fd4-ec1e-0410-9879-cb7f675518da
* Adding makefilemsoulier2006-10-111-0/+39
git-svn-id: https://tftpy.svn.sourceforge.net/svnroot/tftpy/trunk@23 63283fd4-ec1e-0410-9879-cb7f675518da