mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
new tests
This commit is contained in:
parent
4163b86cd2
commit
f34573c8e2
@ -13,4 +13,6 @@ test102 test11 test117 test124 test19 test23 test33 test8 \
|
||||
test103 test110 test118 test125 test2 test24 test4 test9 \
|
||||
test104 test111 test119 test13 test20 test25 test400 test47 \
|
||||
test105 test112 test12 test14 test200 test26 test43 test46 \
|
||||
test34 test36 test37 test27 test28
|
||||
test34 test36 test37 test27 test28 test29 test303 test126 test400 \
|
||||
test401
|
||||
|
||||
|
30
tests/data/test126
Normal file
30
tests/data/test126
Normal file
@ -0,0 +1,30 @@
|
||||
# Server-side
|
||||
<reply>
|
||||
moooooooo
|
||||
</reply>
|
||||
|
||||
# Client-side
|
||||
<client>
|
||||
<name>
|
||||
FTP download with strict timeout and slow CWD
|
||||
</name>
|
||||
<command>
|
||||
ftp://%HOSTIP:%FTPPORT/path/to/file/126 -m 3
|
||||
</command>
|
||||
<file name="log/ftpserver.cmd">
|
||||
DELAY CWD 15
|
||||
</file>
|
||||
</test>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<errorcode>
|
||||
28
|
||||
</errorcode>
|
||||
<protocol>
|
||||
USER anonymous
|
||||
PASS curl_by_daniel@haxx.se
|
||||
PWD
|
||||
CWD path/to/file
|
||||
</protocol>
|
||||
</verify>
|
40
tests/data/test29
Normal file
40
tests/data/test29
Normal file
@ -0,0 +1,40 @@
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
<html>result</html>
|
||||
</data>
|
||||
<postcmd>
|
||||
wait 10
|
||||
</postcmd>
|
||||
</reply>
|
||||
|
||||
# Client-side
|
||||
<client>
|
||||
<name>
|
||||
HTTP with 2 secs timeout
|
||||
</name>
|
||||
<command>
|
||||
http://%HOSTIP:%HOSTPORT/want/29 -m 2
|
||||
</command>
|
||||
</test>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<strip>
|
||||
^User-Agent:.*
|
||||
</strip>
|
||||
<protocol>
|
||||
GET /want/29 HTTP/1.1
|
||||
Host: 127.0.0.1:8999
|
||||
Pragma: no-cache
|
||||
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
|
||||
|
||||
</protocol>
|
||||
<errorcode>
|
||||
28
|
||||
</errorcode>
|
||||
</verify>
|
40
tests/data/test303
Normal file
40
tests/data/test303
Normal file
@ -0,0 +1,40 @@
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
<html>result</html>
|
||||
</data>
|
||||
<postcmd>
|
||||
wait 10
|
||||
</postcmd>
|
||||
</reply>
|
||||
|
||||
# Client-side
|
||||
<client>
|
||||
<name>
|
||||
HTTPS with 2 secs timeout
|
||||
</name>
|
||||
<command>
|
||||
http://%HOSTIP:%HOSTPORT/want/303 -m 2
|
||||
</command>
|
||||
</test>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<strip>
|
||||
^User-Agent:.*
|
||||
</strip>
|
||||
<protocol>
|
||||
GET /want/303 HTTP/1.1
|
||||
Host: 127.0.0.1:8999
|
||||
Pragma: no-cache
|
||||
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
|
||||
|
||||
</protocol>
|
||||
<errorcode>
|
||||
28
|
||||
</errorcode>
|
||||
</verify>
|
30
tests/data/test401
Normal file
30
tests/data/test401
Normal file
@ -0,0 +1,30 @@
|
||||
# Server-side
|
||||
<reply>
|
||||
moooooooo
|
||||
</reply>
|
||||
|
||||
# Client-side
|
||||
<client>
|
||||
<name>
|
||||
FTPS download with strict timeout and slow CWD
|
||||
</name>
|
||||
<command>
|
||||
ftps://%HOSTIP:%FTPSPORT/path/to/file/401 -m 4
|
||||
</command>
|
||||
<file name="log/ftpserver.cmd">
|
||||
DELAY CWD 15
|
||||
</file>
|
||||
</test>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<errorcode>
|
||||
28
|
||||
</errorcode>
|
||||
<protocol>
|
||||
USER anonymous
|
||||
PASS curl_by_daniel@haxx.se
|
||||
PWD
|
||||
CWD path/to/file
|
||||
</protocol>
|
||||
</verify>
|
21
tests/data/test402
Normal file
21
tests/data/test402
Normal file
@ -0,0 +1,21 @@
|
||||
# Server-side
|
||||
<reply>
|
||||
moooooooo
|
||||
</reply>
|
||||
|
||||
# Client-side
|
||||
<client>
|
||||
<name>
|
||||
FTPS operation to FTP port
|
||||
</name>
|
||||
<command>
|
||||
ftps://%HOSTIP:%FTPPORT/path/to/file/402
|
||||
</command>
|
||||
</test>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<errorcode>
|
||||
35
|
||||
</errorcode>
|
||||
</verify>
|
Loading…
Reference in New Issue
Block a user