mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-30 02:13:33 -04:00
Fix TimeSeriesLifecycleActionsIT
This commit is contained in:
parent
48cbca1de4
commit
50186b2580
1 changed files with 8 additions and 12 deletions
|
@ -1697,11 +1697,8 @@ public class TimeSeriesLifecycleActionsIT extends ESRestTestCase {
|
|||
try (InputStream is = getSnapshotsResponse.getEntity().getContent()) {
|
||||
snapshotsResponseMap = XContentHelper.convertToMap(XContentType.JSON.xContent(), is, true);
|
||||
}
|
||||
ArrayList<Object> responses = (ArrayList<Object>) snapshotsResponseMap.get("responses");
|
||||
for (Object response : responses) {
|
||||
Map<String, Object> responseAsMap = (Map<String, Object>) response;
|
||||
if (responseAsMap.get("snapshots") != null) {
|
||||
ArrayList<Object> snapshots = (ArrayList<Object>) responseAsMap.get("snapshots");
|
||||
if (snapshotsResponseMap.get("snapshots") != null) {
|
||||
ArrayList<Object> snapshots = (ArrayList<Object>) snapshotsResponseMap.get("snapshots");
|
||||
for (Object snapshot : snapshots) {
|
||||
Map<String, Object> snapshotInfoMap = (Map<String, Object>) snapshot;
|
||||
if (snapshotInfoMap.get("snapshot").equals(snapshotName[0]) &&
|
||||
|
@ -1711,7 +1708,6 @@ public class TimeSeriesLifecycleActionsIT extends ESRestTestCase {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
} catch (IOException e) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue