aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test291
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-03-30 01:13:47 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-03-30 01:13:47 +0000
commitffb11ad5c69a71f12b8e28912019e87bdfa76d35 (patch)
tree311d56de43d2a34a88266d63b7b26dafc5705214 /tests/data/test291
parentfbb1e49215e613b0462ba2d154c545424640f4bf (diff)
Don't tear down the ftp connection if the maximum filesize was exceeded
and added tests 290 and 291 to check.
Diffstat (limited to 'tests/data/test291')
-rw-r--r--tests/data/test29147
1 files changed, 47 insertions, 0 deletions
diff --git a/tests/data/test291 b/tests/data/test291
new file mode 100644
index 000000000..18e039e4f
--- /dev/null
+++ b/tests/data/test291
@@ -0,0 +1,47 @@
+<testcase>
+<info>
+<keywords>
+FTP
+RETR
+--max-filesize
+</keywords>
+</info>
+# Server-side
+<reply>
+<data>
+data
+ to
+ see
+that FTP
+works
+ so does it?
+</data>
+</reply>
+
+# Client-side
+<client>
+<server>
+ftp
+</server>
+ <name>
+FTP download maximum filesize not exceeded
+ </name>
+ <command>
+ftp://%HOSTIP:%FTPPORT/291 --max-filesize 100
+</command>
+</client>
+
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+USER anonymous
+PASS ftp@example.com
+PWD
+EPSV
+TYPE I
+SIZE 291
+RETR 291
+QUIT
+</protocol>
+</verify>
+</testcase>