quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

test1209 (1058B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 FTP
      5 PORT
      6 RETR
      7 NODATACONN
      8 timeout
      9 FAILURE
     10 </keywords>
     11 </info>
     12 # Server-side
     13 <reply>
     14 <data nocheck="yes">
     15 some bytes
     16 </data>
     17 <servercmd>
     18 NODATACONN
     19 </servercmd>
     20 </reply>
     21 
     22 # Client-side
     23 <client>
     24 <server>
     25 ftp
     26 </server>
     27 <name>
     28 FTP PORT download, no data conn and no positive preliminary reply
     29 </name>
     30 <command>
     31 --max-time %FTPTIME2 ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -P -
     32 </command>
     33 
     34 </client>
     35 
     36 # Verify data after the test has been "shot"
     37 <verify>
     38 <strippart>
     39 s/^EPRT \|1\|(.*)/EPRT \|1\|/
     40 </strippart>
     41 
     42 # The protocol part does not include QUIT simply because the error is
     43 # CURLE_OPERATION_TIMEDOUT (28) which is a generic timeout error without
     44 # specifically saying for which connection it concerns, and for timeouts libcurl
     45 # marks the control channel as "invalid". As this test case times out for the
     46 # data connection it could still use the control channel.
     47 <protocol>
     48 USER anonymous
     49 PASS ftp@example.com
     50 PWD
     51 EPRT |1|
     52 TYPE I
     53 SIZE %TESTNUMBER
     54 RETR %TESTNUMBER
     55 </protocol>
     56 <errorcode>
     57 28
     58 </errorcode>
     59 </verify>
     60 </testcase>