test1393 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. RETR
  6. </keywords>
  7. </info>
  8. # Server-side
  9. <reply>
  10. # file1393 contents...
  11. <data nocheck="yes">
  12. HTTP/1.1 200 OK
  13. Date: Thu, 09 Nov 2010 14:49:00 GMT
  14. Server: test-server/fake
  15. Content-Length: 6
  16. Connection: close
  17. Content-Type: text/html
  18. Content-Disposition: filename=name1393; charset=funny; option=strange
  19. MOOOO
  20. </data>
  21. </reply>
  22. # Client-side
  23. <client>
  24. <server>
  25. ftp
  26. </server>
  27. <name>
  28. FTP DL, file with C-D inside, using -o fname -i, without -D
  29. </name>
  30. <command option="no-output,no-include">
  31. ftp://%HOSTIP:%FTPPORT/path/file1393 -o log/download1393 -i
  32. </command>
  33. <postcheck>
  34. perl %SRCDIR/libtest/notexists.pl log/file1393 log/name1393
  35. </postcheck>
  36. </client>
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. <protocol>
  40. USER anonymous
  41. PASS ftp@example.com
  42. PWD
  43. CWD path
  44. EPSV
  45. TYPE I
  46. SIZE file1393
  47. RETR file1393
  48. QUIT
  49. </protocol>
  50. <file1 name="log/download1393" mode="text">
  51. HTTP/1.1 200 OK
  52. Date: Thu, 09 Nov 2010 14:49:00 GMT
  53. Server: test-server/fake
  54. Content-Length: 6
  55. Connection: close
  56. Content-Type: text/html
  57. Content-Disposition: filename=name1393; charset=funny; option=strange
  58. MOOOO
  59. </file1>
  60. <file2 name="log/stdout1393" mode="text">
  61. </file2>
  62. </verify>
  63. </testcase>