test595 727 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <testcase>
  2. #
  3. # This test is like 585 but uses passive FTP instead of HTTP
  4. #
  5. <info>
  6. <keywords>
  7. FTP
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <data>
  14. moo
  15. </data>
  16. <datacheck>
  17. [OPEN] counter: 1
  18. [OPEN] counter: 2
  19. moo
  20. [CLOSE] counter: 2
  21. [CLOSE] counter: 1
  22. </datacheck>
  23. </reply>
  24. # Client-side
  25. <client>
  26. <server>
  27. ftp
  28. </server>
  29. # tool is what to use instead of 'curl'
  30. <tool>
  31. lib585
  32. </tool>
  33. <name>
  34. verify close callbacks with passive FTP
  35. </name>
  36. <command>
  37. ftp://%HOSTIP:%FTPPORT/%TESTNUMBER %LOGDIR/ip%TESTNUMBER
  38. </command>
  39. </client>
  40. #
  41. # Verify data after the test has been "shot"
  42. <verify>
  43. <protocol>
  44. USER anonymous
  45. PASS ftp@example.com
  46. PWD
  47. EPSV
  48. TYPE I
  49. SIZE %TESTNUMBER
  50. RETR %TESTNUMBER
  51. QUIT
  52. </protocol>
  53. </verify>
  54. </testcase>