Skip to content

Commit

Permalink
Add assert for allowed clusters check
Browse files Browse the repository at this point in the history
  • Loading branch information
Demogorgon314 committed May 27, 2024
1 parent 44d0fc1 commit 0256d3b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,8 @@ public void testAllowedClustersAtNamespaceLevelShouldBeIncludedInAllowedClusters
fail();
} catch (PulsarAdminException e) {
assertEquals(e.getStatusCode(), 403);
assertEquals(e.getMessage(),
"Cluster [r3] is not in the list of allowed clusters list for tenant [my-tenant]");
}
// 3. Clean up
admin.namespaces().deleteNamespace(namespace, true);
Expand Down

0 comments on commit 0256d3b

Please sign in to comment.