Skip to content

Commit ae2411f

Browse files
committed
Fix LocalIndicesCleanerTests with hidden index
The LocalIndicesCleanerTests#testHandlesWatcherHistory creates random watch history indices with a version of 1-20. When the version is 11, this matches the existing watch history template that has the index.hidden setting set to true and the check for indices in this test did not include hidden indices. The change here updates the indices options to include hidden indices. Closes elastic#53025
1 parent 266d0f3 commit ae2411f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

x-pack/plugin/monitoring/src/test/java/org/elasticsearch/xpack/monitoring/cleaner/local/LocalIndicesCleanerTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,11 @@ protected void assertIndicesCount(int count) throws Exception {
5757
//so when es core gets the request with the explicit index name, it throws an index not found exception as that index
5858
//doesn't exist anymore. If we ignore unavailable instead no error will be thrown.
5959
GetSettingsResponse getSettingsResponse = client().admin().indices().prepareGetSettings()
60-
.setIndicesOptions(IndicesOptions.fromOptions(true, true, true, true)).get();
60+
.setIndicesOptions(IndicesOptions.fromOptions(true, true, true, true, true)).get();
6161
assertThat(getSettingsResponse.getIndexToSettings().size(), equalTo(count));
6262
});
6363
}
6464

65-
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/53025")
6665
public void testHandlesWatcherHistory() throws Exception {
6766
internalCluster().startNode();
6867

0 commit comments

Comments
 (0)