diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-09-25 17:13:42 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-09-26 13:37:15 +0200 |
commit | 4a4c7245998af59dbc16f267fd5f000f2950ba4f (patch) | |
tree | 6ee4a2ba98d64290decb0e84aa590ca9616d570c /tests/data | |
parent | 7772344e17939e86879b57b4833d56b8beadd927 (diff) | |
download | curl-4a4c7245998af59dbc16f267fd5f000f2950ba4f.tar.gz |
ftp: make a 552 response return CURLE_REMOTE_DISK_FULL
Added test 348 to verify. Added a 'STOR' command to the test FTP
server to enable test 348. Documented the command in FILEFORMAT.md
Reported-by: Duncan Wilcox
Fixes #6016
Closes #6017
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/Makefile.inc | 2 | ||||
-rw-r--r-- | tests/data/test348 | 61 |
2 files changed, 62 insertions, 1 deletions
diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index b4774a5f7..35932d11b 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -58,7 +58,7 @@ test307 test308 test309 test310 test311 test312 test313 test314 test315 \ test316 test317 test318 test319 test320 test321 test322 test323 test324 \ test325 test326 test327 test328 test329 test330 test331 test332 test333 \ test334 test335 test336 test337 test338 test339 test340 test341 test342 \ -test343 test344 test345 test346 test347 \ +test343 test344 test345 test346 test347 test348 \ test350 test351 test352 test353 test354 test355 test356 test357 test358 \ test359 \ test393 test394 test395 test396 test397 \ diff --git a/tests/data/test348 b/tests/data/test348 new file mode 100644 index 000000000..befd9fb81 --- /dev/null +++ b/tests/data/test348 @@ -0,0 +1,61 @@ +<testcase> +<info> +<keywords> +FTP +EPSV +STOR +</keywords> +</info> + +<reply> +<servercmd> +STOR 552 disk full +</servercmd> +</reply> + +# Client-side +<client> +<server> +ftp +</server> + <name> +FTP upload file with 552 disk full response + </name> +<file name="log/test348.txt"> +data + to + see +that FTP +works + so does it? +</file> + <command> +ftp://%HOSTIP:%FTPPORT/348 -T log/test348.txt +</command> +</client> + +# Verify data after the test has been "shot" +<verify> +<upload> +data + to + see +that FTP +works + so does it? +</upload> +<protocol> +USER anonymous
+PASS ftp@example.com
+PWD
+EPSV
+TYPE I
+STOR 348
+QUIT
+</protocol> +# 70 - CURLE_REMOTE_DISK_FULL +<errorcode> +70 +</errorcode> +</verify> +</testcase> |