diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2007-08-30 23:03:59 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2007-08-30 23:03:59 +0000 |
commit | f6251734fcb118bb513f8484b45aa653f5c76eb1 (patch) | |
tree | 0a91992aa36c27c91b04290f927c621b826a590b /tests/data | |
parent | 9f44a95522162c0f4a61093efe1bf1f58b087358 (diff) |
Added more accurate error code returns from SFTP operations. Added test
case 615 to test an SFTP upload failure.
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/Makefile.am | 3 | ||||
-rw-r--r-- | tests/data/test615 | 44 |
2 files changed, 46 insertions, 1 deletions
diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index 5506cf2d1..a8c7691e5 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -43,4 +43,5 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \ test296 test297 test298 test610 test611 test612 test406 test407 test408 \ test409 test613 test614 test700 test701 test702 test704 test705 test703 \ test706 test707 test350 test351 test352 test353 test289 test540 test354 \ - test231 test1000 test1001 test1002 test1003 test1004 test1005 test1006 + test231 test1000 test1001 test1002 test1003 test1004 test1005 test1006 \ + test615 diff --git a/tests/data/test615 b/tests/data/test615 new file mode 100644 index 000000000..124982644 --- /dev/null +++ b/tests/data/test615 @@ -0,0 +1,44 @@ +<testcase> +<info> +<keywords> +SFTP +SFTP put +FAILURE +</keywords> +</info> + +# +# Client-side +<client> +<server> +sftp +</server> +<precheck> +perl %SRCDIR/libtest/test613.pl prepare %PWD/log/test615.dir +</precheck> + <name> +SFTP put remote failure + </name> + <command> +--key curl_client_key --pubkey curl_client_key.pub -u %USER: -T log/file615.txt sftp://%HOSTIP:%SSHPORT%PWD/log/test615.dir/rofile.txt +</command> +<postcheck> +perl %SRCDIR/libtest/test613.pl postprocess %PWD/log/test615.dir +</postcheck> +<file name="log/file615.txt"> +Test data +for ssh upload test +</file> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<errorcode> +9 +</errorcode> +<valgrind> +disable +</valgrind> +</verify> +</testcase> |