Skip to content

Commit 1b173ba

Browse files
[Test] Fix IndexAliasesTests#testRemoveIndex (elastic#122864) (elastic#122895)
Exclude `.security*` aliases when calling Get Aliases API with the admin superuser. Resolves elastic#122221 (cherry picked from commit ae7d196) # Conflicts: # muted-tests.yml
1 parent 29d6458 commit 1b173ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

muted-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,4 +318,4 @@ tests:
318318
# issue: "https://github.com/elastic/elasticsearch/..."
319319
# - class: "org.elasticsearch.xpack.esql.**"
320320
# method: "test {union_types.MultiIndexIpStringStatsInline *}"
321-
# issue: "https://github.com/elastic/elasticsearch/..."
321+
# issue: "https://github.com/elastic/elasticsearch/..."

x-pack/plugin/security/src/internalClusterTest/java/org/elasticsearch/xpack/security/authz/IndexAliasesTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ public void testRemoveIndex() {
881881
GetAliasesResponse getAliasesResponse = client.admin().indices().prepareGetAliases(TEST_REQUEST_TIMEOUT).setAliases("*").get();
882882
assertThat(getAliasesResponse.getAliases().size(), equalTo(0));
883883
assertAliases(
884-
indicesAdmin().prepareGetAliases(TEST_REQUEST_TIMEOUT).setAliases("*"),
884+
indicesAdmin().prepareGetAliases(TEST_REQUEST_TIMEOUT).setAliases("*", "-.security*"),
885885
"bogus_index_1",
886886
"bogus_alias_1",
887887
"bogus_alias_2"

0 commit comments

Comments
 (0)