fix
This commit is contained in:
@@ -42,7 +42,7 @@ class MonitorTests(unittest.TestCase):
|
||||
json.dumps(
|
||||
{
|
||||
"graylog_streams": [{"id": "66fe", "title": "Fortigate", "enabled": True}],
|
||||
"graylog_stream_profiles": [{"stream_id": "66fe", "name": "Firewall baseline", "entity_field": "srcip", "categorical_fields": ["action"]}],
|
||||
"graylog_stream_profiles": [{"stream_id": "66fe", "name": "66fe", "entity_field": "srcip", "categorical_fields": ["action"]}],
|
||||
}
|
||||
),
|
||||
encoding="utf-8",
|
||||
@@ -51,7 +51,8 @@ class MonitorTests(unittest.TestCase):
|
||||
status = build_status(str(Path(tmp) / "missing.log"), baseline_path=str(Path(tmp) / "baseline.sqlite3"), config_path=str(config_path))
|
||||
|
||||
self.assertEqual(status["profile_readiness"][0]["stream_name"], "Fortigate")
|
||||
self.assertEqual(status["profile_readiness"][0]["profile_name"], "Firewall baseline")
|
||||
self.assertEqual(status["profile_readiness"][0]["profile_name"], "Fortigate profile")
|
||||
self.assertEqual(status["stream_profiles"][0]["name"], "Fortigate profile")
|
||||
|
||||
def test_add_llm_assessment_records_error_without_ollama(self):
|
||||
status = {"summary": {}, "anomalies": []}
|
||||
|
||||
Reference in New Issue
Block a user