more limited notification
This commit is contained in:
1 parent
014a1d5563
commit
65b9c1fc84
2 files changed
+25
-22
No files matched your search
+2
-3
@@ -434,9 +434,9 @@ class ReportTests(unittest.TestCase):
|
||||
body = scan.build_aggregated_body(aggregated, 15)
|
||||
self.assertIn("CVE-1", body)
|
||||
self.assertIn("containers: web", body)
|
||||
self.assertIn("image: nginx:1.27", body)
|
||||
self.assertIn("nginx:1.27", body)
|
||||
self.assertIn("containers: cache", body)
|
||||
self.assertIn("image: redis:7", body)
|
||||
self.assertIn("redis:7", body)
|
||||
|
||||
|
||||
class TrivyCommandTests(unittest.TestCase):
|
||||
@@ -569,7 +569,6 @@ printf '%s\\n' "$*" >> "$APPRISE_LOG"
|
||||
notification = Path(self.apprise_log).read_text()
|
||||
self.assertIn("CVE-2026-0001", notification)
|
||||
self.assertIn("containers: testphp", notification)
|
||||
self.assertIn("image: testphp-php", notification)
|
||||
|
||||
def test_scan_failure_notification_includes_container(self) -> None:
|
||||
containers = [container("a" * 64, "testphp-php", name="testphp")]
|
||||
|
||||
Reference in new issue
Block a user