From a4b802d22fa0940fd1862f2176dfb41f4a1be973 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Tue, 22 Feb 2022 19:59:26 -0500 Subject: add nvdmirror, including cache iface, jsoncache impl, Sync() func, and test data --- nvdmirror/testdata/bad-data.json | 1 + nvdmirror/testdata/bad-stat.json | 1 + nvdmirror/testdata/files/nvdcve-1.1-2002.meta | 5 +++++ nvdmirror/testdata/files/nvdcve-1.1-2003.meta | 5 +++++ nvdmirror/testdata/files/nvdcve-1.1-2004.meta | 5 +++++ nvdmirror/testdata/files/nvdcve-1.1-2005.meta | 5 +++++ nvdmirror/testdata/files/nvdcve-1.1-2006.meta | 5 +++++ nvdmirror/testdata/files/nvdcve-1.1-2007.meta | 5 +++++ nvdmirror/testdata/files/nvdcve-1.1-2008.meta | 5 +++++ nvdmirror/testdata/files/nvdcve-1.1-2009.meta | 5 +++++ nvdmirror/testdata/files/nvdcve-1.1-2010.meta | 5 +++++ nvdmirror/testdata/files/nvdcve-1.1-2011.meta | 5 +++++ nvdmirror/testdata/files/nvdcve-1.1-2012.meta | 5 +++++ nvdmirror/testdata/files/nvdcve-1.1-2013.meta | 5 +++++ nvdmirror/testdata/files/nvdcve-1.1-2014.meta | 5 +++++ nvdmirror/testdata/files/nvdcve-1.1-2015.meta | 5 +++++ nvdmirror/testdata/files/nvdcve-1.1-2016.meta | 5 +++++ nvdmirror/testdata/files/nvdcve-1.1-2017.meta | 5 +++++ nvdmirror/testdata/files/nvdcve-1.1-2018.meta | 5 +++++ nvdmirror/testdata/files/nvdcve-1.1-2019.meta | 5 +++++ nvdmirror/testdata/files/nvdcve-1.1-2020.meta | 5 +++++ nvdmirror/testdata/files/nvdcve-1.1-2021.meta | 5 +++++ nvdmirror/testdata/files/nvdcve-1.1-2022.meta | 5 +++++ 23 files changed, 107 insertions(+) create mode 100644 nvdmirror/testdata/bad-data.json create mode 120000 nvdmirror/testdata/bad-stat.json create mode 100644 nvdmirror/testdata/files/nvdcve-1.1-2002.meta create mode 100644 nvdmirror/testdata/files/nvdcve-1.1-2003.meta create mode 100644 nvdmirror/testdata/files/nvdcve-1.1-2004.meta create mode 100644 nvdmirror/testdata/files/nvdcve-1.1-2005.meta create mode 100644 nvdmirror/testdata/files/nvdcve-1.1-2006.meta create mode 100644 nvdmirror/testdata/files/nvdcve-1.1-2007.meta create mode 100644 nvdmirror/testdata/files/nvdcve-1.1-2008.meta create mode 100644 nvdmirror/testdata/files/nvdcve-1.1-2009.meta create mode 100644 nvdmirror/testdata/files/nvdcve-1.1-2010.meta create mode 100644 nvdmirror/testdata/files/nvdcve-1.1-2011.meta create mode 100644 nvdmirror/testdata/files/nvdcve-1.1-2012.meta create mode 100644 nvdmirror/testdata/files/nvdcve-1.1-2013.meta create mode 100644 nvdmirror/testdata/files/nvdcve-1.1-2014.meta create mode 100644 nvdmirror/testdata/files/nvdcve-1.1-2015.meta create mode 100644 nvdmirror/testdata/files/nvdcve-1.1-2016.meta create mode 100644 nvdmirror/testdata/files/nvdcve-1.1-2017.meta create mode 100644 nvdmirror/testdata/files/nvdcve-1.1-2018.meta create mode 100644 nvdmirror/testdata/files/nvdcve-1.1-2019.meta create mode 100644 nvdmirror/testdata/files/nvdcve-1.1-2020.meta create mode 100644 nvdmirror/testdata/files/nvdcve-1.1-2021.meta create mode 100644 nvdmirror/testdata/files/nvdcve-1.1-2022.meta (limited to 'nvdmirror/testdata') diff --git a/nvdmirror/testdata/bad-data.json b/nvdmirror/testdata/bad-data.json new file mode 100644 index 0000000..4117452 --- /dev/null +++ b/nvdmirror/testdata/bad-data.json @@ -0,0 +1 @@ +{" diff --git a/nvdmirror/testdata/bad-stat.json b/nvdmirror/testdata/bad-stat.json new file mode 120000 index 0000000..1eb768d --- /dev/null +++ b/nvdmirror/testdata/bad-stat.json @@ -0,0 +1 @@ +does/not/exist \ No newline at end of file diff --git a/nvdmirror/testdata/files/nvdcve-1.1-2002.meta b/nvdmirror/testdata/files/nvdcve-1.1-2002.meta new file mode 100644 index 0000000..4f79b34 --- /dev/null +++ b/nvdmirror/testdata/files/nvdcve-1.1-2002.meta @@ -0,0 +1,5 @@ +lastModifiedDate:2022-01-22T03:00:58-05:00 +size:20972695 +zipSize:1453971 +gzSize:1453835 +sha256:E2D7B3A7239C5DDCF9713E6A892782BC3E9B07A6023D1D4F345BCC9644D99FBA diff --git a/nvdmirror/testdata/files/nvdcve-1.1-2003.meta b/nvdmirror/testdata/files/nvdcve-1.1-2003.meta new file mode 100644 index 0000000..93ff803 --- /dev/null +++ b/nvdmirror/testdata/files/nvdcve-1.1-2003.meta @@ -0,0 +1,5 @@ +lastModifiedDate:2021-08-23T13:59:45-04:00 +size:6025730 +zipSize:434156 +gzSize:434020 +sha256:3BCA2121E3A72AACEA966C7B66F8E52D6EB55D65E5C97F6ACC1A5B7B48D503B3 diff --git a/nvdmirror/testdata/files/nvdcve-1.1-2004.meta b/nvdmirror/testdata/files/nvdcve-1.1-2004.meta new file mode 100644 index 0000000..408fbd5 --- /dev/null +++ b/nvdmirror/testdata/files/nvdcve-1.1-2004.meta @@ -0,0 +1,5 @@ +lastModifiedDate:2022-02-08T03:02:48-05:00 +size:12598744 +zipSize:854973 +gzSize:854837 +sha256:AA4170920FBCCC7F3D7D681D4315321E685B7D9CCC12750F8D3D217A09252474 diff --git a/nvdmirror/testdata/files/nvdcve-1.1-2005.meta b/nvdmirror/testdata/files/nvdcve-1.1-2005.meta new file mode 100644 index 0000000..7e540bc --- /dev/null +++ b/nvdmirror/testdata/files/nvdcve-1.1-2005.meta @@ -0,0 +1,5 @@ +lastModifiedDate:2022-02-08T03:02:45-05:00 +size:19932851 +zipSize:1346296 +gzSize:1346160 +sha256:044A7F0C7E914E256FE2CC15B71F75F2B4D9F98EDC52F65B698FD1FC7C4C14E5 diff --git a/nvdmirror/testdata/files/nvdcve-1.1-2006.meta b/nvdmirror/testdata/files/nvdcve-1.1-2006.meta new file mode 100644 index 0000000..81f20be --- /dev/null +++ b/nvdmirror/testdata/files/nvdcve-1.1-2006.meta @@ -0,0 +1,5 @@ +lastModifiedDate:2022-02-08T03:02:40-05:00 +size:30464164 +zipSize:2131269 +gzSize:2131133 +sha256:7A6FD9344153D818C3198BF272C45A05C5798D9BE897BCD9D8B24AA438289B11 diff --git a/nvdmirror/testdata/files/nvdcve-1.1-2007.meta b/nvdmirror/testdata/files/nvdcve-1.1-2007.meta new file mode 100644 index 0000000..8661b7d --- /dev/null +++ b/nvdmirror/testdata/files/nvdcve-1.1-2007.meta @@ -0,0 +1,5 @@ +lastModifiedDate:2022-02-19T03:02:08-05:00 +size:28527928 +zipSize:2102361 +gzSize:2102225 +sha256:1EF12715AC9D4231938F3D01626E0563F2ADEF3CE69FF2F53FC78B60786583E4 diff --git a/nvdmirror/testdata/files/nvdcve-1.1-2008.meta b/nvdmirror/testdata/files/nvdcve-1.1-2008.meta new file mode 100644 index 0000000..c6caf36 --- /dev/null +++ b/nvdmirror/testdata/files/nvdcve-1.1-2008.meta @@ -0,0 +1,5 @@ +lastModifiedDate:2022-02-10T03:01:59-05:00 +size:33340407 +zipSize:2160208 +gzSize:2160072 +sha256:9C61DCCA59E9875573C63B86EC6D6A3064FA045E83C32B0B17DD4C116370185E diff --git a/nvdmirror/testdata/files/nvdcve-1.1-2009.meta b/nvdmirror/testdata/files/nvdcve-1.1-2009.meta new file mode 100644 index 0000000..2666ef4 --- /dev/null +++ b/nvdmirror/testdata/files/nvdcve-1.1-2009.meta @@ -0,0 +1,5 @@ +lastModifiedDate:2022-02-11T03:02:10-05:00 +size:32580264 +zipSize:1974299 +gzSize:1974163 +sha256:C6BD6966A775A7115B4B2263BE2EFF863DF07D811C93AC65C5E1344AC3934EF0 diff --git a/nvdmirror/testdata/files/nvdcve-1.1-2010.meta b/nvdmirror/testdata/files/nvdcve-1.1-2010.meta new file mode 100644 index 0000000..5192d80 --- /dev/null +++ b/nvdmirror/testdata/files/nvdcve-1.1-2010.meta @@ -0,0 +1,5 @@ +lastModifiedDate:2022-02-19T03:02:02-05:00 +size:34873319 +zipSize:1941377 +gzSize:1941241 +sha256:A51293FDE6446834BBCCCC854B5DB673A730309C6E0E4483090847DC7A7A4A4F diff --git a/nvdmirror/testdata/files/nvdcve-1.1-2011.meta b/nvdmirror/testdata/files/nvdcve-1.1-2011.meta new file mode 100644 index 0000000..cc83473 --- /dev/null +++ b/nvdmirror/testdata/files/nvdcve-1.1-2011.meta @@ -0,0 +1,5 @@ +lastModifiedDate:2022-02-08T03:02:08-05:00 +size:35005464 +zipSize:1835220 +gzSize:1835084 +sha256:B9FD38F830649B03756B2FB151064997ACD9E3B21330C743962D3CAC7FB211EB diff --git a/nvdmirror/testdata/files/nvdcve-1.1-2012.meta b/nvdmirror/testdata/files/nvdcve-1.1-2012.meta new file mode 100644 index 0000000..43df16e --- /dev/null +++ b/nvdmirror/testdata/files/nvdcve-1.1-2012.meta @@ -0,0 +1,5 @@ +lastModifiedDate:2022-02-11T03:01:57-05:00 +size:40517537 +zipSize:2062242 +gzSize:2062106 +sha256:27CE6740CDCCE9086D6A18E3888B9D4AE606F513156CB8F17C75ACAFB92CA1CC diff --git a/nvdmirror/testdata/files/nvdcve-1.1-2013.meta b/nvdmirror/testdata/files/nvdcve-1.1-2013.meta new file mode 100644 index 0000000..7add80d --- /dev/null +++ b/nvdmirror/testdata/files/nvdcve-1.1-2013.meta @@ -0,0 +1,5 @@ +lastModifiedDate:2022-02-19T03:01:54-05:00 +size:45815787 +zipSize:2455830 +gzSize:2455694 +sha256:C36F539B3B67943121D76AEFD182701EC14D1C65B83DD91E4690A68AA9D64643 diff --git a/nvdmirror/testdata/files/nvdcve-1.1-2014.meta b/nvdmirror/testdata/files/nvdcve-1.1-2014.meta new file mode 100644 index 0000000..d15a85b --- /dev/null +++ b/nvdmirror/testdata/files/nvdcve-1.1-2014.meta @@ -0,0 +1,5 @@ +lastModifiedDate:2022-02-19T03:01:45-05:00 +size:40764138 +zipSize:2353848 +gzSize:2353712 +sha256:FC17C65007A11D9E1045EF4C14174A99F911571C10361E7945E242AA7AD85F27 diff --git a/nvdmirror/testdata/files/nvdcve-1.1-2015.meta b/nvdmirror/testdata/files/nvdcve-1.1-2015.meta new file mode 100644 index 0000000..36031de --- /dev/null +++ b/nvdmirror/testdata/files/nvdcve-1.1-2015.meta @@ -0,0 +1,5 @@ +lastModifiedDate:2022-02-20T03:01:51-05:00 +size:40140856 +zipSize:2208094 +gzSize:2207958 +sha256:A63FCB0DCC45A25932E2D1CDF02A05231BAFB804E853D06400E0E31CF93B867A diff --git a/nvdmirror/testdata/files/nvdcve-1.1-2016.meta b/nvdmirror/testdata/files/nvdcve-1.1-2016.meta new file mode 100644 index 0000000..40a4a0e --- /dev/null +++ b/nvdmirror/testdata/files/nvdcve-1.1-2016.meta @@ -0,0 +1,5 @@ +lastModifiedDate:2022-02-21T03:01:19-05:00 +size:51789260 +zipSize:2694233 +gzSize:2694097 +sha256:8AA3E55FE30B2592A090486D103805CCCFAD2EED32C5AA5AA8ED81A086754E0A diff --git a/nvdmirror/testdata/files/nvdcve-1.1-2017.meta b/nvdmirror/testdata/files/nvdcve-1.1-2017.meta new file mode 100644 index 0000000..ca4a00e --- /dev/null +++ b/nvdmirror/testdata/files/nvdcve-1.1-2017.meta @@ -0,0 +1,5 @@ +lastModifiedDate:2022-02-20T03:01:23-05:00 +size:73254381 +zipSize:3757519 +gzSize:3757383 +sha256:6836C573B27DC8DC08CE077D6BEFD99C462FBA664502D965070A45B70EC674FD diff --git a/nvdmirror/testdata/files/nvdcve-1.1-2018.meta b/nvdmirror/testdata/files/nvdcve-1.1-2018.meta new file mode 100644 index 0000000..019a3ff --- /dev/null +++ b/nvdmirror/testdata/files/nvdcve-1.1-2018.meta @@ -0,0 +1,5 @@ +lastModifiedDate:2022-02-21T03:01:07-05:00 +size:76729497 +zipSize:4097777 +gzSize:4097641 +sha256:AEF1FFDD7E31F4710B5B1C0D6639C99604674E16B5BB567961036BA0EB73485F diff --git a/nvdmirror/testdata/files/nvdcve-1.1-2019.meta b/nvdmirror/testdata/files/nvdcve-1.1-2019.meta new file mode 100644 index 0000000..1d11ed5 --- /dev/null +++ b/nvdmirror/testdata/files/nvdcve-1.1-2019.meta @@ -0,0 +1,5 @@ +lastModifiedDate:2022-02-21T03:00:51-05:00 +size:86200450 +zipSize:4585488 +gzSize:4585352 +sha256:89374F593C8D7C6A5ED9A7F9CD056CCF83DE132418F548E44436B8E349C9FF08 diff --git a/nvdmirror/testdata/files/nvdcve-1.1-2020.meta b/nvdmirror/testdata/files/nvdcve-1.1-2020.meta new file mode 100644 index 0000000..9895d47 --- /dev/null +++ b/nvdmirror/testdata/files/nvdcve-1.1-2020.meta @@ -0,0 +1,5 @@ +lastModifiedDate:2022-02-21T03:00:34-05:00 +size:109758817 +zipSize:5408074 +gzSize:5407938 +sha256:95825EC8F1A6AAD18EEB7570188233FDBC02D1B779EC3A8540F6AA5ED21FAE44 diff --git a/nvdmirror/testdata/files/nvdcve-1.1-2021.meta b/nvdmirror/testdata/files/nvdcve-1.1-2021.meta new file mode 100644 index 0000000..7a81d7e --- /dev/null +++ b/nvdmirror/testdata/files/nvdcve-1.1-2021.meta @@ -0,0 +1,5 @@ +lastModifiedDate:2022-02-21T03:00:14-05:00 +size:104254008 +zipSize:5094678 +gzSize:5094542 +sha256:143EBF79D6A03F6FF2A96DF3173792B8968EDC3BB0D9C429422969D4D66121EA diff --git a/nvdmirror/testdata/files/nvdcve-1.1-2022.meta b/nvdmirror/testdata/files/nvdcve-1.1-2022.meta new file mode 100644 index 0000000..bc5bb55 --- /dev/null +++ b/nvdmirror/testdata/files/nvdcve-1.1-2022.meta @@ -0,0 +1,5 @@ +lastModifiedDate:2022-02-21T03:00:00-05:00 +size:6828897 +zipSize:368347 +gzSize:368211 +sha256:0B522A84B42E973672771F3AF4A9CA711708FA15D8EA3AE829310FE6C233BE6B -- cgit v1.2.3