Exemple #1
0
 def create_message_for_tests(self):
     """Create messages to test pagination functionality"""
     utils.create_message(self.ctxt,
                          action=message_field.Action.ATTACH_VOLUME)
     utils.create_message(
         self.ctxt, action=message_field.Action.SCHEDULE_ALLOCATE_VOLUME)
     utils.create_message(self.ctxt,
                          action=message_field.Action.COPY_VOLUME_TO_IMAGE)
     utils.create_message(self.ctxt,
                          action=message_field.Action.COPY_VOLUME_TO_IMAGE)
Exemple #2
0
 def create_message_for_tests(self):
     """Create messages to test pagination functionality"""
     utils.create_message(
         self.ctxt, event_id=defined_messages.UNKNOWN_ERROR)
     utils.create_message(
         self.ctxt, event_id=defined_messages.UNABLE_TO_ALLOCATE)
     utils.create_message(
         self.ctxt, event_id=defined_messages.ATTACH_READONLY_VOLUME)
     utils.create_message(
         self.ctxt, event_id=defined_messages.IMAGE_FROM_VOLUME_OVER_QUOTA)
Exemple #3
0
 def create_message_for_tests(self):
     """Create messages to test pagination functionality"""
     utils.create_message(
         self.ctxt, action=message_field.Action.ATTACH_VOLUME)
     utils.create_message(
         self.ctxt, action=message_field.Action.SCHEDULE_ALLOCATE_VOLUME)
     utils.create_message(
         self.ctxt,
         action=message_field.Action.COPY_VOLUME_TO_IMAGE)
     utils.create_message(
         self.ctxt,
         action=message_field.Action.COPY_VOLUME_TO_IMAGE)