Ejemplo n.º 1
0
 def update_order(self, context, order_id, project_id, updated_meta):
     """Update Order."""
     task = resources.UpdateOrder()
     try:
         task.process(order_id, project_id, updated_meta)
     except Exception:
         LOG.exception(">>>>> Task exception seen, details reported "
                       "on the Orders entity.")
Ejemplo n.º 2
0
    def update_order(self, context, order_id, project_id, updated_meta,
                     request_id):
        """Update Order."""
        message = "Processing update order: order ID is '%(order)s' and " \
                  "request ID is '%(request)s'"

        LOG.info(message, {'order': order_id, 'request': request_id})
        return resources.UpdateOrder().process_and_suppress_exceptions(
            order_id, project_id, updated_meta)
Ejemplo n.º 3
0
    def setUp(self):
        super(WhenUpdatingOrder, self).setUp()

        self.updated_meta = 'updated'

        self.resource = resources.UpdateOrder()
Ejemplo n.º 4
0
 def update_order(self, context, order_id, project_id, updated_meta):
     """Update Order."""
     LOG.info(u._LI("Processing update order: order ID is '%s'"), order_id)
     return resources.UpdateOrder().process_and_suppress_exceptions(
         order_id, project_id, updated_meta)