test596 787 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <testcase>
  2. #
  3. # This test is like 585 but uses active 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. [CLOSE] counter: 2
  20. moo
  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 active FTP
  35. </name>
  36. <command>
  37. ftp://%HOSTIP:%FTPPORT/%TESTNUMBER %LOGDIR/ip%TESTNUMBER activeftp
  38. </command>
  39. </client>
  40. #
  41. # Verify data after the test has been "shot"
  42. <verify>
  43. <strippart>
  44. s/^(EPRT \|1\|)(.*)/$1/
  45. </strippart>
  46. <protocol>
  47. USER anonymous
  48. PASS ftp@example.com
  49. PWD
  50. EPRT |1|
  51. TYPE I
  52. SIZE %TESTNUMBER
  53. RETR %TESTNUMBER
  54. QUIT
  55. </protocol>
  56. </verify>
  57. </testcase>