Skip to content

Commit

Permalink
fix: delete sharing group after deleting the event
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Aug 5, 2022
1 parent 1f243dd commit e77da00
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/testlive_comprehensive.py
Original file line number Diff line number Diff line change
Expand Up @@ -2236,6 +2236,7 @@ def test_sharing_group(self):
self.assertEqual(sharing_group.sgorgs[0].org_id, self.test_org.id)
finally:
self.admin_misp_connector.delete_sharing_group(sharing_group.id)
self.assertFalse(self.admin_misp_connector.sharing_group_exists(sharing_group))

def test_sharing_group_search(self):
# Add sharing group
Expand Down Expand Up @@ -2279,8 +2280,10 @@ def test_sharing_group_search(self):
# We should not be missing any of the attributes
self.assertFalse(attribute_ids.difference(searched_attribute_ids))
finally:
self.admin_misp_connector.delete_sharing_group(sharing_group.id)
self.user_misp_connector.delete_event(event.id)
self.admin_misp_connector.delete_sharing_group(sharing_group.id)

self.assertFalse(self.admin_misp_connector.sharing_group_exists(sharing_group))

def test_feeds(self):
# Add
Expand Down

0 comments on commit e77da00

Please sign in to comment.