test149 906 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. </keywords>
  6. </info>
  7. # Server-side
  8. <reply>
  9. </reply>
  10. # Client-side
  11. <client>
  12. <server>
  13. ftp
  14. </server>
  15. <name>
  16. FTP with multiple uploads
  17. </name>
  18. <command>
  19. -T %LOGDIR/upload%TESTNUMBER ftp://%HOSTIP:%FTPPORT/dir1/%TESTNUMBER -T %LOGDIR/upload%TESTNUMBER ftp://%HOSTIP:%FTPPORT/dir2/%TESTNUMBER
  20. </command>
  21. <file name="%LOGDIR/upload%TESTNUMBER">
  22. send away this contents
  23. </file>
  24. </client>
  25. # Verify data after the test has been "shot"
  26. <verify>
  27. # Strip all valid kinds of PORT and EPRT that curl can send
  28. <strip>
  29. ^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}
  30. ^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|
  31. </strip>
  32. <protocol>
  33. USER anonymous
  34. PASS ftp@example.com
  35. PWD
  36. CWD dir1
  37. EPSV
  38. TYPE I
  39. STOR %TESTNUMBER
  40. CWD /
  41. CWD dir2
  42. EPSV
  43. STOR %TESTNUMBER
  44. QUIT
  45. </protocol>
  46. <file name="%LOGDIR/upload%TESTNUMBER">
  47. send away this contents
  48. </file>
  49. </verify>
  50. </testcase>