Skip to content

Commit 19a4e8a

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 69a9a64 commit 19a4e8a

File tree

1 file changed

+2
-7
lines changed
  • x-pack/plugin/security/qa/security-trial/src/javaRestTest/java/org/elasticsearch/xpack/security/role

1 file changed

+2
-7
lines changed

x-pack/plugin/security/qa/security-trial/src/javaRestTest/java/org/elasticsearch/xpack/security/role/PutRoleRestIT.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
import java.util.Map;
2020
import java.util.stream.Collectors;
2121

22+
import static org.elasticsearch.xpack.core.security.authz.privilege.IndexPrivilege.names;
2223
import static org.hamcrest.Matchers.contains;
2324
import static org.hamcrest.Matchers.containsString;
2425
import static org.hamcrest.Matchers.hasKey;
2526
import static org.hamcrest.Matchers.hasSize;
2627
import static org.hamcrest.Matchers.not;
27-
import static org.elasticsearch.xpack.core.security.authz.privilege.IndexPrivilege.names;
2828

2929
public class PutRoleRestIT extends SecurityOnTrialLicenseRestTestCase {
3030
public void testPutManyValidRoles() throws Exception {
@@ -330,15 +330,10 @@ public void testPutRoleWithInvalidManageRolesPrivilege() throws Exception {
330330
+ unknownPrivilege
331331
+ "]. a privilege must be either "
332332
+ "one of the predefined fixed indices privileges ["
333-
+ Strings.collectionToCommaDelimitedString(
334-
IndexPrivilege.names().stream()
335-
.sorted()
336-
.collect(Collectors.toList())
337-
)
333+
+ Strings.collectionToCommaDelimitedString(IndexPrivilege.names().stream().sorted().collect(Collectors.toList()))
338334
+ "] or a pattern over one of the available index"
339335
+ " actions";
340336

341-
342337
final ResponseException exception = expectThrows(ResponseException.class, () -> upsertRoles(String.format("""
343338
{
344339
"roles": {

0 commit comments

Comments
 (0)