quickjs-tart

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

test1350 (1401B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 FTP
      5 RETR
      6 </keywords>
      7 </info>
      8 
      9 # Server-side
     10 <reply>
     11 <data nocheck="yes">
     12 fooo
     13 mooo
     14 </data>
     15 </reply>
     16 
     17 # Client-side
     18 <client>
     19 <server>
     20 ftp
     21 </server>
     22 <name>
     23 FTP download, file without C-D inside, using -O -D stdout
     24 </name>
     25 <command option="no-output,no-include">
     26 ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -O -D - --output-dir %LOGDIR
     27 </command>
     28 </client>
     29 
     30 # Verify data after the test has been "shot"
     31 <verify>
     32 <strip>
     33 QUIT
     34 </strip>
     35 <protocol>
     36 USER anonymous
     37 PASS ftp@example.com
     38 PWD
     39 CWD path
     40 EPSV
     41 TYPE I
     42 SIZE file%TESTNUMBER
     43 RETR file%TESTNUMBER
     44 QUIT
     45 </protocol>
     46 
     47 <file1 name="%LOGDIR/file%TESTNUMBER">
     48 fooo
     49 mooo
     50 </file1>
     51 
     52 # The final "221 bye bye baby" response to QUIT will not be recorded
     53 # since that is not considered part of this particular transfer!
     54 <file2 name="%LOGDIR/stdout%TESTNUMBER">
     55 220-        _   _ ____  _     
     56 220-    ___| | | |  _ \| |    
     57 220-   / __| | | | |_) | |    
     58 220-  | (__| |_| |  _ {| |___ 
     59 220    \___|\___/|_| \_\_____|
     60 331 We are happy you popped in!
     61 230 Welcome you silly person
     62 257 "/" is current directory
     63 250 CWD command successful.
     64 229 Entering Passive Mode (stripped)
     65 200 I modify TYPE as you wanted
     66 213 10
     67 150 Binary data connection for %TESTNUMBER () (10 bytes).
     68 226 File transfer complete
     69 </file2>
     70 <stripfile2>
     71 s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
     72 </stripfile2>
     73 
     74 </verify>
     75 </testcase>