quickjs-tart

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

test148 (829B)


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