aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test1103
diff options
context:
space:
mode:
authorPatrick Monnerat <Patrick.Monnerat@datasphere.ch>2009-08-24 12:57:25 +0000
committerPatrick Monnerat <Patrick.Monnerat@datasphere.ch>2009-08-24 12:57:25 +0000
commitb0b2824b58df4dead3fdc7fcb48c3c95328ae2fc (patch)
tree54cefbf9fe6414af640d995eeb41f9a4c75d9b83 /tests/data/test1103
parent0cb6f3053ffc784eb7452c2311b536f4f798e946 (diff)
- Introduced a SYST-based test to properly set-up name format when dealing with the OS/400 FTP server.
- Fixed an ftp_readresp() bug preventing detection of failing control socket and causing FTP client to loop forever.
Diffstat (limited to 'tests/data/test1103')
-rw-r--r--tests/data/test110348
1 files changed, 48 insertions, 0 deletions
diff --git a/tests/data/test1103 b/tests/data/test1103
new file mode 100644
index 000000000..4d45056d5
--- /dev/null
+++ b/tests/data/test1103
@@ -0,0 +1,48 @@
+<testcase>
+<info>
+<keywords>
+FTP
+SYST
+SITE
+OS400
+</keywords>
+</info>
+# Server-side
+<reply>
+<data nocheck="yes">
+blabla
+</data>
+<servercmd>
+REPLY PWD 257 "C:/somedir" is the current directory
+REPLY SYST 215 unknown-OS runs this server
+</servercmd>
+</reply>
+
+# Client-side
+<client>
+<server>
+ftp
+</server>
+ <name>
+FTP non-OS/400 server
+ </name>
+ <command>
+ftp://%HOSTIP:%FTPPORT/1103
+</command>
+</client>
+
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+USER anonymous
+PASS ftp@example.com
+PWD
+SYST
+EPSV
+TYPE I
+SIZE 1103
+RETR 1103
+QUIT
+</protocol>
+</verify>
+</testcase>