From 0d22d317612fee62a000aa576af1c129c49207b0 Mon Sep 17 00:00:00 2001
From: Paul Duncan <pabs@pablotron.org>
Date: Tue, 22 Feb 2022 21:15:55 -0500
Subject: nvdmirror: update jsoncache test data

---
 nvdmirror/jsoncache_test.go         |   4 ++--
 nvdmirror/testdata/bad-data.json    |   1 -
 nvdmirror/testdata/bad-data.json.gz | Bin 0 -> 37 bytes
 nvdmirror/testdata/bad-stat.json    |   1 -
 nvdmirror/testdata/bad-stat.json.gz |   1 +
 5 files changed, 3 insertions(+), 4 deletions(-)
 delete mode 100644 nvdmirror/testdata/bad-data.json
 create mode 100644 nvdmirror/testdata/bad-data.json.gz
 delete mode 120000 nvdmirror/testdata/bad-stat.json
 create mode 120000 nvdmirror/testdata/bad-stat.json.gz

(limited to 'nvdmirror')

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
new file mode 100644
index 0000000..8449ac5
Binary files /dev/null and b/nvdmirror/testdata/bad-data.json.gz differ
diff --git a/nvdmirror/testdata/bad-stat.json b/nvdmirror/testdata/bad-stat.json
deleted file mode 120000
index 1eb768d..0000000
--- a/nvdmirror/testdata/bad-stat.json
+++ /dev/null
@@ -1 +0,0 @@
-does/not/exist
\ No newline at end of file
diff --git a/nvdmirror/testdata/bad-stat.json.gz b/nvdmirror/testdata/bad-stat.json.gz
new file mode 120000
index 0000000..1eb768d
--- /dev/null
+++ b/nvdmirror/testdata/bad-stat.json.gz
@@ -0,0 +1 @@
+does/not/exist
\ No newline at end of file
-- 
cgit v1.2.3