From 95fe4af62296e33152f0c566af168b2f91d081d8 Mon Sep 17 00:00:00 2001 From: iglocska Date: Thu, 5 Sep 2024 14:28:30 +0200 Subject: [PATCH] fix: [testlive upstream merged] --- tests/testlive_comprehensive.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/testlive_comprehensive.py b/tests/testlive_comprehensive.py index 0b26e19..0201207 100644 --- a/tests/testlive_comprehensive.py +++ b/tests/testlive_comprehensive.py @@ -1173,20 +1173,19 @@ class TestComprehensive(unittest.TestCase): second.info = 'foo blah' second.set_date('2018-09-01') second.add_attribute('ip-src', '8.8.8.8') - self.admin_misp_connector.set_server_setting('Plugin.ZeroMQ_enable', False, force=True) try: first = self.user_misp_connector.add_event(first) second = self.user_misp_connector.add_event(second) + response = self.user_misp_connector.publish(first, alert=False) self.assertEqual(response['errors'][1]['message'], 'You do not have permission to use this functionality.') # Default search, attribute with to_ids == True first.attributes[0].to_ids = True first = self.user_misp_connector.update_event(first) + self.admin_misp_connector.publish(first, alert=False) time.sleep(5) csv = self.user_misp_connector.search(return_format='csv', publish_timestamp=first.timestamp.timestamp()) - print('HERE!!!!') - print(self.admin_misp_connector.direct_call('jobs/index')) self.assertEqual(len(csv), 1) self.assertEqual(csv[0]['value'], first.attributes[0].value)