Added test case 354 that makes a simple FTP retrieval without password, which
authorDaniel Stenberg <daniel@haxx.se>
Sun, 22 Jul 2007 10:08:59 +0000 (10:08 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 22 Jul 2007 10:08:59 +0000 (10:08 +0000)
verifies the bug fix in #1757328.

CHANGES
tests/data/Makefile.am
tests/data/test354 [new file with mode: 0644]

diff --git a/CHANGES b/CHANGES
index 39df561..82ed748 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,17 @@
 
                                   Changelog
 
+Daniel S (22 July 2007)
+- Added test case 354 that makes a simple FTP retrieval without password, which
+  verifies the bug fix in #1757328.
+
+Daniel S (21 July 2007)
+- To allow more flexibility in FTP test cases, I've removed the enforced states
+  from the test server code as they served no real purpose. The test server
+  is here to serve for the test cases, not to attempt to function as a real
+  server! While at it, I modified test case 141 to better test and verify
+  curl -I on a single FTP file.
+
 Daniel S (20 July 2007)
 - James Housley fixed the SFTP PWD command to work.
 
index 98988cf..8cc794d 100644 (file)
@@ -42,4 +42,4 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46           \
  test405 test604 test605 test606 test607 test608 test609 test294 test295   \
  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
+ test706 test707 test350 test351 test352 test353 test289 test540 test354
diff --git a/tests/data/test354 b/tests/data/test354
new file mode 100644 (file)
index 0000000..a694932
--- /dev/null
@@ -0,0 +1,50 @@
+<testcase>
+<info>
+<keywords>
+FTP
+PASV
+RETR
+</keywords>
+</info>
+# Server-side
+<reply>
+<data>
+data
+    to
+      see
+that FTP
+works
+  so does it?
+</data>
+<servercmd>
+REPLY USER 200 fine, proceed without password
+</servercmd>
+</reply>
+
+# Client-side
+<client>
+<server>
+ftp
+</server>
+ <name>
+FTP without password
+ </name>
+ <command>
+ftp://%HOSTIP:%FTPPORT/354
+</command>
+
+</client>
+
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+USER anonymous\r
+PWD\r
+EPSV\r
+TYPE I\r
+SIZE 354\r
+RETR 354\r
+QUIT\r
+</protocol>
+</verify>
+</testcase>