2021-09-27 05:20:53 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
SFTP
|
|
|
|
server sha256 key check
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
test
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
2021-11-14 06:10:42 +08:00
|
|
|
# so far only the libssh2 backend supports SHA256
|
|
|
|
<features>
|
|
|
|
libssh2
|
|
|
|
</features>
|
2021-09-27 05:20:53 +08:00
|
|
|
<server>
|
|
|
|
sftp
|
|
|
|
</server>
|
2023-10-04 17:35:54 +08:00
|
|
|
<name>
|
2021-09-27 05:20:53 +08:00
|
|
|
SFTP correct sha256 host key
|
2023-10-04 17:35:54 +08:00
|
|
|
</name>
|
|
|
|
<command>
|
2023-03-31 12:32:17 +08:00
|
|
|
--hostpubsha256 %SSHSRVSHA256 --key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%SSH_PWD/%LOGDIR/file%TESTNUMBER.txt
|
2021-09-27 05:20:53 +08:00
|
|
|
</command>
|
2021-12-13 19:15:16 +08:00
|
|
|
<setenv>
|
|
|
|
# Needed for MSYS2 to not treat the argument as a POSIX path list
|
|
|
|
# that has to be converted to Windows paths
|
2022-01-25 11:53:29 +08:00
|
|
|
MSYS2_ARG_CONV_EXCL=*
|
2021-12-13 19:15:16 +08:00
|
|
|
</setenv>
|
2023-03-29 09:20:54 +08:00
|
|
|
<file name="%LOGDIR/file%TESTNUMBER.txt">
|
2021-09-27 05:20:53 +08:00
|
|
|
test
|
|
|
|
</file>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<errorcode>
|
|
|
|
0
|
|
|
|
</errorcode>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|