fix: [test] Correct error messages for blocked event

pull/783/head
Jakub Onderka 2021-08-31 16:54:46 +02:00
parent 90e988cf48
commit 2e698d70ba
1 changed files with 2 additions and 2 deletions

View File

@ -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'