xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
2 | <info> | ||||
3 | <keywords> | ||||
4 | FTP | ||||
5 | </keywords> | ||||
6 | </info> | ||||
7 | |||||
8 | # Server-side | ||||
9 | <reply> | ||||
10 | <servercmd> | ||||
11 | DELAY CWD 60 | ||||
12 | </servercmd> | ||||
13 | </reply> | ||||
14 | |||||
15 | # Client-side | ||||
16 | <client> | ||||
17 | <server> | ||||
18 | ftp | ||||
19 | </server> | ||||
20 | <killserver> | ||||
21 | ftp | ||||
22 | </killserver> | ||||
23 | <name> | ||||
24 | FTP download with strict timeout and slow CWD | ||||
25 | </name> | ||||
26 | <command timeout="1"> | ||||
27 | ftp://%HOSTIP:%FTPPORT/path/to/file/%TESTNUMBER -m %FTPTIME2 | ||||
28 | </command> | ||||
29 | </client> | ||||
30 | |||||
31 | # Verify data after the test has been "shot" | ||||
32 | <verify> | ||||
33 | # 28 is CURLE_OPERATION_TIMEDOUT | ||||
34 | <errorcode> | ||||
35 | 28 | ||||
36 | </errorcode> | ||||
37 | <protocol> | ||||
38 | USER anonymous | ||||
39 | PASS ftp@example.com | ||||
40 | PWD | ||||
41 | CWD path | ||||
42 | </protocol> | ||||
43 | </verify> | ||||
44 | </testcase> |