def cleanup(self): resources = ["job_binary_internals", "job_binaries"] # TODO(boris-42): Delete only resources created by this context resource_manager.cleanup( names=["sahara.%s" % res for res in resources], users=self.context.get("users", []))
def cleanup(self): resources = ["job_executions", "jobs", "data_sources"] # TODO(boris-42): Delete only resources created by this context resource_manager.cleanup( names=["sahara.%s" % res for res in resources], users=self.context.get("users", []))
def cleanup(self): resources = ["job_executions", "jobs", "data_sources"] # TODO(boris-42): Delete only resources created by this context resource_manager.cleanup( names=["sahara.%s" % res for res in resources], users=self.context.get("users", []))
def cleanup(self): resources = ["job_binary_internals", "job_binaries"] # TODO(boris-42): Delete only resources created by this context resource_manager.cleanup( names=["sahara.%s" % res for res in resources], users=self.context.get("users", []))
def cleanup(self): resources = ["data_sources"] for swift_object in self.context["sahara"]["swift_objects"]: res_cleanup.SwiftObject(resource=swift_object[1]) res_cleanup.SwiftContainer( resource=self.context["sahara"]["container_name"]) # TODO(boris-42): Delete only resources created by this context resource_manager.cleanup( names=["sahara.%s" % res for res in resources], users=self.context.get("users", []))
def test_cleanup(self, mock_find, mock_seek_and_destroy): manager.cleanup(names=["a", "b"], admin_required=True, admin="admin", users=["user"]) mock_find.assert_called_once_with(["a", "b"], True) mock_seek_and_destroy.assert_has_calls([ mock.call(mock_find.return_value[0], "admin", ["user"]), mock.call().exterminate(), mock.call(mock_find.return_value[1], "admin", ["user"]), mock.call().exterminate() ])
def cleanup(self): for user, tenant_id in rutils.iterate_per_tenants( self.context["users"]): if self.context["tenants"][tenant_id].get("sahara", {}).get( "container", {}).get("name") is not None: for swift_object in ( self.context["tenants"][tenant_id]["sahara"] ["container"]["output_swift_objects"]): res_cleanup.SwiftObject(swift_object[1]) res_cleanup.SwiftContainer(self.context["tenants"][tenant_id].get( "sahara", {}).get("container", {}).get("name")) resources = ["data_sources"] resource_manager.cleanup( names=["sahara.%s" % res for res in resources], users=self.context.get("users", []))
def cleanup(self): for user, tenant_id in rutils.iterate_per_tenants( self.context["users"]): if self.context["tenants"][tenant_id].get( "sahara", {}).get("container", {}).get("name") is not None: for swift_object in ( self.context["tenants"][tenant_id]["sahara"]["container"][ "output_swift_objects"]): res_cleanup.SwiftObject(swift_object[1]) res_cleanup.SwiftContainer( self.context["tenants"][tenant_id].get( "sahara", {}).get("container", {}).get("name")) resources = ["data_sources"] resource_manager.cleanup( names=["sahara.%s" % res for res in resources], users=self.context.get("users", []))
def test_cleanup(self, mock_find_resource_managers, mock_seek_and_destroy): manager.cleanup(names=["a", "b"], admin_required=True, admin="admin", users=["user"]) mock_find_resource_managers.assert_called_once_with(["a", "b"], True) mock_seek_and_destroy.assert_has_calls([ mock.call(mock_find_resource_managers.return_value[0], "admin", ["user"]), mock.call().exterminate(), mock.call(mock_find_resource_managers.return_value[1], "admin", ["user"]), mock.call().exterminate() ])
def cleanup(self): resource_manager.cleanup(names=["nova.servers"], users=self.context.get("users", []))
def cleanup(self): resource_manager.cleanup(names=["murano.packages"], users=self.context.get("users", []))
def cleanup(self): resource_manager.cleanup(names=["murano.packages"], users=self.context.get("users", []))
def cleanup(self): # TODO(boris-42): Delete only resources created by this context resource_manager.cleanup(names=["designate.zones"], users=self.context.get("users", []))
def cleanup(self): resource_manager.cleanup(names=["nova.servers"], users=self.context.get("users", []))
def cleanup(self): resource_manager.cleanup(names=["heat.stacks"], users=self.context.get("users", []))
def cleanup(self): manager.cleanup(names=self.config, admin_required=False, users=self.context.get("users", []))
def cleanup(self): manager.cleanup(names=self.config, admin_required=True, admin=self.context["admin"], users=self.context.get("users", []))
def cleanup(self): resource_manager.cleanup(names=["heat.stacks"], users=self.context.get("users", []))
def cleanup(self): # TODO(boris-42): Delete only resources created by this context if self.context["need_sahara_image_cleanup"]: resource_manager.cleanup(names=["glance.images"], users=self.context.get("users", []))
def cleanup(self): # TODO(boris-42): Delete only resources created by this context if self.context["need_sahara_image_cleanup"]: resource_manager.cleanup(names=["glance.images"], users=self.context.get("users", []))
def cleanup(self): manager.cleanup(names=self.config, admin_required=False, users=self.context.get("users", []))
def cleanup(self): manager.cleanup(names=self.config, admin_required=True, admin=self.context["admin"], users=self.context.get("users", []))