Skip to content

Commit

Permalink
[apache#5336]feat(auth-ranger): Remove MANAGED_BY_GRAVITINO limit and…
Browse files Browse the repository at this point in the history
… compatible for existing ranger policy
  • Loading branch information
theoryxu committed Nov 26, 2024
1 parent c773e5b commit 03e2c39
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -896,9 +896,12 @@ void metadataObjectChangeRemoveMetalakeOrCatalog(String funcName, MetadataObject

Assertions.assertEquals(
6, rangerClient.getPoliciesInService(RangerITEnv.RANGER_HIVE_REPO_NAME).size());
rangerClient.getPoliciesInService(RangerITEnv.RANGER_HIVE_REPO_NAME).forEach(policy -> {
Assertions.assertFalse(rangerHelper.hasGravitinoManagedPolicyItem(policy));
});
rangerClient
.getPoliciesInService(RangerITEnv.RANGER_HIVE_REPO_NAME)
.forEach(
policy -> {
Assertions.assertFalse(rangerHelper.hasGravitinoManagedPolicyItem(policy));
});
}

@Test
Expand Down

0 comments on commit 03e2c39

Please sign in to comment.