Commit 86367d67 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

new FTP tests

parent bd8cef5a
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -5,9 +5,11 @@ test:
	[ -f test1 ] || ln -s $(srcdir)/test* .

EXTRA_DIST = \
test1    test104  test11   test15   test20   test23   test33   test6 \
test10   test105  test110  test16   test200  test24   test4    test7 \
test100  test106  test111  test17   test201  test25   test400  test8 \
test101  test107  test12   test18   test202  test26   test43   test9 \
test102  test108  test13   test19   test21   test3    test44   \
test103  test109  test14   test2    test22   test300  test5    
test1    test106  test113  test120  test15   test201  test3    test6 \
test10   test107  test114  test121  test16   test202  test300  test7 \
test100  test108  test115  test122  test17   test21   test33   test8 \
test101  test109  test116  test123  test18   test22   test4    test9 \
test102  test11   test117  test124  test19   test23   test400  \
test103  test110  test118  test125  test2    test24   test43   \
test104  test111  test119  test13   test20   test25   test44   \
test105  test112  test12   test14   test200  test26   test5

tests/data/test112

0 → 100644
+37 −0
Original line number Diff line number Diff line
# Server-side
<reply>
</reply>

# Client-side
<client>
 <name>
FTP PASV upload resume
 </name>
 <command>
ftp://%HOSTIP:%FTPPORT/112 -T log/upload112 -C 40
</command>
<file name="log/upload112">
this is the *****crap******** that we're gonna upload

worx?
</file>
</test>

# Verify data after the test has been "shot"
<verify>
<strip>
</strip>
<protocol>
USER anonymous
PASS curl_by_daniel@haxx.se
PWD
PASV
TYPE I
APPE 112
</protocol>
<upload>
 gonna upload

worx?
</upload>
</verify>

tests/data/test113

0 → 100644
+26 −0
Original line number Diff line number Diff line
# Server-side
<reply>
</reply>

# Client-side
<client>
 <name>
FTP download, failed login: USER not valid
 </name>
 <command>
ftp://%HOSTIP:%FTPPORT/113
</command>
<file name="log/ftpserver.cmd">
REPLY USER 314 bluah you fewl!
</file>
</test>

# Verify data after the test has been "shot"
<verify>
<errorcode>
12
</errorcode>
<protocol>
USER anonymous
</protocol>
</verify>

tests/data/test114

0 → 100644
+27 −0
Original line number Diff line number Diff line
# Server-side
<reply>
</reply>

# Client-side
<client>
 <name>
FTP download, failed login: PASS not valid
 </name>
 <command>
ftp://%HOSTIP:%FTPPORT/114
</command>
<file name="log/ftpserver.cmd">
REPLY PASS 314 bluah you f00l!
</file>
</test>

# Verify data after the test has been "shot"
<verify>
<errorcode>
11
</errorcode>
<protocol>
USER anonymous
PASS curl_by_daniel@haxx.se
</protocol>
</verify>

tests/data/test115

0 → 100644
+29 −0
Original line number Diff line number Diff line
# Server-side
<reply>
</reply>

# Client-side
<client>
 <name>
FTP download, failed PASV
 </name>
 <command>
ftp://%HOSTIP:%FTPPORT/115
</command>
<file name="log/ftpserver.cmd">
REPLY PASV 314 bluah you f00l!
</file>
</test>

# Verify data after the test has been "shot"
<verify>
<errorcode>
13
</errorcode>
<protocol>
USER anonymous
PASS curl_by_daniel@haxx.se
PWD
PASV
</protocol>
</verify>
Loading