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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]