]> granicus.if.org Git - curl/commitdiff
Added ftps upload test 401
authorDan Fandrich <dan@coneharvesters.com>
Thu, 29 Mar 2007 22:50:23 +0000 (22:50 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Thu, 29 Mar 2007 22:50:23 +0000 (22:50 +0000)
tests/data/Makefile.am
tests/data/test401 [new file with mode: 0644]

index 8924a394aa4b153d236386a067077bd207b72a34..c4e1598c2c9b9af38e07ca8630037b911ba49e83 100644 (file)
@@ -38,4 +38,4 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46           \
  test530 DISABLED test278 test279 test531 test280 test529 test532 test533  \
  test534 test535 test281 test537 test282 test283 test284 test538 test285   \
  test286 test307 test308 test287 test400 test288 test600 test601 test602   \
- test603
+ test603 test401
diff --git a/tests/data/test401 b/tests/data/test401
new file mode 100644 (file)
index 0000000..cb01c1c
--- /dev/null
@@ -0,0 +1,56 @@
+<testcase>
+<info>
+<keywords>
+FTPS
+EPSV
+STOR
+</keywords>
+</info>
+
+# Client-side
+<client>
+<features>
+SSL
+</features>
+<server>
+ftps
+</server>
+ <name>
+FTPS PASV upload file
+ </name>
+<file name="log/test401.txt">
+data
+    to
+      see
+that FTPS
+works
+  so does it?
+</file>
+ <command>
+-k --ftp-ssl-control ftps://%HOSTIP:%FTPSPORT/401 -T log/test401.txt
+</command>
+</client>
+
+# Verify data after the test has been "shot"
+<verify>
+<upload>
+data
+    to
+      see
+that FTPS
+works
+  so does it?
+</upload>
+<protocol>
+USER anonymous\r
+PASS ftp@example.com\r
+PBSZ 0\r
+PROT C\r
+PWD\r
+EPSV\r
+TYPE I\r
+STOR 401\r
+QUIT\r
+</protocol>
+</verify>
+</testcase>