diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2007-03-26 19:23:00 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2007-03-26 19:23:00 +0000 |
commit | 2166645ce4091b14ef6fd25c594d184c4f700ba5 (patch) | |
tree | 211b98a599bfc85b36cd44d91d934ba457892030 | |
parent | 844f5b6b459878acf7ac3256a3612defa4573ba3 (diff) |
Added SFTP and SCP upload tests in test602 & test603
-rw-r--r-- | tests/data/Makefile.am | 3 | ||||
-rw-r--r-- | tests/data/test600 | 2 | ||||
-rw-r--r-- | tests/data/test601 | 2 | ||||
-rw-r--r-- | tests/data/test602 | 43 | ||||
-rw-r--r-- | tests/data/test603 | 43 |
5 files changed, 90 insertions, 3 deletions
diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index f5d3039f9..8924a394a 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -37,4 +37,5 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \ test274 test275 test524 test525 test276 test277 test526 test527 test528 \ test530 DISABLED test278 test279 test531 test280 test529 test532 test533 \ 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 diff --git a/tests/data/test600 b/tests/data/test600 index 5b56c748e..46f960a9c 100644 --- a/tests/data/test600 +++ b/tests/data/test600 @@ -8,7 +8,7 @@ SFTP # # Server-side <reply> -<data mode="text"> +<data> Test data for ssh test </data> diff --git a/tests/data/test601 b/tests/data/test601 index bd394608a..e6f846d09 100644 --- a/tests/data/test601 +++ b/tests/data/test601 @@ -8,7 +8,7 @@ SCP # # Server-side <reply> -<data mode="text"> +<data> Test data for ssh test </data> diff --git a/tests/data/test602 b/tests/data/test602 new file mode 100644 index 000000000..327e95753 --- /dev/null +++ b/tests/data/test602 @@ -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> diff --git a/tests/data/test603 b/tests/data/test603 new file mode 100644 index 000000000..96894df98 --- /dev/null +++ b/tests/data/test603 @@ -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> |