From 27d2d780598b1f73fc71489c6e9933a313e72521 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Wed, 4 Apr 2007 00:48:37 +0000 Subject: Added more SSH tests (left disabled for now). --- tests/data/DISABLED | 16 ++++++++++------ tests/data/Makefile.am | 2 +- tests/data/test606 | 33 +++++++++++++++++++++++++++++++++ tests/data/test607 | 33 +++++++++++++++++++++++++++++++++ tests/data/test608 | 44 ++++++++++++++++++++++++++++++++++++++++++++ tests/data/test609 | 45 +++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 166 insertions(+), 7 deletions(-) create mode 100644 tests/data/test606 create mode 100644 tests/data/test607 create mode 100644 tests/data/test608 create mode 100644 tests/data/test609 diff --git a/tests/data/DISABLED b/tests/data/DISABLED index eb6c9a109..1b610a260 100644 --- a/tests/data/DISABLED +++ b/tests/data/DISABLED @@ -4,9 +4,13 @@ # per line. # Lines starting with '#' letters are treated as comments. #230 -600 -601 -602 -603 -604 -605 +#600 +#601 +#602 +#603 +#604 +#605 +#606 +#607 +#608 +#609 diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index e02c36cc5..59eb9a2d5 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -39,4 +39,4 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \ test534 test535 test281 test537 test282 test283 test284 test538 test285 \ test286 test307 test308 test287 test400 test288 test600 test601 test602 \ test603 test401 test402 test290 test291 test292 test293 test403 test404 \ - test405 + test405 test604 test605 test606 test607 test608 test609 diff --git a/tests/data/test606 b/tests/data/test606 new file mode 100644 index 000000000..6a72a92c5 --- /dev/null +++ b/tests/data/test606 @@ -0,0 +1,33 @@ + + + +SFTP +FAILURE + + + +# +# Client-side + + +sftp + + +SFTP invalid user login + + +--key curl_client_key --pubkey curl_client_key.pub -u not-a-valid-user: sftp://%HOSTIP:%SSHPORT%PWD/not-a-valid-file-moooo + + + +# +# Verify data after the test has been "shot" + + +2 + + +disable + + + diff --git a/tests/data/test607 b/tests/data/test607 new file mode 100644 index 000000000..66e08e12a --- /dev/null +++ b/tests/data/test607 @@ -0,0 +1,33 @@ + + + +SCP +FAILURE + + + +# +# Client-side + + +scp + + +SCP invalid user login + + +--key curl_client_key --pubkey curl_client_key.pub -u not-a-valid-user: scp://%HOSTIP:%SSHPORT%PWD/not-a-valid-file-moooo + + + +# +# Verify data after the test has been "shot" + + +2 + + +disable + + + diff --git a/tests/data/test608 b/tests/data/test608 new file mode 100644 index 000000000..0a307fb18 --- /dev/null +++ b/tests/data/test608 @@ -0,0 +1,44 @@ + + + +SFTP +post-quote + + + +# +# Server-side + + +Test file for rename test + + + +# +# Client-side + + +sftp + + +SFTP post-quote rename + + +--key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "-rename %PWD/log/file608.txt %PWD/log/file608-renamed.txt" sftp://%HOSTIP:%SSHPORT%PWD/log/file608.txt + + +Test file for rename test + + + +# +# Verify data after the test has been "shot" + + +Test file for rename test + + +disable + + + diff --git a/tests/data/test609 b/tests/data/test609 new file mode 100644 index 000000000..d998a3bdf --- /dev/null +++ b/tests/data/test609 @@ -0,0 +1,45 @@ + + + +SFTP +post-quote +FAILURE + + + +# +# Server-side + + +Test file for mkdir test + + + +# +# Client-side + + +sftp + + +SFTP post-quote mkdir failure + + +--key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "-mkdir %PWD/log/file609.txt" sftp://%HOSTIP:%SSHPORT%PWD/log/file609.txt + + +Test file for mkdir test + + + +# +# Verify data after the test has been "shot" + + +21 + + +disable + + + -- cgit v1.2.3