| 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 | # tool is what to use instead of 'curl' | ||||
| 18 | <tool> | ||||
| 19 | lib%TESTNUMBER | ||||
| 20 | </tool> | ||||
| 21 | |||||
| 22 | <name> | ||||
| 23 | FTP upload and upload same file again without rewind | ||||
| 24 | </name> | ||||
| 25 | <command> | ||||
| 26 | ftp://%HOSTIP:%FTPPORT/%TESTNUMBER log/upload%TESTNUMBER | ||||
| 27 | </command> | ||||
| 28 | <file name="log/upload%TESTNUMBER"> | ||||
| 29 | Contents | ||||
| 30 | of | ||||
| 31 | a file | ||||
| 32 | to verify | ||||
| 33 | ftp | ||||
| 34 | upload | ||||
| 35 | |||||
| 36 | |||||
| 37 | works? | ||||
| 38 | </file> | ||||
| 39 | </client> | ||||
| 40 | |||||
| 41 | # Verify data after the test has been "shot" | ||||
| 42 | <verify> | ||||
| 43 | <upload> | ||||
| 44 | </upload> | ||||
| 45 | <protocol> | ||||
| 46 | USER anonymous | ||||
| 47 | PASS ftp@example.com | ||||
| 48 | PWD | ||||
| 49 | EPSV | ||||
| 50 | TYPE I | ||||
| 51 | STOR %TESTNUMBER | ||||
| 52 | EPSV | ||||
| 53 | STOR %TESTNUMBER | ||||
| 54 | QUIT | ||||
| 55 | </protocol> | ||||
| 56 | </verify> | ||||
| 57 | </testcase> | ||||