Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
TungYuChiang committed Jan 11, 2025
1 parent 3184463 commit 43c2d20
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ public Tag[] tags() {
*/
@Override
public OperationType operationType() {
return OperationType.LISTINFO_TAG;
return OperationType.LIST_TAGS_INFO;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -99,18 +99,5 @@ public enum OperationType {
RENAME_VIEW,
LIST_VIEW,

// Tag event
CREATE_TAG,
ALTER_TAG,
LIST_TAG,
DELETE_TAG,
LISTINFO_TAG,
GET_TAG,
LIST_METADATA_OBJECTS_FOR_TAG,
LIST_TAGS_FOR_METADATA_OBJECT,
LIST_TAGS_INFO_FOR_METADATA_OBJECT,
ASSOCIATE_TAGS_FOR_METADATA_OBJECT,
GET_TAG_FOR_METADATA_OBJECT,

UNKNOWN,
}
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void testListTagInfoEvent() {
Tag[] result = dispatcher.listTagsInfo("metalake");
Event event = dummyEventListener.popPostEvent();
Assertions.assertEquals(ListTagInfoEvent.class, event.getClass());
Assertions.assertEquals(OperationType.LISTINFO_TAG, event.operationType());
Assertions.assertEquals(OperationType.LIST_TAGS_INFO, event.operationType());
Assertions.assertEquals(OperationStatus.SUCCESS, event.operationStatus());
Assertions.assertEquals(result, ((ListTagInfoEvent) event).tags());
}
Expand Down

0 comments on commit 43c2d20

Please sign in to comment.