fix(notifications): retain diagnostic context across final consumers

This commit is contained in:
martino
2026-10-01 08:38:32 +02:00
parent e24308c017
commit 147c401864
6 changed files with 287 additions and 16 deletions
@@ -341,7 +341,10 @@ class RuntimeCatalogTests(unittest.TestCase):
},
language="sk",
)
self.assertIn("Backup complete", backup["title"])
expected_title = notification_templates.runtime_message(
"backup.confirmedTitle", "sk", hostname="pve01",
)
self.assertTrue(backup["title"].startswith(expected_title + " — "))
self.assertIn("pbs-main", backup["title"])
self.assertIn("VM alpha (100)", backup["title"])
self.assertNotIn("Backup job finished", backup["title"])