Skip to content

Commit

Permalink
chg: test for event UUID in attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Sep 21, 2018
1 parent e9d82ea commit 532157f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/testlive_comprehensive.py
Expand Up @@ -560,11 +560,8 @@ def test_simple_event(self):
self.assertEqual(len(events[0].attributes), 2)

# include_event_uuid
events = self.user_misp_connector.search(eventid=second.id, include_event_uuid=True, pythonify=True)
# FIXME: doesn't seem to return the event UUID.
# print(events[0].attributes[0].to_json())
# print(second.uuid)
# self.assertEqual(events[0].attributes[0].event_uuid, second.uuid)
attributes = self.user_misp_connector.search(controller='attributes', eventid=second.id, include_event_uuid=True, pythonify=True)
self.assertEqual(attributes[0].event_uuid, second.uuid)

# event_timestamp
second.add_attribute('ip-src', '8.8.8.9')
Expand Down

0 comments on commit 532157f

Please sign in to comment.