test625 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <testcase>
  2. <info>
  3. <keywords>
  4. SFTP
  5. SFTP put
  6. --ftp-create-dirs
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. </reply>
  13. #
  14. # Client-side
  15. <client>
  16. <server>
  17. sftp
  18. </server>
  19. <name>
  20. SFTP put with --ftp-create-dirs twice
  21. </name>
  22. <command>
  23. --ftp-create-dirs --key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: -T %LOGDIR/file%TESTNUMBER.txt sftp://%HOSTIP:%SSHPORT%SSH_PWD/%LOGDIR/test%TESTNUMBER.a/upload.%TESTNUMBER -T %LOGDIR/file%TESTNUMBER.txt sftp://%HOSTIP:%SSHPORT%SSH_PWD/%LOGDIR/test%TESTNUMBER.b/upload.%TESTNUMBER --insecure
  24. </command>
  25. <postcheck>
  26. perl %SRCDIR/libtest/test610.pl move %PWD/%LOGDIR/test%TESTNUMBER.a/upload.%TESTNUMBER %PWD/%LOGDIR/upload.%TESTNUMBER rmdir %PWD/%LOGDIR/test%TESTNUMBER.a rm %PWD/%LOGDIR/test%TESTNUMBER.b/upload.%TESTNUMBER rmdir %PWD/%LOGDIR/test%TESTNUMBER.b
  27. </postcheck>
  28. <file name="%LOGDIR/file%TESTNUMBER.txt">
  29. Test data
  30. for ssh upload test
  31. </file>
  32. </client>
  33. #
  34. # Verify data after the test has been "shot"
  35. <verify>
  36. <upload>
  37. Test data
  38. for ssh upload test
  39. </upload>
  40. <valgrind>
  41. disable
  42. </valgrind>
  43. </verify>
  44. </testcase>