]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Added more SSH tests (left disabled for now).
authorDan Fandrich <dan@coneharvesters.com>
Wed, 4 Apr 2007 00:48:37 +0000 (00:48 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Wed, 4 Apr 2007 00:48:37 +0000 (00:48 +0000)
tests/data/DISABLED
tests/data/Makefile.am
tests/data/test606 [new file with mode: 0644]
tests/data/test607 [new file with mode: 0644]
tests/data/test608 [new file with mode: 0644]
tests/data/test609 [new file with mode: 0644]

index eb6c9a10976af4b82605862eb6305c07c8b677e8..1b610a26026973d82652077937ae637b4aa9d727 100644 (file)
@@ -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
index e02c36cc5661b5ec630802d09204fefbb0210ac1..59eb9a2d5e90e3ea1bd3fea7bd4aaba0640eacd8 100644 (file)
@@ -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 (file)
index 0000000..6a72a92
--- /dev/null
@@ -0,0 +1,33 @@
+<testcase>
+<info>
+<keywords>
+SFTP
+FAILURE
+</keywords>
+</info>
+
+#
+# Client-side
+<client>
+<server>
+sftp
+</server>
+ <name>
+SFTP invalid user login
+ </name>
+ <command>
+--key curl_client_key --pubkey curl_client_key.pub -u not-a-valid-user: sftp://%HOSTIP:%SSHPORT%PWD/not-a-valid-file-moooo
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<errorcode>
+2
+</errorcode>
+<valgrind>
+disable
+</valgrind>
+</verify>
+</testcase>
diff --git a/tests/data/test607 b/tests/data/test607
new file mode 100644 (file)
index 0000000..66e08e1
--- /dev/null
@@ -0,0 +1,33 @@
+<testcase>
+<info>
+<keywords>
+SCP
+FAILURE
+</keywords>
+</info>
+
+#
+# Client-side
+<client>
+<server>
+scp
+</server>
+ <name>
+SCP invalid user login
+ </name>
+ <command>
+--key curl_client_key --pubkey curl_client_key.pub -u not-a-valid-user: scp://%HOSTIP:%SSHPORT%PWD/not-a-valid-file-moooo
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<errorcode>
+2
+</errorcode>
+<valgrind>
+disable
+</valgrind>
+</verify>
+</testcase>
diff --git a/tests/data/test608 b/tests/data/test608
new file mode 100644 (file)
index 0000000..0a307fb
--- /dev/null
@@ -0,0 +1,44 @@
+<testcase>
+<info>
+<keywords>
+SFTP
+post-quote
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+<data>
+Test file for rename test
+</data>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+sftp
+</server>
+ <name>
+SFTP post-quote rename
+ </name>
+ <command>
+--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
+</command>
+<file name="log/file608.txt">
+Test file for rename test
+</file>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<file name="log/file608-renamed.txt">
+Test file for rename test
+</file>
+<valgrind>
+disable
+</valgrind>
+</verify>
+</testcase>
diff --git a/tests/data/test609 b/tests/data/test609
new file mode 100644 (file)
index 0000000..d998a3b
--- /dev/null
@@ -0,0 +1,45 @@
+<testcase>
+<info>
+<keywords>
+SFTP
+post-quote
+FAILURE
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+<data>
+Test file for mkdir test
+</data>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+sftp
+</server>
+ <name>
+SFTP post-quote mkdir failure
+ </name>
+ <command>
+--key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "-mkdir %PWD/log/file609.txt" sftp://%HOSTIP:%SSHPORT%PWD/log/file609.txt
+</command>
+<file name="log/file609.txt">
+Test file for mkdir test
+</file>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<errorcode>
+21
+</errorcode>
+<valgrind>
+disable
+</valgrind>
+</verify>
+</testcase>