test227 715 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. post-quote
  6. pre-quote
  7. quote
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. data
  14. to
  15. see
  16. that FTP
  17. works
  18. so does it?
  19. </data>
  20. <servercmd>
  21. REPLY EPSV 500 no such command
  22. REPLY FAIL 500 this might not be a failure!
  23. </servercmd>
  24. </reply>
  25. # Client-side
  26. <client>
  27. <server>
  28. ftp
  29. </server>
  30. <name>
  31. FTP with quote ops
  32. </name>
  33. <command>
  34. ftp://%HOSTIP:%FTPPORT/227 -Q "NOOP 1" -Q "+NOOP 2" -Q "-NOOP 3" -Q "*FAIL" -Q "+*FAIL HARD"
  35. </command>
  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. NOOP 1
  44. FAIL
  45. EPSV
  46. PASV
  47. TYPE I
  48. NOOP 2
  49. FAIL HARD
  50. SIZE 227
  51. RETR 227
  52. NOOP 3
  53. QUIT
  54. </protocol>
  55. </verify>
  56. </testcase>