예제 #1
0
파일: server.py 프로젝트: zzh8002/barbican
 def process_type_order(self, context, order_id, project_id, request_id):
     """Process TypeOrder."""
     message = "Processing type order: order ID is '%(order)s' and " \
               "request ID is '%(request)s'"
     LOG.info(message, {'order': order_id, 'request': request_id})
     return resources.BeginTypeOrder().process_and_suppress_exceptions(
         order_id, project_id)
예제 #2
0
 def process_type_order(self, context, order_id, project_id):
     """Process TypeOrder."""
     LOG.debug('TypeOrder id is {0}'.format(order_id))
     task = resources.BeginTypeOrder()
     try:
         task.process(order_id, project_id)
     except Exception:
         LOG.exception(">>>>> Task exception seen, details reported "
                       "on the Orders entity.")
예제 #3
0
    def setUp(self):
        super(WhenBeginningAsymmetricTypeOrder, self).setUp()

        self.order.type = "asymmetric"

        self.resource = resources.BeginTypeOrder()
예제 #4
0
    def setUp(self):
        super(WhenBeginningCertificateTypeOrder, self).setUp()

        self.order.type = models.OrderType.CERTIFICATE
        self.resource = resources.BeginTypeOrder()
예제 #5
0
    def setUp(self):
        super(WhenBeginningKeyTypeOrder, self).setUp()

        self.resource = resources.BeginTypeOrder()
예제 #6
0
 def process_type_order(self, context, order_id, project_id):
     """Process TypeOrder."""
     LOG.info(u._LI("Processing type order: order ID is '%s'"), order_id)
     return resources.BeginTypeOrder().process_and_suppress_exceptions(
         order_id, project_id)