From 7c28927ffda9ece25aa947875b4fcbb35e8ec154 Mon Sep 17 00:00:00 2001 From: iglocska Date: Thu, 23 Nov 2023 15:25:50 +0100 Subject: [PATCH] chg: [test] test if not publishing the events in the test_search_text solves the failed tests --- tests/testlive_comprehensive.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/testlive_comprehensive.py b/tests/testlive_comprehensive.py index aed4950..e198e5a 100644 --- a/tests/testlive_comprehensive.py +++ b/tests/testlive_comprehensive.py @@ -1219,12 +1219,12 @@ class TestComprehensive(unittest.TestCase): def test_search_text(self): first = self.create_simple_event() first.add_attribute('ip-src', '8.8.8.8') - first.publish() + # first.publish() try: first = self.user_misp_connector.add_event(first) - self.admin_misp_connector.publish(first) + # self.admin_misp_connector.publish(first) time.sleep(5) - text = self.user_misp_connector.search(return_format='text', eventid=first.id) + text = self.user_misp_connector.search(return_format='text', eventid=first.id, published=0) self.assertEqual('8.8.8.8', text.strip()) finally: # Delete event