test: get upgrade status for all indices

Relates to #25311
This commit is contained in:
Martijn van Groningen 2017-06-27 16:56:39 +02:00
parent 0405ef5892
commit 11fcfaae68
No known key found for this signature in database
GPG Key ID: AB236F4FCF2AF12A
1 changed files with 1 additions and 1 deletions

View File

@ -477,7 +477,7 @@ public class FullClusterRestartIT extends ESRestTestCase {
// Post upgrade checks:
assertBusy(() -> {
Map<String, Object> rsp2 = toMap(client().performRequest("GET", "/" + index + "/_upgrade"));
Map<String, Object> rsp2 = toMap(client().performRequest("GET", "/_upgrade"));
logger.info("upgrade status response: {}", rsp2);
Map<?, ?> indexUpgradeStatus2 = (Map<?, ?>) XContentMapValues.extractValue("indices." + index, rsp2);
int totalBytes2 = (Integer) indexUpgradeStatus2.get("size_in_bytes");