quickjs-tart

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

test2084 (751B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 </keywords>
      6 </info>
      7 
      8 # Server-side
      9 <reply>
     10 <data nocheck="yes">
     11 HTTP/1.1 200 OK
     12 Date: Tue, 09 Nov 2010 14:49:00 GMT
     13 Server: test-server/fake
     14 Content-Type: text/html
     15 Content-Length: 0
     16 
     17 </data>
     18 </reply>
     19 
     20 # Client-side
     21 <client>
     22 <server>
     23 http
     24 </server>
     25 
     26 <name>
     27 Pre-request callback for HTTP with callback terminating transfer
     28 </name>
     29 <tool>
     30 lib2082
     31 </tool>
     32 
     33 <command>
     34 %HOSTIP:%HTTPPORT/%TESTNUMBER#err
     35 </command>
     36 </client>
     37 
     38 # Verify data after the test has been "shot"
     39 <verify>
     40 <errorcode>
     41 42
     42 </errorcode>
     43 <stripfile>
     44 s/^Local port = \d+/Local port = stripped/
     45 </stripfile>
     46 <stdout>
     47 Connected to %HOSTIP
     48 Connected from %CLIENTIP
     49 Remote port = %HTTPPORT
     50 Local port = stripped
     51 Returning = 1
     52 </stdout>
     53 </verify>
     54 </testcase>