From 95de5d982ce9b3a72ad056a4a43c1b43f4087821 Mon Sep 17 00:00:00 2001 From: Jakub Onderka Date: Mon, 25 Mar 2024 17:43:48 +0100 Subject: [PATCH] chg: [test] Check attribute search --- tests/testlive_comprehensive_local.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/testlive_comprehensive_local.py b/tests/testlive_comprehensive_local.py index 52de96262..a7926df6f 100644 --- a/tests/testlive_comprehensive_local.py +++ b/tests/testlive_comprehensive_local.py @@ -923,6 +923,9 @@ class TestComprehensive(unittest.TestCase): self.assertTrue(created_user.autoalert, created_user) self.admin_misp_connector.delete_user(created_user) + def test_attribute_search(self): + request(self.admin_misp_connector, "GET", "/attributes/search/value:8.8.8.8.json") + def test_search_snort_suricata(self): event = create_simple_event() event.add_attribute('ip-src', '8.8.8.8', to_ids=True)