xref: /curl/tests/data/test1660 (revision a9497380)
1<testcase>
2<info>
3<keywords>
4unittest
5HSTS
6</keywords>
7</info>
8
9<client>
10<server>
11none
12</server>
13<features>
14unittest
15HSTS
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>
28CURL_TIME=1548369261
29</setenv>
30<name>
31HSTS
32</name>
33<command>
34%LOGDIR/hsts%TESTNUMBER
35</command>
36</client>
37
38<verify>
39<stdout>
40readfrom.example [readfrom.example]: 1633063661 includeSubDomains
41'old.example' is not HSTS
42'readfrom.example' is not HSTS
43example.com [example.com]: 1579905261
44example.com [example.com]: 1569905261
45example.com [example.com]: 1569905261
46example.com [example.com]: 1569905261 includeSubDomains
47example.org [example.org]: 1579905261
48Input 8: error 43
49Input 9: error 43
50this.example [this.example]: 1548400797
51'this.example' is not HSTS
52Input 12: error 43
53Input 13: error 43
54Input 14: error 43
553.example.com [3.example.com]: 1569905261 includeSubDomains
563.example.com [example.com]: 1569905261 includeSubDomains
57foo.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
62expire.example [expire.example]: 1548369268
63Number of entries: 4
64expire.example [expire.example]: 1548369268
65expire.example [expire.example]: 1548369268
66expire.example [expire.example]: 1548369268
67expire.example [expire.example]: 1548369268
68expire.example [expire.example]: 1548369268
69expire.example [expire.example]: 1548369268
70expire.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"
80example.org "20200124 22:34:21"
81</file>
82</verify>
83</testcase>
84