From eb06fdfa7a17d91d3844c7559cea678be03945a6 Mon Sep 17 00:00:00 2001 From: yaksnip <123754019+yaksnip425@users.noreply.github.com> Date: Sat, 17 Feb 2024 17:27:07 +0100 Subject: [PATCH] Add unit test --- tests/alerters/iris_test.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/alerters/iris_test.py b/tests/alerters/iris_test.py index 2ad0bfce..3b4a97e6 100644 --- a/tests/alerters/iris_test.py +++ b/tests/alerters/iris_test.py @@ -64,6 +64,13 @@ def test_iris_make_iocs_records(caplog): 'ioc_tlp_id': 3, 'ioc_type_id': 3, 'ioc_value': 'username' + }, + { + 'ioc_description': 'empty ioc', + 'ioc_tags': 'ioc', + 'ioc_tlp_id': 3, + 'ioc_type_id': 3, + 'ioc_value': 'non_existent_data' } ], 'alert': []