quickjs-tart

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

test695 (1534B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 MIME
      5 </keywords>
      6 </info>
      7 # Server-side
      8 <reply>
      9 <data nocheck="yes">
     10 HTTP/1.0 200 OK swsclose
     11 Date: Tue, 09 Nov 2010 14:49:00 GMT
     12 Server: test-server/fake
     13 
     14 blablabla
     15 
     16 </data>
     17 </reply>
     18 
     19 # Client-side
     20 <client>
     21 <features>
     22 Mime
     23 </features>
     24 <server>
     25 http
     26 </server>
     27 <tool>
     28 lib%TESTNUMBER
     29 </tool>
     30 
     31 <name>
     32 MIME parts reuse as a child part
     33 </name>
     34 <command>
     35 http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER
     36 </command>
     37 </client>
     38 
     39 # Verify data after the test has been "shot"
     40 <verify>
     41 <strippart>
     42 s/^--------------------------[A-Za-z0-9]*/------------------------------/
     43 s/boundary=------------------------[A-Za-z0-9]*/boundary=----------------------------/
     44 </strippart>
     45 <protocol>
     46 POST /we/want/%TESTNUMBER HTTP/1.1
     47 Host: %HOSTIP:%HTTPPORT
     48 Accept: */*
     49 Content-Length: 196
     50 Content-Type: multipart/form-data; boundary=----------------------------
     51 
     52 ------------------------------
     53 Content-Disposition: form-data; name="data"
     54 Content-Type: text/html
     55 
     56 <title>hello</title>
     57 --------------------------------
     58 POST /we/want/%TESTNUMBER HTTP/1.1
     59 Host: %HOSTIP:%HTTPPORT
     60 Accept: */*
     61 Content-Length: 423
     62 Content-Type: multipart/form-data; boundary=----------------------------
     63 
     64 ------------------------------
     65 Content-Disposition: form-data
     66 Content-Type: multipart/mixed; boundary=----------------------------
     67 
     68 ------------------------------
     69 Content-Disposition: attachment; name="data"
     70 Content-Type: text/html
     71 
     72 <title>hello</title>
     73 --------------------------------
     74 
     75 --------------------------------
     76 </protocol>
     77 </verify>
     78 </testcase>