diff options
author | Paul Duncan <pabs@pablotron.org> | 2022-02-22 21:15:55 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2022-02-22 21:15:55 -0500 |
commit | 0d22d317612fee62a000aa576af1c129c49207b0 (patch) | |
tree | 5c5f3e6f2a006962a7b2a94300a2bbaee4b1bd1b | |
parent | e7b6248c6490db9aee83629640eaba3e0331764c (diff) | |
download | cvez-0d22d317612fee62a000aa576af1c129c49207b0.tar.bz2 cvez-0d22d317612fee62a000aa576af1c129c49207b0.zip |
nvdmirror: update jsoncache test data
-rw-r--r-- | nvdmirror/jsoncache_test.go | 4 | ||||
-rw-r--r-- | nvdmirror/testdata/bad-data.json | 1 | ||||
-rw-r--r-- | nvdmirror/testdata/bad-data.json.gz | bin | 0 -> 37 bytes | |||
l--------- | nvdmirror/testdata/bad-stat.json.gz (renamed from nvdmirror/testdata/bad-stat.json) | 0 |
4 files changed, 2 insertions, 3 deletions
diff --git a/nvdmirror/jsoncache_test.go b/nvdmirror/jsoncache_test.go index 5dc0277..a12acaf 100644 --- a/nvdmirror/jsoncache_test.go +++ b/nvdmirror/jsoncache_test.go @@ -112,8 +112,8 @@ func TestNewJsonCache(t *testing.T) { failNewTests := []string { "testdata/does/not/exist", - "testdata/bad-data.json", - "testdata/bad-stat.json", + "testdata/bad-data.json.gz", + "testdata/bad-stat.json.gz", } for _, test := range(failNewTests) { diff --git a/nvdmirror/testdata/bad-data.json b/nvdmirror/testdata/bad-data.json deleted file mode 100644 index 4117452..0000000 --- a/nvdmirror/testdata/bad-data.json +++ /dev/null @@ -1 +0,0 @@ -{" diff --git a/nvdmirror/testdata/bad-data.json.gz b/nvdmirror/testdata/bad-data.json.gz Binary files differnew file mode 100644 index 0000000..8449ac5 --- /dev/null +++ b/nvdmirror/testdata/bad-data.json.gz diff --git a/nvdmirror/testdata/bad-stat.json b/nvdmirror/testdata/bad-stat.json.gz index 1eb768d..1eb768d 120000 --- a/nvdmirror/testdata/bad-stat.json +++ b/nvdmirror/testdata/bad-stat.json.gz |