xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | <testcase> |
2 | #based off test 707 after bug report #1218 | ||||
3 | <info> | ||||
4 | <keywords> | ||||
5 | FTP | ||||
6 | PASV | ||||
7 | RETR | ||||
8 | SOCKS5 | ||||
9 | all_proxy | ||||
10 | </keywords> | ||||
11 | </info> | ||||
12 | # | ||||
13 | # Server-side | ||||
14 | <reply> | ||||
15 | <data> | ||||
16 | silly content | ||||
17 | </data> | ||||
18 | <servercmd> | ||||
19 | </servercmd> | ||||
20 | </reply> | ||||
21 | |||||
22 | # | ||||
23 | # Client-side | ||||
24 | <client> | ||||
25 | <features> | ||||
26 | proxy | ||||
27 | </features> | ||||
28 | <server> | ||||
29 | ftp | ||||
30 | socks5 | ||||
31 | </server> | ||||
32 | <setenv> | ||||
33 | all_proxy=socks5://%HOSTIP:%SOCKSPORT | ||||
34 | </setenv> | ||||
35 | <name> | ||||
36 | FTP fetch with all_proxy set to socks5 | ||||
37 | </name> | ||||
38 | <command> | ||||
39 | ftp://%HOSTIP:%FTPPORT/%TESTNUMBER | ||||
40 | </command> | ||||
41 | </client> | ||||
42 | |||||
43 | # | ||||
44 | # Verify data after the test has been "shot" | ||||
45 | <verify> | ||||
46 | <protocol> | ||||
47 | USER anonymous | ||||
48 | PASS ftp@example.com | ||||
49 | PWD | ||||
50 | EPSV | ||||
51 | TYPE I | ||||
52 | SIZE %TESTNUMBER | ||||
53 | RETR %TESTNUMBER | ||||
54 | QUIT | ||||
55 | </protocol> | ||||
56 | </verify> | ||||
57 | </testcase> |