mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 21:49:33 +02:00
cve_check: Update selftest with new status detail
(From OE-Core rev: ea7681ffc15cac970c395daab56ba264ac406cd6) Signed-off-by: Samantha Jalabert <samantha.jalabert@syslinbit.com> Signed-off-by: Marta Rybczynska <marta.rybczynska@syslinbit.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
fb3f440b7d
commit
6e742bcb4f
@@ -217,9 +217,10 @@ CVE_CHECK_REPORT_PATCHED = "1"
|
|||||||
# m4 CVE should not be in logrotate
|
# m4 CVE should not be in logrotate
|
||||||
self.assertNotIn("CVE-2008-1687", found_cves)
|
self.assertNotIn("CVE-2008-1687", found_cves)
|
||||||
# logrotate has both Patched and Ignored CVEs
|
# logrotate has both Patched and Ignored CVEs
|
||||||
|
detail = "version-not-in-range"
|
||||||
self.assertIn("CVE-2011-1098", found_cves)
|
self.assertIn("CVE-2011-1098", found_cves)
|
||||||
self.assertEqual(found_cves["CVE-2011-1098"]["status"], "Patched")
|
self.assertEqual(found_cves["CVE-2011-1098"]["status"], "Patched")
|
||||||
self.assertEqual(len(found_cves["CVE-2011-1098"]["detail"]), 0)
|
self.assertEqual(found_cves["CVE-2011-1098"]["detail"], detail)
|
||||||
self.assertEqual(len(found_cves["CVE-2011-1098"]["description"]), 0)
|
self.assertEqual(len(found_cves["CVE-2011-1098"]["description"]), 0)
|
||||||
detail = "not-applicable-platform"
|
detail = "not-applicable-platform"
|
||||||
description = "CVE is debian, gentoo or SUSE specific on the way logrotate was installed/used"
|
description = "CVE is debian, gentoo or SUSE specific on the way logrotate was installed/used"
|
||||||
|
|||||||
Reference in New Issue
Block a user