test608 965 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <testcase>
  2. <info>
  3. <keywords>
  4. SFTP
  5. post-quote
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. <data>
  12. Test file for rename test
  13. </data>
  14. </reply>
  15. #
  16. # Client-side
  17. <client>
  18. <server>
  19. sftp
  20. </server>
  21. <name>
  22. SFTP post-quote rename
  23. </name>
  24. <command>
  25. --key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "-rename %PWD/log/file608.txt %PWD/log/file608-renamed.txt" sftp://%HOSTIP:%SSHPORT%PWD/log/file608.txt --insecure
  26. </command>
  27. # Verify that the file was renamed properly, then rename the file back to what
  28. # it was so the verify section works and the file can be cleaned up.
  29. <postcheck>
  30. perl %SRCDIR/libtest/test610.pl gone %PWD/log/file608.txt move %PWD/log/file608-renamed.txt %PWD/log/file608.txt
  31. </postcheck>
  32. <file name="log/file608.txt">
  33. Test file for rename test
  34. </file>
  35. </client>
  36. #
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. <file name="log/file608.txt">
  40. Test file for rename test
  41. </file>
  42. <valgrind>
  43. disable
  44. </valgrind>
  45. </verify>
  46. </testcase>