quickjs-tart

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

test1660 (2108B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 unittest
      5 HSTS
      6 </keywords>
      7 </info>
      8 
      9 <client>
     10 <server>
     11 none
     12 </server>
     13 <features>
     14 unittest
     15 HSTS
     16 </features>
     17 
     18 <file name="%LOGDIR/hsts%TESTNUMBER">
     19 # Your HSTS cache. https://curl.se/docs/hsts.html
     20 # This file was generated by libcurl! Edit at your own risk.
     21 .readfrom.example "20211001 04:47:41"
     22 .old.example "20161001 04:47:41"
     23 .new.example "unlimited"
     24 </file>
     25 
     26 # This date is exactly "20190124 22:34:21" UTC
     27 <setenv>
     28 CURL_TIME=1548369261
     29 </setenv>
     30 <name>
     31 HSTS
     32 </name>
     33 <command>
     34 %LOGDIR/hsts%TESTNUMBER
     35 </command>
     36 </client>
     37 
     38 <verify>
     39 <stdout>
     40 readfrom.example [readfrom.example]: 1633063661 includeSubDomains
     41 'old.example' is not HSTS
     42 'readfrom.example' is not HSTS
     43 example.com [example.com]: 1579905261
     44 example.com [example.com]: 1569905261
     45 example.com [example.com]: 1569905261
     46 example.com [example.com]: 1569905261 includeSubDomains
     47 example.org [example.org]: 1579905261
     48 Input 8: error 43
     49 Input 9: error 43
     50 this.example [this.example]: 1548400797
     51 'this.example' is not HSTS
     52 Input 12: error 43
     53 Input 13: error 43
     54 Input 14: error 43
     55 3.example.com [3.example.com]: 1569905261 includeSubDomains
     56 3.example.com [example.com]: 1569905261 includeSubDomains
     57 foo.example.com [example.com]: 1569905261 includeSubDomains
     58 'foo.xample.com' is not HSTS
     59 'forexample.net' is not HSTS
     60 'forexample.net' is not HSTS
     61 'example.net' is not HSTS
     62 expire.example [expire.example]: 1548369268
     63 Number of entries: 4
     64 expire.example [expire.example]: 1548369268
     65 expire.example [expire.example]: 1548369268
     66 expire.example [expire.example]: 1548369268
     67 expire.example [expire.example]: 1548369268
     68 expire.example [expire.example]: 1548369268
     69 expire.example [expire.example]: 1548369268
     70 expire.example [expire.example]: 1548369268
     71 'expire.example' is not HSTS
     72 'expire.example' is not HSTS
     73 'expire.example' is not HSTS
     74 </stdout>
     75 <file name="%LOGDIR/hsts%TESTNUMBER.save" mode="text">
     76 # Your HSTS cache. https://curl.se/docs/hsts.html
     77 # This file was generated by libcurl! Edit at your own risk.
     78 .new.example "unlimited"
     79 .example.com "20191001 04:47:41"
     80 example.org "20200124 22:34:21"
     81 </file>
     82 </verify>
     83 </testcase>