quickjs-tart

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

test2082 (684B)


      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
     28 </name>
     29 <tool>
     30 lib2082
     31 </tool>
     32 
     33 <command>
     34 %HOSTIP:%HTTPPORT/%TESTNUMBER
     35 </command>
     36 </client>
     37 
     38 # Verify data after the test has been "shot"
     39 <verify>
     40 <stripfile>
     41 s/^Local port = \d+/Local port = stripped/
     42 </stripfile>
     43 <stdout>
     44 Connected to %HOSTIP
     45 Connected from %CLIENTIP
     46 Remote port = %HTTPPORT
     47 Local port = stripped
     48 Returning = 0
     49 </stdout>
     50 </verify>
     51 </testcase>