From 4a85e5386920101f2a9fa78f774b94fedec423253be614f8b7170d5072b5ff03 Mon Sep 17 00:00:00 2001 From: larssand Date: Mon, 29 Jun 2026 19:20:08 +0200 Subject: [PATCH] multi-entity stream profiles. --- tests/test_monitor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_monitor.py b/tests/test_monitor.py index c7e791e..aa376cf 100644 --- a/tests/test_monitor.py +++ b/tests/test_monitor.py @@ -22,7 +22,7 @@ class MonitorTests(unittest.TestCase): encoding="utf-8", ) - status = build_status(str(log_path)) + status = build_status(str(log_path), incident_path=str(Path(tmp) / "incidents.json")) self.assertEqual(status["summary"]["total"], 3) self.assertGreaterEqual(len(status["anomalies"]), 1) @@ -48,7 +48,7 @@ class MonitorTests(unittest.TestCase): encoding="utf-8", ) with patch("fgai.monitor.BaselineStore.profile_readiness", return_value=[{"stream_id": "66fe", "field": "action", "buckets": 12, "ready": True}]): - status = build_status(str(Path(tmp) / "missing.log"), baseline_path=str(Path(tmp) / "baseline.sqlite3"), config_path=str(config_path)) + status = build_status(str(Path(tmp) / "missing.log"), baseline_path=str(Path(tmp) / "baseline.sqlite3"), config_path=str(config_path), incident_path=str(Path(tmp) / "incidents.json")) self.assertEqual(status["profile_readiness"][0]["stream_name"], "Fortigate") self.assertEqual(status["profile_readiness"][0]["profile_name"], "Fortigate profile") @@ -70,7 +70,7 @@ class MonitorTests(unittest.TestCase): encoding="utf-8", ) with patch("fgai.monitor.BaselineStore.profile_readiness", return_value=[{"stream_id": "firewall", "field": "action", "buckets": 12, "ready": True}]): - status = build_status(str(Path(tmp) / "missing.log"), baseline_path=str(Path(tmp) / "baseline.sqlite3"), config_path=str(config_path)) + status = build_status(str(Path(tmp) / "missing.log"), baseline_path=str(Path(tmp) / "baseline.sqlite3"), config_path=str(config_path), incident_path=str(Path(tmp) / "incidents.json")) coverage = {item["stream_id"]: item for item in status["stream_coverage"]} self.assertEqual(coverage["firewall"]["health"], "no_events")