From e9d6f0cc9f1bd8510a5e00ba0f9e3c19b40879ef Mon Sep 17 00:00:00 2001 From: pancx Date: Wed, 18 Dec 2024 18:24:48 +0800 Subject: [PATCH] [#5831] fix(CLI): Fix CLi gives unexpected output when setting a tag fix failed test case. --- .../src/test/java/org/apache/gravitino/cli/TestTagCommands.java | 1 + 1 file changed, 1 insertion(+) diff --git a/clients/cli/src/test/java/org/apache/gravitino/cli/TestTagCommands.java b/clients/cli/src/test/java/org/apache/gravitino/cli/TestTagCommands.java index 58beb02a8d8..b68d6c81050 100644 --- a/clients/cli/src/test/java/org/apache/gravitino/cli/TestTagCommands.java +++ b/clients/cli/src/test/java/org/apache/gravitino/cli/TestTagCommands.java @@ -315,6 +315,7 @@ void testDeleteAllTagCommand() { when(mockCommandLine.hasOption(GravitinoOptions.TAG)).thenReturn(false); when(mockCommandLine.getOptionValue(GravitinoOptions.METALAKE)).thenReturn("metalake_demo"); when(mockCommandLine.hasOption(GravitinoOptions.FORCE)).thenReturn(true); + when(mockCommandLine.hasOption(GravitinoOptions.NAME)).thenReturn(true); when(mockCommandLine.getOptionValue(GravitinoOptions.NAME)).thenReturn("catalog.schema.table"); GravitinoCommandLine commandLine = spy(