Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelandis committed Oct 21, 2024
1 parent 1f7c189 commit 5e3f7a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1312,10 +1312,7 @@ public void testBuildUserPrivilegeResponse() {
)
.addRemoteClusterPermissions(
new RemoteClusterPermissions().addGroup(
new RemoteClusterPermissionGroup(
new String[] {"monitor_enrich"},
new String[] { "remote-1" }
)
new RemoteClusterPermissionGroup(new String[] { "monitor_enrich" }, new String[] { "remote-1" })
)
.addGroup(
new RemoteClusterPermissionGroup(
Expand Down Expand Up @@ -1385,12 +1382,12 @@ public void testBuildUserPrivilegeResponse() {
String[] allRemoteClusterPermissions = RemoteClusterPermissions.getSupportedRemoteClusterPermissions().toArray(new String[0]);

assertThat(response.getRemoteClusterPermissions().groups(), iterableWithSize(2));
//remote-1 has monitor_enrich permission
//remote-2 and remote-3 have all permissions
// remote-1 has monitor_enrich permission
// remote-2 and remote-3 have all permissions
assertThat(
response.getRemoteClusterPermissions().groups(),
containsInAnyOrder(
new RemoteClusterPermissionGroup(new String[] {"monitor_enrich"}, new String[] { "remote-1" }),
new RemoteClusterPermissionGroup(new String[] { "monitor_enrich" }, new String[] { "remote-1" }),
new RemoteClusterPermissionGroup(allRemoteClusterPermissions, new String[] { "remote-2", "remote-3" })
)
);
Expand Down

0 comments on commit 5e3f7a7

Please sign in to comment.