Skip to content

Commit

Permalink
RustyHog: improve description and file_path
Browse files Browse the repository at this point in the history
  • Loading branch information
valentijnscholten committed Dec 17, 2024
1 parent 35ae569 commit 9212626
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unittests/tools/test_rusty_hog_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ def test_parse_file_with_multiple_vuln_has_multiple_finding_essexhog(self):
parser = RustyhogParser()
findings = parser.get_items(testfile, "Essex Hog", Test())
self.assertEqual(3, len(findings))
self.assertEqual("https://confluence.com/pages/viewpage.action?pageId=12345", findings[0]['file_path'])
self.assertEqual("-----BEGIN EC PRIVATE KEY-----", findings[0]['payload'])
self.assertEqual("*Reason:**SSH (EC) private key", findings[0]['description'][:30])
self.assertEqual("https://confluence.com/pages/viewpage.action?pageId=12345", findings[0].file_path)
self.assertEqual("-----BEGIN EC PRIVATE KEY-----", findings[0].payload)
self.assertEqual("*Reason:**SSH (EC) private key", findings[0].description[:30])

def test_parse_file_with_multiple_vuln_has_multiple_finding_essexhog_content(self):
with open("unittests/scans/rusty_hog/essexhog_many_vulns.json", encoding="utf-8") as testfile:
Expand Down

0 comments on commit 9212626

Please sign in to comment.