mirror of
https://github.com/moparisthebest/curl
synced 2024-11-04 16:45:06 -05:00
3c9066fce5
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
44 lines
664 B
Plaintext
44 lines
664 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
SMB
|
|
</keywords>
|
|
</info>
|
|
|
|
#
|
|
# Server-side
|
|
<reply>
|
|
<data nocheck="yes">
|
|
Basic SMB test complete
|
|
</data>
|
|
</reply>
|
|
|
|
#
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
smb
|
|
</server>
|
|
<features>
|
|
smb
|
|
</features>
|
|
<name>
|
|
Basic SMB request
|
|
</name>
|
|
<command>
|
|
-u 'curltest:curltest' smb://%HOSTIP:%SMBPORT/TESTS/1451
|
|
</command>
|
|
<precheck>
|
|
python -c "__import__('pkgutil').find_loader('impacket') or (__import__('sys').stdout.write('Test only works if Python package impacket is installed\n'), __import__('sys').exit(1))"
|
|
</precheck>
|
|
</client>
|
|
|
|
#
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<stdout>
|
|
Basic SMB test complete
|
|
</stdout>
|
|
</verify>
|
|
</testcase>
|