test1381 1.4 KB

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