test640/1: add tests for --head with sftp and scp

This option is currently rather useless with these protocols
when no quote command is given, but it is valid.
This commit is contained in:
Dan Fandrich
2014-03-13 03:22:02 +01:00
parent 596800378d
commit 61591eee68
3 changed files with 83 additions and 1 deletions

41
tests/data/test640 Normal file
View File

@@ -0,0 +1,41 @@
<testcase>
<info>
<keywords>
SFTP
NOBODY
</keywords>
</info>
#
# Server-side
<reply>
<data>
</data>
</reply>
#
# Client-side
<client>
<server>
sftp
</server>
<name>
SFTP --head retrieval
</name>
<command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%PWD/log/file640.txt --insecure --head
</command>
<file name="log/file640.txt">
Test data
for ssh test
</file>
</client>
#
# Verify data after the test has been "shot"
<verify>
<valgrind>
disable
</valgrind>
</verify>
</testcase>