2011-11-19 03:30:46 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
SFTP
|
|
|
|
post-quote
|
|
|
|
acceptfail
|
|
|
|
asterisk
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
Dummy test file for rename test
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
sftp
|
|
|
|
</server>
|
|
|
|
<precheck>
|
2023-03-29 09:20:54 +08:00
|
|
|
perl %SRCDIR/libtest/test610.pl mkdir %PWD/%LOGDIR/test%TESTNUMBER.dir
|
2011-11-19 03:30:46 +08:00
|
|
|
</precheck>
|
2023-10-04 17:35:54 +08:00
|
|
|
<name>
|
2011-11-19 03:30:46 +08:00
|
|
|
SFTP post-quote rename * asterisk accept-fail
|
2023-10-04 17:35:54 +08:00
|
|
|
</name>
|
|
|
|
<command>
|
2023-03-31 12:32:17 +08:00
|
|
|
--key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: -Q "-*rename %PWD/%LOGDIR/test%TESTNUMBER.dir %PWD/%LOGDIR/test%TESTNUMBER.new" sftp://%HOSTIP:%SSHPORT%SSH_PWD/%LOGDIR/file%TESTNUMBER.txt --insecure
|
2011-11-19 03:30:46 +08:00
|
|
|
</command>
|
|
|
|
<postcheck>
|
2023-03-29 09:20:54 +08:00
|
|
|
perl %SRCDIR/libtest/test610.pl rmdir %PWD/%LOGDIR/test%TESTNUMBER.new
|
2011-11-19 03:30:46 +08:00
|
|
|
</postcheck>
|
2023-03-29 09:20:54 +08:00
|
|
|
<file name="%LOGDIR/file%TESTNUMBER.txt">
|
2011-11-19 03:30:46 +08:00
|
|
|
Dummy test file for rename test
|
|
|
|
</file>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<valgrind>
|
|
|
|
disable
|
|
|
|
</valgrind>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|