quickjs-tart

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

test303 (719B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTPS
      5 HTTP GET
      6 timeout
      7 FAILURE
      8 </keywords>
      9 </info>
     10 
     11 # Server-side
     12 <reply>
     13 <data>
     14 HTTP/1.1 200 OK
     15 Date: Tue, 09 Nov 2010 14:49:00 GMT
     16 Connection: close
     17 
     18 _data_result_data_
     19 </data>
     20 <postcmd>
     21 wait 20
     22 </postcmd>
     23 </reply>
     24 
     25 # Client-side
     26 <client>
     27 <features>
     28 SSL
     29 </features>
     30 <server>
     31 https
     32 </server>
     33 <killserver>
     34 https
     35 </killserver>
     36 <name>
     37 HTTPS with 8 secs timeout
     38 </name>
     39 <command>
     40 --insecure https://%HOSTIP:%HTTPSPORT/want/%TESTNUMBER -m 8
     41 </command>
     42 </client>
     43 
     44 # Verify data after the test has been "shot"
     45 <verify>
     46 <protocol>
     47 GET /want/%TESTNUMBER HTTP/1.1
     48 Host: %HOSTIP:%HTTPSPORT
     49 User-Agent: curl/%VERSION
     50 Accept: */*
     51 
     52 </protocol>
     53 <errorcode>
     54 28
     55 </errorcode>
     56 </verify>
     57 </testcase>