]> granicus.if.org Git - curl/commitdiff
Added test627 to test SFTP with CURLOPT_NOBODY
authorDan Fandrich <dan@coneharvesters.com>
Fri, 4 Apr 2008 02:06:35 +0000 (02:06 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Fri, 4 Apr 2008 02:06:35 +0000 (02:06 +0000)
CHANGES
tests/data/Makefile.am
tests/data/test627 [new file with mode: 0644]

diff --git a/CHANGES b/CHANGES
index e11ae621a7ddaf3685e77fefdbf5e3c6cf8fe574..ada056a70967dd32c40f31329ce958e1b2e637e7 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,9 @@
 
                                   Changelog
 
+Daniel Fandrich (3 Apr 2008)
+- Added test627 to test SFTP with CURLOPT_NOBODY
+
 Daniel Stenberg (3 Apr 2008)
 - Setting CURLOPT_NOBODY to FALSE will now switch the HTTP request method to
   GET simply because previously when you set CURLOPT_NOBODY to TRUE first and
index 9160133af110743b3e6bae8d6a5f3b346adaafcd..a029e13c93826fd7dcb4649bbf6c10a51bc45f8a 100644 (file)
@@ -49,7 +49,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46           \
  test546 test1013 test1014 test1015 test547 test548 test549 test550       \
  test551 test552 test1016 test1017 test1018 test1019 test1020 test553      \
  test1021 test1022 test1023 test309 test616 test617 test618 test619        \
- test620 test621 test622 test623 test624 test625 test626
+ test620 test621 test622 test623 test624 test625 test626 test627
 
 filecheck:
        @mkdir test-place; \
diff --git a/tests/data/test627 b/tests/data/test627
new file mode 100644 (file)
index 0000000..3d86e7b
--- /dev/null
@@ -0,0 +1,46 @@
+<testcase>
+<info>
+<keywords>
+SFTP
+quote
+NOBODY
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+<data sendzero="yes">
+</data>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+sftp
+</server>
+ <name>
+SFTP quote remove file with NOBODY
+ </name>
+ <command>
+--key curl_client_key --pubkey curl_client_key.pub -u %USER: -I -Q "rm %PWD/log/file627.txt" sftp://%HOSTIP:%SSHPORT
+</command>
+<postcheck>
+perl %SRCDIR/libtest/test610.pl gone %PWD/log/test627.txt
+</postcheck>
+<file name="log/file627.txt">
+Dummy test file for remove test
+</file>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<valgrind>
+disable
+</valgrind>
+<protocol>
+</protocol>
+</verify>
+</testcase>