quickjs-tart

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

test2308 (836B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 </keywords>
      7 </info>
      8 #
      9 # This reproduces the #13669 issue
     10 <reply>
     11 <data nocheck="yes">
     12 HTTP/1.1 200 OK
     13 Date: Tue, 09 Nov 2010 14:49:00 GMT
     14 Server: test-server/fake
     15 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
     16 ETag: "21025-dc7-39462498"
     17 Accept-Ranges: bytes
     18 Content-Length: 6
     19 Content-Type: text/html
     20 Funny-head: yesyes
     21 
     22 -foo-
     23 </data>
     24 </reply>
     25 
     26 # Client-side
     27 <client>
     28 <server>
     29 http
     30 </server>
     31 # tool to run
     32 <tool>
     33 lib%TESTNUMBER
     34 </tool>
     35 
     36 <name>
     37 verify return code when write callback returns error
     38 </name>
     39 <command>
     40 http://%HOSTIP:%HTTPPORT/%TESTNUMBER
     41 </command>
     42 </client>
     43 
     44 #
     45 # Verify data after the test has been "shot"
     46 <verify>
     47 <protocol>
     48 GET /%TESTNUMBER HTTP/1.1
     49 Host: %HOSTIP:%HTTPPORT
     50 Accept: */*
     51 
     52 </protocol>
     53 <stdout mode="text">
     54 Returned 23, should be 23.
     55 </stdout>
     56 </verify>
     57 </testcase>