2
0

test1379 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. RETR
  6. </keywords>
  7. </info>
  8. # Server-side
  9. <reply>
  10. <data nocheck="yes">
  11. fooo
  12. mooo
  13. </data>
  14. </reply>
  15. # Client-side
  16. <client>
  17. <server>
  18. ftp
  19. </server>
  20. <name>
  21. FTP DL, file without C-D inside, using -o fname -D file
  22. </name>
  23. <command option="no-output,no-include">
  24. ftp://%HOSTIP:%FTPPORT/path/file1379 -o log/download1379 -D log/heads1379
  25. </command>
  26. <postcheck>
  27. perl %SRCDIR/libtest/notexists.pl log/file1379
  28. </postcheck>
  29. </client>
  30. # Verify data after the test has been "shot"
  31. <verify>
  32. <protocol>
  33. USER anonymous
  34. PASS ftp@example.com
  35. PWD
  36. CWD path
  37. EPSV
  38. TYPE I
  39. SIZE file1379
  40. RETR file1379
  41. QUIT
  42. </protocol>
  43. <file1 name="log/download1379">
  44. fooo
  45. mooo
  46. </file1>
  47. <file2 name="log/heads1379">
  48. 220- _ _ ____ _
  49. 220- ___| | | | _ \| |
  50. 220- / __| | | | |_) | |
  51. 220- | (__| |_| | _ {| |___
  52. 220 \___|\___/|_| \_\_____|
  53. 331 We are happy you popped in!
  54. 230 Welcome you silly person
  55. 257 "/" is current directory
  56. 250 CWD command successful.
  57. 229 Entering Passive Mode (stripped)
  58. 200 I modify TYPE as you wanted
  59. 213 10
  60. 150 Binary data connection for 1379 () (10 bytes).
  61. 226 File transfer complete
  62. </file2>
  63. <stripfile2>
  64. s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
  65. </stripfile2>
  66. <file3 name="log/stdout1379">
  67. </file3>
  68. </verify>
  69. </testcase>