chg: [testlive_comprehensive] correct path to access sharing group releasability after edit

pull/779/head
iglocska 2021-07-27 13:47:14 +02:00 committed by Raphaël Vinot
parent 475525429a
commit 70d716622e
1 changed files with 2 additions and 0 deletions

View File

@ -2098,6 +2098,8 @@ class TestComprehensive(unittest.TestCase):
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) r = self.admin_misp_connector.update_sharing_group({"releasability": "Testing updated"}, sharing_group)
self.assertEqual(r.releasability, 'Testing updated') self.assertEqual(r.releasability, 'Testing updated')
r = self.admin_misp_connector.update_sharing_group({"releasability": "Testing updated"}, sharing_group)
self.assertEqual(r['SharingGroup']['releasability'], 'Testing updated')
# Test `sharing_group_exists` method # Test `sharing_group_exists` method
self.assertTrue(self.admin_misp_connector.sharing_group_exists(sharing_group)) self.assertTrue(self.admin_misp_connector.sharing_group_exists(sharing_group))