test1393 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. RETR
  6. </keywords>
  7. </info>
  8. # Server-side
  9. <reply>
  10. # file%TESTNUMBER contents...
  11. <data nocheck="yes">
  12. HTTP/1.1 200 OK
  13. Date: Tue, 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=name%TESTNUMBER; 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/file%TESTNUMBER -o %LOGDIR/download%TESTNUMBER -i
  32. </command>
  33. <postcheck>
  34. perl %SRCDIR/libtest/notexists.pl %LOGDIR/file%TESTNUMBER %LOGDIR/name%TESTNUMBER
  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 file%TESTNUMBER
  47. RETR file%TESTNUMBER
  48. QUIT
  49. </protocol>
  50. <file1 name="%LOGDIR/download%TESTNUMBER">
  51. HTTP/1.1 200 OK
  52. Date: Tue, 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=name%TESTNUMBER; charset=funny; option=strange
  58. MOOOO
  59. </file1>
  60. <file2 name="%LOGDIR/stdout%TESTNUMBER">
  61. </file2>
  62. </verify>
  63. </testcase>