jerqi commented on code in PR #8222:
URL: https://github.com/apache/gravitino/pull/8222#discussion_r2290993662
##########
authorizations/authorization-ranger/src/test/java/org/apache/gravitino/authorization/ranger/integration/test/RangerHiveE2EIT.java:
##########
@@ -234,6 +235,15 @@ public void createCatalog() {
serviceList = RangerITEnv.rangerClient.findServices(Maps.newHashMap());
Assertions.assertEquals(expectServiceCount, serviceList.size());
metalake.dropCatalog("test", true);
+ } catch (RuntimeException e) {
Review Comment:
try {
List<RangerService> serviceList =
RangerITEnv.rangerClient.findServices(Maps.newHashMap());
int expectServiceCount = serviceList.size() + 1;
Catalog catalogTest =
metalake.createCatalog(
"test", Catalog.Type.RELATIONAL, provider, "comment",
uuidProperties);
Map<String, String> newProperties = catalogTest.properties();
Assertions.assertTrue(newProperties.containsKey("authorization.ranger.service.name"));
serviceList = RangerITEnv.rangerClient.findServices(Maps.newHashMap());
Assertions.assertEquals(expectServiceCount, serviceList.size());
Assertions.assertThrows(
RuntimeException.class,
() -> {
metalake.dropCatalog("test", true);
});
}
--
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]