From 6714b5ae29233e85d6b4786325fb6c89feed1aad Mon Sep 17 00:00:00 2001 From: "John M. Horan" Date: Tue, 24 Jan 2023 12:11:18 -0800 Subject: [PATCH] Update tests #1079 Reference: https://github.com/nexB/vulnerablecode/issues/1079 Signed-off-by: John M. Horan --- .../suse-oval-CVE-2008-5679-expected.json | 3 +- .../suse-oval-leap.micro.5.3-expected.json | 171 ++++++++++++------ ...se-oval-leap.micro.5.3-patch-expected.json | 96 ++++++---- 3 files changed, 180 insertions(+), 90 deletions(-) diff --git a/vulnerabilities/tests/test_data/suse_oval/suse-oval-CVE-2008-5679-expected.json b/vulnerabilities/tests/test_data/suse_oval/suse-oval-CVE-2008-5679-expected.json index 427983868..b56e23a8c 100644 --- a/vulnerabilities/tests/test_data/suse_oval/suse-oval-CVE-2008-5679-expected.json +++ b/vulnerabilities/tests/test_data/suse_oval/suse-oval-CVE-2008-5679-expected.json @@ -25,6 +25,7 @@ "severities": [] } ], - "date_published": "2009-01-14T09:08:29.480000-05:00" + "date_published": "2009-01-14T09:08:29.480000-05:00", + "weaknesses": [] } ] \ No newline at end of file diff --git a/vulnerabilities/tests/test_data/suse_oval/suse-oval-leap.micro.5.3-expected.json b/vulnerabilities/tests/test_data/suse_oval/suse-oval-leap.micro.5.3-expected.json index 4d9497fee..0fad307d2 100644 --- a/vulnerabilities/tests/test_data/suse_oval/suse-oval-leap.micro.5.3-expected.json +++ b/vulnerabilities/tests/test_data/suse_oval/suse-oval-leap.micro.5.3-expected.json @@ -672,7 +672,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -796,7 +797,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -1218,7 +1220,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -2047,7 +2050,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -2369,7 +2373,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -2459,7 +2464,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -2990,7 +2996,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -3113,7 +3120,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -3280,7 +3288,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -3393,7 +3402,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -3506,7 +3516,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -3619,7 +3630,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -3732,7 +3744,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -3845,7 +3858,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -3958,7 +3972,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -4251,7 +4266,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -4572,7 +4588,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -4784,7 +4801,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -4996,7 +5014,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -5208,7 +5227,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -5420,7 +5440,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -5632,7 +5653,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -5844,7 +5866,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -6067,7 +6090,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -6279,7 +6303,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -6491,7 +6516,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -6714,7 +6740,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -6926,7 +6953,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -7160,7 +7188,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -7372,7 +7401,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -7518,7 +7548,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -7664,7 +7695,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -7765,7 +7797,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -7911,7 +7944,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -8023,7 +8057,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -8135,7 +8170,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -8247,7 +8283,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -8359,7 +8396,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -8471,7 +8509,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -8583,7 +8622,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -8850,7 +8890,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -9250,7 +9291,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -9543,7 +9585,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -9644,7 +9687,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -9767,7 +9811,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -9913,7 +9958,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -10619,7 +10665,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -10765,7 +10812,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -10911,7 +10959,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -11321,7 +11370,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -11819,7 +11869,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -12432,7 +12483,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -12544,7 +12596,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -12657,7 +12710,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -12770,7 +12824,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -13070,7 +13125,8 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] }, { "aliases": [ @@ -13281,6 +13337,7 @@ ] } ], - "date_published": "2023-01-17T06:46:59+00:00" + "date_published": "2023-01-17T06:46:59+00:00", + "weaknesses": [] } ] \ No newline at end of file diff --git a/vulnerabilities/tests/test_data/suse_oval/suse-oval-leap.micro.5.3-patch-expected.json b/vulnerabilities/tests/test_data/suse_oval/suse-oval-leap.micro.5.3-patch-expected.json index 9f4d8c8b3..cb1bce546 100644 --- a/vulnerabilities/tests/test_data/suse_oval/suse-oval-leap.micro.5.3-patch-expected.json +++ b/vulnerabilities/tests/test_data/suse_oval/suse-oval-leap.micro.5.3-patch-expected.json @@ -53,7 +53,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -131,7 +132,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -165,7 +167,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -221,7 +224,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -255,7 +259,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -366,7 +371,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -422,7 +428,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -478,7 +485,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -534,7 +542,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -678,7 +687,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -822,7 +832,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -933,7 +944,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -1297,7 +1309,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -1375,7 +1388,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -1442,7 +1456,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -1531,7 +1546,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -1587,7 +1603,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -1643,7 +1660,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -1721,7 +1739,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -1777,7 +1796,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -1844,7 +1864,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -2032,7 +2053,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -2088,7 +2110,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -2133,7 +2156,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -2178,7 +2202,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -2245,7 +2270,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -2532,7 +2558,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -2577,7 +2604,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -2633,7 +2661,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -2689,7 +2718,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -2789,7 +2819,8 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] }, { "aliases": [ @@ -2845,6 +2876,7 @@ ] } ], - "date_published": "2023-01-18T06:56:54+00:00" + "date_published": "2023-01-18T06:56:54+00:00", + "weaknesses": [] } ] \ No newline at end of file