#
57cc5233 |
| 26-Sep-2024 |
Dan Fandrich |
tests: enable additional ruff Python lint options These all seem reasonable to enable for this code.
|
#
0f7ba5c5 |
| 26-Sep-2024 |
Dan Fandrich |
tests: change Python code style to pass ruff checks Most of the changes consisted of removing unused imports and unnecessary f-strings.
|
#
2f3b7f20 |
| 26-Sep-2024 |
Dan Fandrich |
tests: fix some Python typing issues These otherwise raise errors in pytype. A few problematic methods weren't being used and are deleted.
|
#
895008de |
| 17-Sep-2024 |
Dan Fandrich |
tests: Only log warnings or worse by default in smbserver There shouldn't be anything displayed during a normal run, but only if server debugging is enabled. Also, set log_file to a magi
tests: Only log warnings or worse by default in smbserver There shouldn't be anything displayed during a normal run, but only if server debugging is enabled. Also, set log_file to a magic value to disable it, otherwise impacket installs its own logger that messes with what we want. Closes #14950
show more ...
|
#
6f352264 |
| 23-Aug-2024 |
Dan Fandrich |
tests: tweak use of impacket in smbserver The missing message only uses a single line now and has a consistent prefix making it easier for log parsers to skip. Remove a precheck test
tests: tweak use of impacket in smbserver The missing message only uses a single line now and has a consistent prefix making it easier for log parsers to skip. Remove a precheck test looking for impacket in test1451 because it's incomplete, unnecessary and in the wrong layer; the test harness will automatically discover that the smbserver won't start and the test was only checking a single dependency. Also update the tests README to no longer mention Python 2. The servers were switched to Python 3 several years ago and no attempt is being made to maintain Python 2 compatibility Closes #14669
show more ...
|
#
a4aebd73 |
| 17-Apr-2023 |
Dan Fandrich |
smbserver: remove temporary files before exit 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
smbserver: remove temporary files before exit 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
show more ...
|
#
2bc1d775 |
| 02-Jan-2023 |
Daniel Stenberg |
copyright: update all copyright lines and remove year ranges - they are mostly pointless in all major jurisdictions - many big corporations and projects already don't use them - save
copyright: update all copyright lines and remove year ranges - 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
show more ...
|
#
ad9bc597 |
| 17-May-2022 |
max.mehl |
copyright: make repository REUSE compliant 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
copyright: make repository REUSE compliant 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
show more ...
|
#
d52316e4 |
| 01-Nov-2021 |
Marc Hoersken |
tests/smbserver.py: fix compatibility with impacket 0.9.23+ impacket now performs sanity checks if the requested and to be served file path actually is inside the real share path.
tests/smbserver.py: fix compatibility with impacket 0.9.23+ 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
show more ...
|
#
ec91b5a6 |
| 21-Aug-2021 |
a1346054 <36859588+a1346054@users.noreply.github.com> |
tests: be explicit about using 'python3' instead of 'python' This fixes running tests in virtualenvs (or on distros) that no longer have a symlink from python to python2 or python3.
tests: be explicit about using 'python3' instead of 'python' This fixes running tests in virtualenvs (or on distros) that no longer have a symlink from python to python2 or python3. Closes #7602
show more ...
|
#
8c9722bb |
| 16-Aug-2021 |
Daniel Stenberg |
misc: update incorrect copyright year ranges Closes #7577
|
#
c34bd93f |
| 16-Jul-2021 |
Marc Hoersken |
tests/*server.py: remove pidfile on server termination Avoid pidfile leaking/laying around after server already exited. Reviewed-by: Daniel Stenberg Closes #7506
|
Revision tags: curl-7_76_1, curl-7_76_0, curl-7_75_0, curl-7_74_0 |
|
#
24f909ce |
| 14-Nov-2020 |
Marc Hoersken |
tests/*server.py: close log file after each log line Make sure the log file is not locked once a test has finished and align with the behavior of our logmsg. Rename curl_test_da
tests/*server.py: close log file after each log line 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
show more ...
|
#
4d2f8006 |
| 04-Nov-2020 |
Daniel Stenberg |
curl.se: new home Closes #6172
|
Revision tags: curl-7_73_0, tiny-curl-7_72_0, curl-7_72_0, curl-7_71_1, curl-7_71_0, curl-7_70_0 |
|
#
3f60a9e9 |
| 05-Apr-2020 |
Marc Hoersken |
tests: fix conflict between Cygwin/msys and Windows PIDs Add 65536 to Windows PIDs to allow Windows specific treatment by having disjunct ranges for Cygwin/msys and Windows PIDs.
tests: fix conflict between Cygwin/msys and Windows PIDs 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
show more ...
|
#
3c9066fc |
| 17-Mar-2020 |
Marc Hoersken |
tests: make Python-based servers compatible with Python 2 and 3 Update smbserver.py and negtelnetserver.py to be compatible with Python 3 while staying backwards-compatible to support Py
tests: make Python-based servers compatible with Python 2 and 3 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
show more ...
|
#
4be2560e |
| 15-Mar-2020 |
Marc Hoersken |
tests: remove python_dependencies for smbserver from our tree Users of the SMB tests will have to install impacket manually. Reasoning: our in-tree version of impacket was quite out
tests: remove python_dependencies for smbserver from our tree 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
show more ...
|
#
ba0e6fbd |
| 12-Mar-2020 |
Marc Hoersken |
smbserver: pin Python version to 2 since we are not yet 3 compatible Even though the existing code can be fixed to run on Python 3, the tests will fail due to the Unicode transition the
smbserver: pin Python version to 2 since we are not yet 3 compatible 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
show more ...
|
#
d5c01d77 |
| 12-Mar-2020 |
Marc Hoersken |
smbserver: fix Python version specific ConfigParser import Follow up to ee63837 and 8c7c4a6 Fixes #5077
|
Revision tags: curl-7_69_1, curl-7_69_0, curl-7_68_0, curl-7_67_0 |
|
#
ee638377 |
| 13-Oct-2019 |
Marcel Raad |
smbserver: fix Python 3 compatibility Python 2's `ConfigParser` module is spelled `configparser` in Python 3. Closes https://github.com/curl/curl/pull/4484
|
Revision tags: curl-7_66_0, curl-7_65_3, curl-7_65_2 |
|
#
2aff76c5 |
| 19-Jun-2019 |
Stephan Szabo |
tests: support non-localhost HOSTIP for dict/smb servers smbserver.py/dictserver.py were explicitly using localhost/127.0.0.1 for binding the server which when we were running the tests
tests: support non-localhost HOSTIP for dict/smb servers 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
show more ...
|
Revision tags: curl-7_65_1, curl-7_65_0, curl-7_64_1, curl-7_64_0, curl-7_63_0, curl-7_62_0, curl-7_61_1, curl-7_61_0, curl-7_60_0, curl-7_59_0, curl-7_58_0, curl-7_57_0, curl-7_56_1, curl-7_56_0, curl-7_55_1, curl-7_55_0 |
|
#
a6f8d27e |
| 03-Jul-2017 |
Max Dymond |
test1451: add SMB support to the testbed Add test 1451 which does some very basic SMB testing using the impacket SMB server. Closes #1630
|