mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 04:41:10 +00:00
move existing stuff to archive dir (for now)
This commit is contained in:
parent
ae1204449c
commit
4fc491f61a
32 changed files with 0 additions and 0 deletions
|
|
@ -1,34 +0,0 @@
|
|||
import unittest
|
||||
|
||||
from misc import vuln
|
||||
|
||||
|
||||
class TestVuln(unittest.TestCase):
|
||||
def test_parse_arch_audit_output(self):
|
||||
self.assertEqual(
|
||||
vuln._parse_arch_audit_output(
|
||||
"""[
|
||||
{"name":"AVG-2765",
|
||||
"packages":["openssl"],
|
||||
"status":"Vulnerable",
|
||||
"type":"arbitrary command execution",
|
||||
"severity":"Medium",
|
||||
"fixed":null,
|
||||
"issues":["CVE-2022-2068"]}
|
||||
]"""
|
||||
),
|
||||
[
|
||||
vuln.Vulnerability(
|
||||
id="AVG-2765",
|
||||
link="https://security.archlinux.org/AVG-2765",
|
||||
vuln_type="arbitrary command execution",
|
||||
packages=["openssl"],
|
||||
severity=vuln.Severity.MEDIUM,
|
||||
fixed=None,
|
||||
)
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue