Remove handle_delete() for keystone group

Change-Id: I77480b2383a188e9739e28517f72f587936ebaa8
changes/01/420601/1
huangtianhua 6 years ago
parent 379639ec93
commit f0f58a8685

@ -120,11 +120,6 @@ class KeystoneGroup(resource.Resource,
self.update_assignment(prop_diff=prop_diff,
group_id=self.resource_id)
def handle_delete(self):
if self.resource_id is not None:
with self.client_plugin().ignore_not_found:
self.client().groups.delete(self.resource_id)
def parse_live_resource_data(self, resource_properties, resource_data):
return {
self.NAME: resource_data.get(self.NAME),

@ -285,7 +285,7 @@ class KeystoneGroupTest(common.HeatTestCase):
self.test_group.resource_id = '477e8273-60a7-4c41-b683-fdb0bc7cd151'
self.groups.delete.return_value = None
self.assertIsNone(self.test_group.handle_delete())
self.test_group.handle_delete()
self.groups.delete.assert_called_once_with(
self.test_group.resource_id
)

Loading…
Cancel
Save