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 | </reply> |
| 11 | |
| 12 | # Client-side |
| 13 | <client> |
| 14 | <server> |
| 15 | ftp |
| 16 | </server> |
| 17 | <name> |
| 18 | FTP upload two files to the same dir |
| 19 | </name> |
| 20 | <command> |
| 21 | -T log/upload.%TESTNUMBER ftp://%HOSTIP:%FTPPORT/a/path/%TESTNUMBER/ -T log/upload.%TESTNUMBER ftp://%HOSTIP:%FTPPORT/a/path/%TESTNUMBER/%2e%2eanotherup.%TESTNUMBER |
| 22 | </command> |
| 23 | <file name="log/upload.%TESTNUMBER"> |
| 24 | upload this file twice |
| 25 | </file> |
| 26 | </client> |
| 27 | |
| 28 | # Verify data after the test has been "shot" |
| 29 | <verify> |
| 30 | <protocol> |
| 31 | USER anonymous
|
| 32 | PASS ftp@example.com
|
| 33 | PWD
|
| 34 | CWD a
|
| 35 | CWD path
|
| 36 | CWD %TESTNUMBER
|
| 37 | EPSV
|
| 38 | TYPE I
|
| 39 | STOR upload.%TESTNUMBER
|
| 40 | EPSV
|
| 41 | STOR ..anotherup.%TESTNUMBER
|
| 42 | QUIT
|
| 43 | </protocol> |
| 44 | </verify> |
| 45 | </testcase> |