quickjs-tart

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

test147 (850B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 FTP
      5 </keywords>
      6 </info>
      7 
      8 # Server-side
      9 <reply>
     10 <data>
     11 foo
     12 </data>
     13 <servercmd>
     14 REPLY CWD 550 I won't allow this on my server
     15 COUNT CWD 1
     16 </servercmd>
     17 </reply>
     18 
     19 # Client-side
     20 <client>
     21 <server>
     22 ftp
     23 </server>
     24 <name>
     25 FTP with --ftp-create-dirs (failing CWD)
     26 </name>
     27 <command>
     28 ftp://%HOSTIP:%FTPPORT/first/dir/here/%TESTNUMBER --ftp-create-dirs
     29 </command>
     30 </client>
     31 
     32 # Verify data after the test has been "shot"
     33 <verify>
     34 <strip>
     35 QUIT
     36 </strip>
     37 # Strip all valid kinds of PORT and EPRT that curl can send
     38 <strip>
     39 ^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}
     40 ^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|
     41 </strip>
     42 <protocol>
     43 USER anonymous
     44 PASS ftp@example.com
     45 PWD
     46 CWD first
     47 MKD first
     48 CWD first
     49 CWD dir
     50 CWD here
     51 EPSV
     52 TYPE I
     53 SIZE %TESTNUMBER
     54 RETR %TESTNUMBER
     55 QUIT
     56 </protocol>
     57 </verify>
     58 </testcase>