quickjs-tart

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

test596 (809B)


      1 <testcase>
      2 #
      3 # This test is like 585 but uses active FTP instead of HTTP
      4 #
      5 <info>
      6 <keywords>
      7 FTP
      8 </keywords>
      9 </info>
     10 #
     11 # Server-side
     12 <reply>
     13 <data>
     14 moo
     15 </data>
     16 <datacheck>
     17 [OPEN] counter: 1
     18 [OPEN] counter: 2
     19 [CLOSE] counter: 2
     20 moo
     21 [CLOSE] counter: 1
     22 </datacheck>
     23 </reply>
     24 
     25 # Client-side
     26 <client>
     27 <server>
     28 ftp
     29 </server>
     30 # tool is what to use instead of 'curl'
     31 <tool>
     32 lib500
     33 </tool>
     34 
     35 <name>
     36 verify close callbacks with active FTP
     37 </name>
     38 <command>
     39 ftp://%HOSTIP:%FTPPORT/%TESTNUMBER %LOGDIR/ip%TESTNUMBER activeftp
     40 </command>
     41 </client>
     42 
     43 #
     44 # Verify data after the test has been "shot"
     45 <verify>
     46 <strip>
     47 QUIT
     48 </strip>
     49 <strippart>
     50 s/^(EPRT \|1\|)(.*)/$1/
     51 </strippart>
     52 <protocol>
     53 USER anonymous
     54 PASS ftp@example.com
     55 PWD
     56 EPRT |1|
     57 TYPE I
     58 SIZE %TESTNUMBER
     59 RETR %TESTNUMBER
     60 QUIT
     61 </protocol>
     62 </verify>
     63 </testcase>