FourFriends commented on code in PR #6690:
URL: https://github.com/apache/gravitino/pull/6690#discussion_r2002342545


##########
clients/client-java/src/test/java/org/apache/gravitino/client/integration/test/authorization/AccessControlIT.java:
##########
@@ -578,4 +578,53 @@ private static void assertSecurableObjects(
       }
     }
   }
+
+  @Test
+  void testRevokeRolePermissions() {
+    // remove privilege_names and privilege_conditions check when delete 
secruable objects of a
+    // role.
+    String roleName = "role#124";
+    Map<String, String> properties = Maps.newHashMap();
+    properties.put("k1", "v1");
+    metalake.createRole(roleName, properties, Lists.newArrayList());
+
+    MetadataObject metadataObject =
+        MetadataObjects.of("fileset_catalog", "fileset_schema", 
MetadataObject.Type.SCHEMA);
+
+    // grant a metadata(schema) privilege to a role
+    // multiple privileges (CreateFileset、ReadFileset、WriteFileset) are 
granted to the role here to
+    // better detect errors

Review Comment:
   done.



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