You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "yunchipang (via GitHub)" <gi...@apache.org> on 2025/06/25 01:59:26 UTC

[I] [Improvement] Add testListMetadataObjectsForTagFailureEvent to TestTagEvent [gravitino]

yunchipang opened a new issue, #7466:
URL: https://github.com/apache/gravitino/issues/7466

   ### What would you like to be improved?
   
   It would be nice to add a `testListMetadataObjectsForTagFailureEvent` capturing the failure case for `ListMetadataObjectsForTag`. Currently only `testListMetadataObjectsForTag` is available.
   https://github.com/apache/gravitino/blob/f99d3c9815d682a9ed8a2aacc552d1d6002fd589/core/src/test/java/org/apache/gravitino/listener/api/event/TestTagEvent.java#L192-L207
   
   ### How should we improve?
   
   add a unit test `testListMetadataObjectsForTagFailureEvent`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Add testListMetadataObjectsForTagFailureEvent to TestTagEvent [gravitino]

Posted by "vipinpanwar (via GitHub)" <gi...@apache.org>.
vipinpanwar commented on issue #7466:
URL: https://github.com/apache/gravitino/issues/7466#issuecomment-3016758650

   Hey @yunchipang ,
    I would like to pick this one, I have go through the test cases and I think the below code snippet will works, 
   If any suggesgtion please let me know.
   `@Test
   void testListMetadataObjectsForTagFailureEvent() {
       Assertions.assertThrowsExactly(
           GravitinoRuntimeException.class,
           () -> failureDispatcher.listMetadataObjectsForTag("metalake", tag.name())
       );
   
       Event event = dummyEventListener.popPostEvent();
       NameIdentifier identifier = NameIdentifierUtil.ofTag("metalake", tag.name());
       Assertions.assertEquals(identifier.toString(), event.identifier().toString());
       Assertions.assertEquals(ListMetadataObjectsForTagFailureEvent.class, event.getClass());
       Assertions.assertEquals(OperationType.LIST_METADATA_OBJECTS_FOR_TAG, event.operationType());
       Assertions.assertEquals(OperationStatus.FAILURE, event.operationStatus());
   }
   `
   Thanks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Add testListMetadataObjectsForTagFailureEvent to TestTagEvent [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 closed issue #7466: [Improvement] Add testListMetadataObjectsForTagFailureEvent to TestTagEvent
URL: https://github.com/apache/gravitino/issues/7466


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Add testListMetadataObjectsForTagFailureEvent to TestTagEvent [gravitino]

Posted by "yunchipang (via GitHub)" <gi...@apache.org>.
yunchipang commented on issue #7466:
URL: https://github.com/apache/gravitino/issues/7466#issuecomment-3016998188

   @vipinpanwar thanks for the comment! I have already opened a PR for this (linked above), feel free to leave a review on that. If you're interested in contributing to other issues, I can ping you when I see other good first issues!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Add testListMetadataObjectsForTagFailureEvent to TestTagEvent [gravitino]

Posted by "vipinpanwar (via GitHub)" <gi...@apache.org>.
vipinpanwar commented on issue #7466:
URL: https://github.com/apache/gravitino/issues/7466#issuecomment-3017730822

   @yunchipang Thanks for the reply.
   
   Yes, Please ping me if there is any good first issues.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org