test505 733 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. # tool is what to use instead of 'curl'
  16. <tool>
  17. lib%TESTNUMBER
  18. </tool>
  19. <name>
  20. FTP upload with rename after transfer
  21. </name>
  22. <command>
  23. ftp://%HOSTIP:%FTPPORT/%TESTNUMBER log/upload%TESTNUMBER
  24. </command>
  25. <file name="log/upload%TESTNUMBER">
  26. Contents
  27. of
  28. a file
  29. to verify
  30. ftp
  31. upload
  32. works?
  33. </file>
  34. </client>
  35. # Verify data after the test has been "shot"
  36. <verify>
  37. <upload>
  38. Contents
  39. of
  40. a file
  41. to verify
  42. ftp
  43. upload
  44. works?
  45. </upload>
  46. <protocol>
  47. USER anonymous
  48. PASS ftp@example.com
  49. PWD
  50. EPSV
  51. TYPE I
  52. STOR %TESTNUMBER
  53. RNFR %TESTNUMBER
  54. RNTO %TESTNUMBER-forreal
  55. QUIT
  56. </protocol>
  57. </verify>
  58. </testcase>