quickjs-tart

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

test1351 (1481B)


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