quickjs-tart

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

test529 (907B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 FTP
      5 PORT
      6 STOR
      7 multi
      8 </keywords>
      9 </info>
     10 
     11 # Server-side
     12 <reply>
     13 <data>
     14 </data>
     15 </reply>
     16 
     17 # Client-side
     18 <client>
     19 <server>
     20 ftp
     21 </server>
     22 <tool>
     23 lib525
     24 </tool>
     25 <name>
     26 FTP PORT upload using multi interface (weird cleanup function sequence)
     27 </name>
     28 <command>
     29 ftp://%HOSTIP:%FTPPORT/path/%TESTNUMBER %LOGDIR/upload%TESTNUMBER
     30 </command>
     31 <file name="%LOGDIR/upload%TESTNUMBER">
     32 Moooooooooooo
     33  upload this
     34 </file>
     35 </client>
     36 
     37 # Verify data after the test has been "shot"
     38 <verify>
     39 <strip>
     40 QUIT
     41 </strip>
     42 # Strip all valid kinds of PORT and EPRT that curl can send
     43 <strip>
     44 ^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}
     45 ^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|
     46 </strip>
     47 <protocol>
     48 USER anonymous
     49 PASS ftp@example.com
     50 PWD
     51 CWD path
     52 PORT 127,0,0,1,5,109
     53 TYPE I
     54 STOR %TESTNUMBER
     55 QUIT
     56 </protocol>
     57 <upload>
     58 Moooooooooooo
     59  upload this
     60 </upload>
     61 </verify>
     62 </testcase>