mirror of
https://github.com/curl/curl.git
synced 2026-08-26 06:43:31 +03:00
test416: verify growing FTP file support
Added setting: RETRSIZE [size] in the <servercmd> section. When set this will cause the test FTP server to return the size set (rather than the actual size) in the acknowledgement from a RETR request. Closes #9772
This commit is contained in:
parent
76b3f5f2cf
commit
383fb29da1
4 changed files with 62 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ test370 test371 test372 test373 test374 test375 test376 test378 test379 \
|
|||
test380 test381 test383 test384 test385 test386 test387 test388 test389 \
|
||||
test390 test391 test392 test393 test394 test395 test396 test397 test398 \
|
||||
test399 test400 test401 test402 test403 test404 test405 test406 test407 \
|
||||
test408 test409 test410 test411 test412 test413 test414 test415 \
|
||||
test408 test409 test410 test411 test412 test413 test414 test415 test416 \
|
||||
\
|
||||
test430 test431 test432 test433 test434 test435 test436 \
|
||||
\
|
||||
|
|
|
|||
51
tests/data/test416
Normal file
51
tests/data/test416
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
FTP
|
||||
EPSV
|
||||
RETR
|
||||
Range
|
||||
</keywords>
|
||||
</info>
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
0123456789abcdef0123456789abcdef0123456789abcdef
|
||||
</data>
|
||||
<datacheck>
|
||||
0123456789abcdef0123456789abcdef0123456789abcdef
|
||||
</datacheck>
|
||||
<servercmd>
|
||||
RETRSIZE 7
|
||||
</servercmd>
|
||||
<size>
|
||||
8
|
||||
</size>
|
||||
</reply>
|
||||
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
ftp
|
||||
</server>
|
||||
<name>
|
||||
FTP growing file support
|
||||
</name>
|
||||
<command>
|
||||
--ignore-content-length ftp://%HOSTIP:%FTPPORT/%TESTNUMBER
|
||||
</command>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol>
|
||||
USER anonymous
|
||||
PASS ftp@example.com
|
||||
PWD
|
||||
EPSV
|
||||
TYPE I
|
||||
RETR %TESTNUMBER
|
||||
QUIT
|
||||
</protocol>
|
||||
</verify>
|
||||
</testcase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue