mirror of
https://github.com/moparisthebest/curl
synced 2024-12-25 17:48:48 -05:00
4be2560e01
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
44 lines
665 B
Plaintext
44 lines
665 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>
|
|
python2 -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>
|