quickjs-tart

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

test116 (870B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 FTP
      5 EPRT
      6 PORT
      7 FAILURE
      8 EPRT refused
      9 </keywords>
     10 </info>
     11 # Server-side
     12 <reply>
     13 <servercmd>
     14 REPLY EPRT 500 we don't like EPRT now
     15 REPLY PORT 314 bluah you f00l!
     16 </servercmd>
     17 </reply>
     18 
     19 # Client-side
     20 <client>
     21 <server>
     22 ftp
     23 </server>
     24 # EPRT is only sent when IPv6 is enabled
     25 <features>
     26 IPv6
     27 </features>
     28 <name>
     29 FTP download, failed PORT
     30 </name>
     31 <command>
     32 ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -P 1.2.3.4
     33 </command>
     34 </client>
     35 
     36 # Verify data after the test has been "shot"
     37 <verify>
     38 <strip>
     39 QUIT
     40 </strip>
     41 <errorcode>
     42 30
     43 </errorcode>
     44 # Strip the port number but leave the rest
     45 <strippart>
     46 s/^(PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},)\d{1,3},\d{1,3}/$1/
     47 s/^(EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|)\d{1,5}\|/$1/
     48 </strippart>
     49 <protocol>
     50 USER anonymous
     51 PASS ftp@example.com
     52 PWD
     53 EPRT |1|1.2.3.4|
     54 PORT 1,2,3,4,
     55 QUIT
     56 </protocol>
     57 </verify>
     58 </testcase>