Skip to content

Commit

Permalink
[PLAT-13956]: Fix RBAC test failure
Browse files Browse the repository at this point in the history
Summary: Fixes rbac test failure introduced by D36651

Test Plan: Jenkins pipeline

Reviewers: dkumar

Reviewed By: dkumar

Subscribers: yugaware

Differential Revision: https://phorge.dev.yugabyte.com/D36917
  • Loading branch information
vipul-yb committed Jul 30, 2024
1 parent 57e930e commit e166cee
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ public class XClusterConfigControllerTest extends FakeDBApplication {
private ResourceDefinition rd1;
private ResourceDefinition rd2;

Permission permission1 = new Permission(ResourceType.UNIVERSE, Action.BACKUP_RESTORE);
Permission permission2 = new Permission(ResourceType.UNIVERSE, Action.UPDATE);
Permission permission1 = new Permission(ResourceType.UNIVERSE, Action.XCLUSTER);

@Before
public void setUp() {
Expand All @@ -133,7 +132,7 @@ public void setUp() {
"FakeRole1",
"testDescription",
RoleType.Custom,
new HashSet<>(Arrays.asList(permission1, permission2)));
new HashSet<>(Arrays.asList(permission1)));
rd1 =
ResourceDefinition.builder()
.resourceType(ResourceType.OTHER)
Expand Down

0 comments on commit e166cee

Please sign in to comment.