summaryrefslogtreecommitdiff
path: root/tests/smbserver.py
Commit message (Collapse)AuthorAgeFilesLines
* smbserver: remove temporary files before exitDan Fandrich2023-04-251-1/+54
| | | | | | | | Each execution of test 1451 would leave a file in /tmp before. Since Windows can't delete a file while it's open, all the temporary file names are stored and deleted on exit. Closes #10990
* copyright: update all copyright lines and remove year rangesDaniel Stenberg2023-01-031-1/+1
| | | | | | | | | | | | - they are mostly pointless in all major jurisdictions - many big corporations and projects already don't use them - saves us from pointless churn - git keeps history for us - the year range is kept in COPYING checksrc is updated to allow non-year using copyright statements Closes #10205
* copyright: make repository REUSE compliantmax.mehl2022-06-131-1/+3
| | | | | | | | | | | Add licensing and copyright information for all files in this repository. This either happens in the file itself as a comment header or in the file `.reuse/dep5`. This commit also adds a Github workflow to check pull requests and adapts copyright.pl to the changes. Closes #8869
* tests/smbserver.py: fix compatibility with impacket 0.9.23+Marc Hoersken2021-11-011-3/+4
| | | | | | | | | | impacket now performs sanity checks if the requested and to be served file path actually is inside the real share path. Ref: https://github.com/SecureAuthCorp/impacket/pull/1066 Fixes #7924 Closes #7935
* tests: be explicit about using 'python3' instead of 'python'a13460542021-08-231-1/+1
| | | | | | | This fixes running tests in virtualenvs (or on distros) that no longer have a symlink from python to python2 or python3. Closes #7602
* misc: update incorrect copyright year rangesDaniel Stenberg2021-08-161-1/+1
| | | | Closes #7577
* tests/*server.py: remove pidfile on server terminationMarc Hoersken2021-07-291-0/+3
| | | | | | | Avoid pidfile leaking/laying around after server already exited. Reviewed-by: Daniel Stenberg Closes #7506
* tests/*server.py: close log file after each log lineMarc Hoersken2020-11-141-10/+12
| | | | | | | | | | | Make sure the log file is not locked once a test has finished and align with the behavior of our logmsg. Rename curl_test_data.py to be a general util.py. Format and sort Python imports with isort/VSCode. Bug: #6058 Closes #6206
* curl.se: new homeDaniel Stenberg2020-11-041-1/+1
| | | | Closes #6172
* tests: fix conflict between Cygwin/msys and Windows PIDsMarc Hoersken2020-04-111-2/+9
| | | | | | | | | | | | | | Add 65536 to Windows PIDs to allow Windows specific treatment by having disjunct ranges for Cygwin/msys and Windows PIDs. See also: - https://cygwin.com/git/?p=newlib-cygwin.git;a=commit; ↵ h=b5e1003722cb14235c4f166be72c09acdffc62ea - https://cygwin.com/git/?p=newlib-cygwin.git;a=commit; ↵ h=448cf5aa4b429d5a9cebf92a0da4ab4b5b6d23fe Replaces #5178 Closes #5188
* tests: make Python-based servers compatible with Python 2 and 3Marc Hoersken2020-03-191-6/+6
| | | | | | | | | | | | | | | | Update smbserver.py and negtelnetserver.py to be compatible with Python 3 while staying backwards-compatible to support Python 2. Fix string encoding and handling of echoed and transferred data. Tested with both Python 2.7.17 and Python 3.7.7 Reported-by: Daniel Stenberg Assisted-by: Kamil Dudka Reviewed-by: Marcel Raad Fixes #5104 Closes #5110
* tests: remove python_dependencies for smbserver from our treeMarc Hoersken2020-03-151-3/+7
| | | | | | | | | | | | Users of the SMB tests will have to install impacket manually. Reasoning: our in-tree version of impacket was quite outdated and only compatible with Python 2 which is already end-of-life. Upgrading to Python 3 and a compatible impacket version would require to import additional Python-only and CPython-extension dependencies. This would have hindered portability enormously. Closes #5094
* smbserver: pin Python version to 2 since we are not yet 3 compatibleMarc Hoersken2020-03-131-1/+1
| | | | | | | | Even though the existing code can be fixed to run on Python 3, the tests will fail due to the Unicode transition the protocol is invalid. Follow up to ee63837 Closes #5085
* smbserver: fix Python version specific ConfigParser importMarc Hoersken2020-03-121-2/+2
| | | | | Follow up to ee63837 and 8c7c4a6 Fixes #5077
* smbserver: fix Python 3 compatibilityMarcel Raad2019-10-131-2/+5
| | | | | | Python 2's `ConfigParser` module is spelled `configparser` in Python 3. Closes https://github.com/curl/curl/pull/4484
* tests: support non-localhost HOSTIP for dict/smb serversStephan Szabo2019-06-201-1/+3
| | | | | | | | | | | | smbserver.py/dictserver.py were explicitly using localhost/127.0.0.1 for binding the server which when we were running the tests with a separate HOSTIP and CLIENTIP had failures verifying the server from the device we were testing. This changes them to take the address from runtests.py and default to localhost/127.0.0.1 if none is given. Closes #4048
* test1451: add SMB support to the testbedMax Dymond2017-07-041-0/+377
Add test 1451 which does some very basic SMB testing using the impacket SMB server. Closes #1630