quickjs-tart

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

test1915 (920B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HSTS
      6 CURLOPT_HSTSREADFUNCTION
      7 </keywords>
      8 </info>
      9 
     10 # Server-side
     11 <reply>
     12 </reply>
     13 
     14 # Client-side
     15 <client>
     16 <features>
     17 HSTS
     18 http
     19 </features>
     20 <server>
     21 none
     22 </server>
     23 
     24 <name>
     25 HSTS read/write callbacks
     26 </name>
     27 <tool>
     28 lib%TESTNUMBER
     29 </tool>
     30 
     31 <command>
     32 http://%HOSTIP:%NOLISTENPORT/not-there/%TESTNUMBER
     33 </command>
     34 </client>
     35 
     36 # Verify data after the test has been "shot"
     37 <verify>
     38 # 7 CURLE_COULDNT_CONNECT (expected since there's nothing listening there)
     39 # 42 CURLE_ABORTED_BY_CALLBACK
     40 <errorcode>
     41 42
     42 </errorcode>
     43 <stdout>
     44 %if large-time
     45 [0/4] 1.example.com 25250320 01:02:03
     46 [1/4] 2.example.com 25250320 03:02:01
     47 [2/4] 3.example.com 25250319 01:02:03
     48 %else
     49 [0/4] 1.example.com 20370320 01:02:03
     50 [1/4] 2.example.com 20370320 03:02:01
     51 [2/4] 3.example.com 20370319 01:02:03
     52 %endif
     53 [3/4] 4.example.com unlimited
     54 First request returned 7
     55 Second request returned 42
     56 </stdout>
     57 </verify>
     58 </testcase>