test: added not null assertion

Relates to #25311
This commit is contained in:
Martijn van Groningen 2017-06-29 13:54:52 +02:00
parent a2b4080fba
commit 7f2bcf1f97
No known key found for this signature in database
GPG Key ID: AB236F4FCF2AF12A

View File

@ -480,6 +480,7 @@ public class FullClusterRestartIT extends ESRestTestCase {
Map<String, Object> rsp2 = toMap(client().performRequest("GET", "/_upgrade"));
logger.info("upgrade status response: {}", rsp2);
Map<?, ?> indexUpgradeStatus2 = (Map<?, ?>) XContentMapValues.extractValue("indices." + index, rsp2);
assertNotNull(indexUpgradeStatus2);
int totalBytes2 = (Integer) indexUpgradeStatus2.get("size_in_bytes");
assertThat(totalBytes2, greaterThan(0));
int toUpgradeBytes2 = (Integer) indexUpgradeStatus2.get("size_to_upgrade_in_bytes");