def destroy(self, deploy_id=None): """Destroy the deployment. Release resources that are allocated for the deployment. The Deployment, related tasks and their results are also deleted. :param deploy_id: a UUID of the deployment """ api.destroy_deploy(deploy_id)
def destroy(self, deploy_id=None): """Destroy existing deployment. This will delete all containers, virtual machines, OpenStack instances or Fuel clusters created during Rally deployment creation. Also it will remove deployment record from Rally database. :param deploy_id: a UUID of the deployment """ api.destroy_deploy(deploy_id)
def destroy(self, deployment=None): """Destroy existing deployment. This will delete all containers, virtual machines, OpenStack instances or Fuel clusters created during Rally deployment creation. Also it will remove deployment record from Rally database. :param deployment: a UUID or name of the deployment """ api.destroy_deploy(deployment)
def test_destroy_deploy(self, mock_get, mock_update, mock_delete): mock_get.return_value = self.deployment mock_update.return_value = self.deployment api.destroy_deploy(self.deploy_uuid) mock_get.assert_called_once_with(self.deploy_uuid) mock_delete.assert_called_once_with(self.deploy_uuid)