From 2e698d70ba00ecc74060288a31105c6ef78f7f05 Mon Sep 17 00:00:00 2001 From: Jakub Onderka Date: Tue, 31 Aug 2021 16:54:46 +0200 Subject: [PATCH] fix: [test] Correct error messages for blocked event --- tests/testlive_comprehensive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testlive_comprehensive.py b/tests/testlive_comprehensive.py index 0a605a2..4cbc1fa 100644 --- a/tests/testlive_comprehensive.py +++ b/tests/testlive_comprehensive.py @@ -2709,7 +2709,7 @@ class TestComprehensive(unittest.TestCase): else: raise Exception('Unable to find UUID in Events blocklist') first = self.user_misp_connector.add_event(first, pythonify=True) - self.assertEqual(first['errors'][1]['message'], 'Could not add Event', first) + self.assertEqual(first['errors'][1]['message'], 'Event blocked by event blocklist.', first) ble.comment = 'This is a test' ble.event_info = 'foo' ble.event_orgc = 'bar' @@ -2729,7 +2729,7 @@ class TestComprehensive(unittest.TestCase): else: raise Exception('Unable to find UUID in Orgs blocklist') first = self.user_misp_connector.add_event(first, pythonify=True) - self.assertEqual(first['errors'][1]['message'], 'Could not add Event', first) + self.assertEqual(first['errors'][1]['message'], 'Event blocked by organisation blocklist.', first) blo.comment = 'This is a test' blo.org_name = 'bar'