hdygxsj commented on code in PR #8239:
URL: https://github.com/apache/gravitino/pull/8239#discussion_r2292440312


##########
clients/client-java/src/test/java/org/apache/gravitino/client/integration/test/authorization/MetalakeAuthorizationIT.java:
##########
@@ -72,23 +76,27 @@ public void testCreateMetalake() {
         "Only service admins can create metalakes, current user can't create 
the metalake,  you should configure it in the server configuration first",
         ForbiddenException.class,
         () -> {
-          normalUserClient.createMetalake("testMetalake2", "", new 
HashMap<>());
+          normalUserClient.createMetalake(testMetalake2, "", new HashMap<>());
         });
-    serviceAdminClient.createMetalake("testMetalake2", "", new HashMap<>());
-    serviceAdminClient.createMetalake("testMetalake3", "", new HashMap<>());
+    serviceAdminClient.createMetalake(testMetalake2, "", new HashMap<>());
+    serviceAdminClient.createMetalake(testMetalake3, "", new HashMap<>());
   }
 
   @Test
   @Order(2)
   public void testListMetalake() {
+
+    assertMetalakeEquals(
+        new String[] {METALAKE, testMetalake2, testMetalake3}, 
serviceAdminClient.listMetalakes());
+    serviceAdminClient.disableMetalake(testMetalake2);
     assertMetalakeEquals(

Review Comment:
   fixed



-- 
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]

Reply via email to