quickjs-tart

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

test1511 (1128B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 CURLOPT_TIMECONDITION
      6 </keywords>
      7 </info>
      8 
      9 # Server-side
     10 <reply>
     11 <data>
     12 HTTP/1.1 200 OK
     13 Date: Tue, 09 Nov 2010 14:49:00 GMT
     14 Server: test-server/fakem
     15 Last-Modified: Mon, 22 Apr 2013 17:45:05 GMT
     16 Content-Type: text/html
     17 Content-Length: 12
     18 Connection: close
     19 
     20 Hello World
     21 </data>
     22 
     23 <datacheck>
     24 HTTP/1.1 200 OK
     25 Date: Tue, 09 Nov 2010 14:49:00 GMT
     26 Server: test-server/fakem
     27 Last-Modified: Mon, 22 Apr 2013 17:45:05 GMT
     28 Content-Type: text/html
     29 Content-Length: 12
     30 Connection: close
     31 
     32 HTTP/1.1 200 OK
     33 Date: Tue, 09 Nov 2010 14:49:00 GMT
     34 Server: test-server/fakem
     35 Last-Modified: Mon, 22 Apr 2013 17:45:05 GMT
     36 Content-Type: text/html
     37 Content-Length: 12
     38 Connection: close
     39 
     40 Hello World
     41 </datacheck>
     42 
     43 </reply>
     44 
     45 # Client-side
     46 <client>
     47 <server>
     48 http
     49 </server>
     50 <features>
     51 http
     52 </features>
     53 <tool>
     54 lib%TESTNUMBER
     55 </tool>
     56 <name>
     57 HTTP GET time conditions in repeated requests
     58 </name>
     59 <command>
     60 http://%HOSTIP:%HTTPPORT/%TESTNUMBER
     61 </command>
     62 </client>
     63 
     64 # Verify data after the test has been "shot"
     65 # TEST_ERR_SUCCESS is errorcode 41
     66 <verify>
     67 <errorcode>
     68 41
     69 </errorcode>
     70 </verify>
     71 </testcase>