mirror of https://github.com/MISP/PyMISP
new: Method `update_sharing_group`
parent
76ce8d8c38
commit
b963c41716
|
@ -2096,6 +2096,9 @@ class TestComprehensive(unittest.TestCase):
|
||||||
self.assertTrue(self.admin_misp_connector.sharing_group_exists(sharing_group))
|
self.assertTrue(self.admin_misp_connector.sharing_group_exists(sharing_group))
|
||||||
self.assertTrue(self.admin_misp_connector.sharing_group_exists(sharing_group.id))
|
self.assertTrue(self.admin_misp_connector.sharing_group_exists(sharing_group.id))
|
||||||
self.assertTrue(self.admin_misp_connector.sharing_group_exists(sharing_group.uuid))
|
self.assertTrue(self.admin_misp_connector.sharing_group_exists(sharing_group.uuid))
|
||||||
|
r = self.admin_misp_connector.update_sharing_group({"releasability": "Testing updated"}, sharing_group)
|
||||||
|
self.assertEqual(sharing_group.releasability, 'Testing updated')
|
||||||
|
|
||||||
# add org
|
# add org
|
||||||
r = self.admin_misp_connector.add_org_to_sharing_group(sharing_group,
|
r = self.admin_misp_connector.add_org_to_sharing_group(sharing_group,
|
||||||
self.test_org, extend=True)
|
self.test_org, extend=True)
|
||||||
|
|
Loading…
Reference in New Issue