Skip to content

Commit

Permalink
Verify schemas deletion process successfully, complement the related …
Browse files Browse the repository at this point in the history
…test (#516)
  • Loading branch information
purbon authored Aug 5, 2022
1 parent cc8f25c commit fe3a156
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,15 @@ public void schemasRbacCreation() throws IOException {
assertThat(names).contains(resource.getName());
assertThat(resource.getResourceType()).isEqualTo("Subject");
}
// remove the first and only schema and check if properly deleted.
topology.getProjects().get(0).setSchemas(Collections.emptyList());

accessControlManager.updatePlan(topology, plan);
plan.run();

resources = apiClient.lookupResourcesForSchemaRegistry(schema.getPrincipal(), RESOURCE_OWNER);
assertThat(resources).isEmpty();

}

@Test
Expand Down

0 comments on commit fe3a156

Please sign in to comment.