quickjs-tart

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

test588 (1123B)


      1 <testcase>
      2 #
      3 # This test is exactly like 525 but the server rejects the EPRT command.
      4 # Written up to make sure that there's nothing in the multi interface
      5 # active connection case that differs between PORT and EPRT use
      6 #
      7 <info>
      8 <keywords>
      9 FTP
     10 PORT
     11 STOR
     12 multi
     13 EPRT refused
     14 </keywords>
     15 </info>
     16 
     17 # Server-side
     18 <reply>
     19 <data>
     20 </data>
     21 <servercmd>
     22 REPLY EPRT 500 we don't like EPRT now
     23 </servercmd>
     24 </reply>
     25 
     26 # Client-side
     27 <client>
     28 <server>
     29 ftp
     30 </server>
     31 <tool>
     32 lib525
     33 </tool>
     34 <name>
     35 FTP PORT upload using multi interface, EPRT doesn't work
     36 </name>
     37 <command>
     38 ftp://%HOSTIP:%FTPPORT/path/%TESTNUMBER %LOGDIR/upload%TESTNUMBER
     39 </command>
     40 <file name="%LOGDIR/upload%TESTNUMBER">
     41 Moooooooooooo
     42  upload this
     43 </file>
     44 </client>
     45 
     46 # Verify data after the test has been "shot"
     47 <verify>
     48 <strip>
     49 QUIT
     50 </strip>
     51 # Strip off parts of the PORT and EPRT commands that might differ
     52 <strippart>
     53 s/^PORT (.*)/PORT/
     54 s/^EPRT \|1\|(.*)/EPRT \|1\|/
     55 </strippart>
     56 <protocol>
     57 USER anonymous
     58 PASS ftp@example.com
     59 PWD
     60 CWD path
     61 EPRT |1|
     62 PORT
     63 TYPE I
     64 STOR %TESTNUMBER
     65 QUIT
     66 </protocol>
     67 <upload>
     68 Moooooooooooo
     69  upload this
     70 </upload>
     71 </verify>
     72 </testcase>