Skip to content

Commit 2e29cdb

Browse files
committed
Fixing assertions
1 parent 625b80b commit 2e29cdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/authz/store/ReservedRolesStoreTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ public void testKibanaSystemRole() {
224224

225225
// Beats management index
226226
String index = ".management-beats";
227-
assertThat(kibanaRole.indices().allowedIndicesMatcher("indices:foo").test(index), is(true));
228-
assertThat(kibanaRole.indices().allowedIndicesMatcher("indices:bar").test(index), is(true));
227+
assertThat(kibanaRole.indices().allowedIndicesMatcher("indices:foo").test(index), is(false));
228+
assertThat(kibanaRole.indices().allowedIndicesMatcher("indices:bar").test(index), is(false));
229229
assertThat(kibanaRole.indices().allowedIndicesMatcher(DeleteIndexAction.NAME).test(index), is(false));
230230
assertThat(kibanaRole.indices().allowedIndicesMatcher(CreateIndexAction.NAME).test(index), is(true));
231231
assertThat(kibanaRole.indices().allowedIndicesMatcher(IndexAction.NAME).test(index), is(true));

0 commit comments

Comments
 (0)