FTP: add test for FTPFILE_NOCWD: Avoid redundant CWDs

Add libtest 661

Closes #4417
This commit is contained in:
Zenju 2019-09-24 19:58:35 +02:00 committed by Daniel Stenberg
parent 500fb0e4cb
commit a167ab6a1e
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 228 additions and 2 deletions

View file

@ -83,7 +83,7 @@ test617 test618 test619 test620 test621 test622 test623 test624 test625 \
test626 test627 test628 test629 test630 test631 test632 test633 test634 \
test635 test636 test637 test638 test639 test640 test641 test642 \
test643 test644 test645 test646 test647 test648 test649 test650 test651 \
test652 test653 test654 test655 test656 test658 test659 test660 \
test652 test653 test654 test655 test656 test658 test659 test660 test661 \
\
test700 test701 test702 test703 test704 test705 test706 test707 test708 \
test709 test710 test711 test712 test713 test714 test715 test716 test717 \

73
tests/data/test661 Normal file
View file

@ -0,0 +1,73 @@
<testcase>
<info>
<keywords>
FTP
</keywords>
</info>
#
# Server-side
<reply>
<data>
</data>
</reply>
# Client-side
<client>
<server>
ftp
</server>
# tool is what to use instead of 'curl'
<tool>
lib661
</tool>
<name>
Avoid redundant CWDs
</name>
<command>
ftp://%HOSTIP:%FTPPORT/
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<protocol>
USER anonymous
PASS ftp@example.com
PWD
CWD /folderA
EPSV
TYPE I
RETR 661
CWD /folderB
EPSV
RETR 661
QUIT
USER anonymous
PASS ftp@example.com
PWD
EPSV
TYPE I
RETR /folderA/661
CWD /folderB
EPSV
RETR 661
EPSV
RETR /folderA/661
QUIT
USER anonymous
PASS ftp@example.com
PWD
SYST
QUIT
USER anonymous
PASS ftp@example.com
PWD
SYST
SYST
QUIT
</protocol>
</verify>
</testcase>