more fixes, and yet nothing works
This commit is contained in:
1 parent
8a5c712ef0
commit
cd587b9977
2 files changed
+23
-17
No files matched your search
+4
-4
@@ -502,9 +502,9 @@ class ReportTests(unittest.TestCase):
|
||||
("redis:7", "cache", 4, 0, 4),
|
||||
]
|
||||
)
|
||||
self.assertIn("* nginx:1.27 [web-worker]: 2/3 (fixable/total)", body)
|
||||
self.assertIn("* redis:7 [cache]: 0/4 (fixable/total)", body)
|
||||
self.assertIn("Total: 7 CVE(s) in 2 container(s)", body)
|
||||
self.assertIn("- web-worker: 2/3", body)
|
||||
self.assertIn("- cache: 0/4", body)
|
||||
self.assertIn("Total: 7 in 2", body)
|
||||
|
||||
def test_build_missing_body_separates_missing_and_unscanned(self) -> None:
|
||||
body = scan.build_missing_body(["gone"], ["web"])
|
||||
@@ -668,7 +668,7 @@ printf '%s\\n' "$*" >> "$APPRISE_LOG"
|
||||
self.assertIn("Container: web", notification)
|
||||
self.assertIn("CVE-2026-0001", notification)
|
||||
self.assertIn("Vulnerability scan: other containers", notification)
|
||||
self.assertIn("redis:7 [cache]", notification)
|
||||
self.assertIn("cache: 1/1", notification)
|
||||
self.assertIn("1/1 (fixable/total)", notification)
|
||||
# The important container must not also appear in the summary.
|
||||
self.assertNotIn("testphp-php [web]", notification)
|
||||
|
||||
Reference in new issue
Block a user