test227 709 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. post-quote
  6. pre-quote
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data>
  12. data
  13. to
  14. see
  15. that FTP
  16. works
  17. so does it?
  18. </data>
  19. <servercmd>
  20. REPLY EPSV 500 no such command
  21. REPLY FAIL 500 this might not be a failure!
  22. </servercmd>
  23. </reply>
  24. # Client-side
  25. <client>
  26. <server>
  27. ftp
  28. </server>
  29. <name>
  30. FTP with quote ops
  31. </name>
  32. <command>
  33. ftp://%HOSTIP:%FTPPORT/227 -Q "NOOP 1" -Q "+NOOP 2" -Q "-NOOP 3" -Q "*FAIL" -Q "+*FAIL HARD"
  34. </command>
  35. </client>
  36. # Verify data after the test has been "shot"
  37. <verify>
  38. <protocol>
  39. USER anonymous
  40. PASS ftp@example.com
  41. PWD
  42. NOOP 1
  43. FAIL
  44. EPSV
  45. PASV
  46. TYPE I
  47. NOOP 2
  48. FAIL HARD
  49. SIZE 227
  50. RETR 227
  51. NOOP 3
  52. QUIT
  53. </protocol>
  54. </verify>
  55. </testcase>