Skip to content

Commit 64eb116

Browse files
committed
Add read_failures to default REST test role, in the other place
1 parent 487d17a commit 64eb116

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

x-pack/plugin/core/src/test/java/org/elasticsearch/test/SecuritySettingsSourceField.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public final class SecuritySettingsSourceField {
2323
indices:
2424
- names: [ "*" ]
2525
allow_restricted_indices: true
26-
privileges: [ "ALL" ]
26+
privileges: [ "ALL", "read_failures" ]
2727
run_as: [ "*" ]
2828
applications:
2929
- application: "*"
@@ -35,7 +35,11 @@ public final class SecuritySettingsSourceField {
3535
"_es_test_root",
3636
new String[] { "ALL" },
3737
new RoleDescriptor.IndicesPrivileges[] {
38-
RoleDescriptor.IndicesPrivileges.builder().indices("*").privileges("ALL").allowRestrictedIndices(true).build() },
38+
RoleDescriptor.IndicesPrivileges.builder()
39+
.indices("*")
40+
.privileges("ALL", "read_failures")
41+
.allowRestrictedIndices(true)
42+
.build() },
3943
new RoleDescriptor.ApplicationResourcePrivileges[] {
4044
RoleDescriptor.ApplicationResourcePrivileges.builder().application("*").privileges("*").resources("*").build() },
4145
null,

0 commit comments

Comments
 (0)