mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 15:48:49 -05:00
test time-conditioned FTP uploads
This commit is contained in:
parent
ee44eec3e1
commit
6a6c0e7a73
@ -33,7 +33,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \
|
||||
test241 test242 test519 test214 test215 test216 test217 test218 \
|
||||
test199 test225 test226 test227 test230 test231 test232 test228 \
|
||||
test229 test233 test234 test235 test236 test520 test237 test238 \
|
||||
test239 test243 test245 test246
|
||||
test239 test243 test245 test246 test247 test248
|
||||
|
||||
# The following tests have been removed from the dist since they no longer
|
||||
# work. We need to fix the test suite's FTPS server first, then bring them
|
||||
|
39
tests/data/test247
Normal file
39
tests/data/test247
Normal file
@ -0,0 +1,39 @@
|
||||
<reply>
|
||||
<mdtm>
|
||||
213 20030409102659
|
||||
</mdtm>
|
||||
</reply>
|
||||
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
ftp
|
||||
</server>
|
||||
<name>
|
||||
FTP upload time condition evaluates TRUE => skip upload
|
||||
</name>
|
||||
<file name="log/test247.txt">
|
||||
data
|
||||
to
|
||||
see
|
||||
that FTP
|
||||
works
|
||||
so does it?
|
||||
</file>
|
||||
<command>
|
||||
ftp://%HOSTIP:%FTPPORT/247 -T log/test247.txt -z "apr 1 2005 08:00:00"
|
||||
</command>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<upload>
|
||||
</upload>
|
||||
<protocol>
|
||||
USER anonymous
|
||||
PASS curl_by_daniel@haxx.se
|
||||
PWD
|
||||
MDTM 247
|
||||
QUIT
|
||||
</protocol>
|
||||
</verify>
|
48
tests/data/test248
Normal file
48
tests/data/test248
Normal file
@ -0,0 +1,48 @@
|
||||
<reply>
|
||||
<mdtm>
|
||||
213 20050409102659
|
||||
</mdtm>
|
||||
</reply>
|
||||
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
ftp
|
||||
</server>
|
||||
<name>
|
||||
FTP upload time condition evaluates FALSE => upload anyway
|
||||
</name>
|
||||
<file name="log/test248.txt">
|
||||
data
|
||||
to
|
||||
see
|
||||
that FTP
|
||||
works
|
||||
so does it?
|
||||
</file>
|
||||
<command>
|
||||
ftp://%HOSTIP:%FTPPORT/248 -T log/test248.txt -z "apr 1 2005 08:00:00"
|
||||
</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 curl_by_daniel@haxx.se
|
||||
PWD
|
||||
MDTM 248
|
||||
EPSV
|
||||
TYPE I
|
||||
STOR 248
|
||||
QUIT
|
||||
</protocol>
|
||||
</verify>
|
Loading…
Reference in New Issue
Block a user