From fe2da5f047587e20b4c4cbc62c256610f195ab4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Tue, 2 Jul 2024 17:53:14 +0200 Subject: [PATCH] new: test publish & search --- tests/testlive_comprehensive.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/testlive_comprehensive.py b/tests/testlive_comprehensive.py index 7472cc4..867611f 100644 --- a/tests/testlive_comprehensive.py +++ b/tests/testlive_comprehensive.py @@ -863,6 +863,11 @@ class TestComprehensive(unittest.TestCase): self.assertEqual(events, []) events = self.user_misp_connector.search(timestamp=timeframe, published=False) self.assertEqual(len(events), 2) + # check publish & search + self.pub_misp_connector.publish(second) + events = self.user_misp_connector.search(timestamp=timeframe, published=False) + self.assertEqual(len(events), 1) + events = self.user_misp_connector.search(eventid=first.id) self.assertEqual(len(events), 1) self.assertEqual(events[0].id, first.id)