Added SFTP and SCP upload tests in test602 & test603
This commit is contained in:
@@ -37,4 +37,5 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \
|
|||||||
test274 test275 test524 test525 test276 test277 test526 test527 test528 \
|
test274 test275 test524 test525 test276 test277 test526 test527 test528 \
|
||||||
test530 DISABLED test278 test279 test531 test280 test529 test532 test533 \
|
test530 DISABLED test278 test279 test531 test280 test529 test532 test533 \
|
||||||
test534 test535 test281 test537 test282 test283 test284 test538 test285 \
|
test534 test535 test281 test537 test282 test283 test284 test538 test285 \
|
||||||
test286 test307 test308 test287 test400 test288
|
test286 test307 test308 test287 test400 test288 test600 test601 test602 \
|
||||||
|
test603
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ SFTP
|
|||||||
#
|
#
|
||||||
# Server-side
|
# Server-side
|
||||||
<reply>
|
<reply>
|
||||||
<data mode="text">
|
<data>
|
||||||
Test data
|
Test data
|
||||||
for ssh test
|
for ssh test
|
||||||
</data>
|
</data>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ SCP
|
|||||||
#
|
#
|
||||||
# Server-side
|
# Server-side
|
||||||
<reply>
|
<reply>
|
||||||
<data mode="text">
|
<data>
|
||||||
Test data
|
Test data
|
||||||
for ssh test
|
for ssh test
|
||||||
</data>
|
</data>
|
||||||
|
|||||||
43
tests/data/test602
Normal file
43
tests/data/test602
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
<testcase>
|
||||||
|
<info>
|
||||||
|
<keywords>
|
||||||
|
SFTP
|
||||||
|
SFTP put
|
||||||
|
</keywords>
|
||||||
|
</info>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Server-side
|
||||||
|
<reply>
|
||||||
|
</reply>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Client-side
|
||||||
|
<client>
|
||||||
|
<server>
|
||||||
|
sftp
|
||||||
|
</server>
|
||||||
|
<name>
|
||||||
|
SFTP put
|
||||||
|
</name>
|
||||||
|
<command>
|
||||||
|
--key curl_client_key --pubkey curl_client_key.pub -u %USER: -T log/file602.txt sftp://%HOSTIP:%SSHPORT/%PWD/log/upload.602
|
||||||
|
</command>
|
||||||
|
<file name="log/file602.txt">
|
||||||
|
Test data
|
||||||
|
for ssh upload test
|
||||||
|
</file>
|
||||||
|
</client>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Verify data after the test has been "shot"
|
||||||
|
<verify>
|
||||||
|
<upload>
|
||||||
|
Test data
|
||||||
|
for ssh upload test
|
||||||
|
</upload>
|
||||||
|
<valgrind>
|
||||||
|
disable
|
||||||
|
</valgrind>
|
||||||
|
</verify>
|
||||||
|
</testcase>
|
||||||
43
tests/data/test603
Normal file
43
tests/data/test603
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
<testcase>
|
||||||
|
<info>
|
||||||
|
<keywords>
|
||||||
|
SCP
|
||||||
|
SCP upload
|
||||||
|
</keywords>
|
||||||
|
</info>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Server-side
|
||||||
|
<reply>
|
||||||
|
</reply>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Client-side
|
||||||
|
<client>
|
||||||
|
<server>
|
||||||
|
scp
|
||||||
|
</server>
|
||||||
|
<name>
|
||||||
|
SCP upload
|
||||||
|
</name>
|
||||||
|
<command>
|
||||||
|
--key curl_client_key --pubkey curl_client_key.pub -u %USER: -T log/file603.txt scp://%HOSTIP:%SSHPORT/%PWD/log/upload.603
|
||||||
|
</command>
|
||||||
|
<file name="log/file603.txt">
|
||||||
|
Test data
|
||||||
|
for ssh upload test
|
||||||
|
</file>
|
||||||
|
</client>
|
||||||
|
|
||||||
|
#
|
||||||
|
# Verify data after the test has been "shot"
|
||||||
|
<verify>
|
||||||
|
<upload>
|
||||||
|
Test data
|
||||||
|
for ssh upload test
|
||||||
|
</upload>
|
||||||
|
<valgrind>
|
||||||
|
disable
|
||||||
|
</valgrind>
|
||||||
|
</verify>
|
||||||
|
</testcase>
|
||||||
Reference in New Issue
Block a user