test: updates DocsStats with totalSizeInBytes

Relates https://github.com/elastic/elasticsearch/pull/27117

Original commit: elastic/x-pack-elasticsearch@9bf177d90b
This commit is contained in:
Nhat 2017-10-28 12:54:59 -04:00
parent 940eabd5f3
commit ba29971323
3 changed files with 3 additions and 3 deletions

View File

@ -241,7 +241,7 @@ public class IndexStatsMonitoringDocTests extends BaseFilteredMonitoringDocTestC
long iota = 0L;
final CommonStats commonStats = new CommonStats(CommonStatsFlags.ALL);
commonStats.getDocs().add(new DocsStats(++iota, no));
commonStats.getDocs().add(new DocsStats(++iota, no, randomNonNegativeLong()));
commonStats.getFieldData().add(new FieldDataStats(++iota, ++iota, null));
commonStats.getMerge().add(no, no, no, ++iota, no, no, no, no, no, no);
commonStats.getQueryCache().add(new QueryCacheStats(++iota, ++iota, ++iota, ++iota, no));

View File

@ -153,7 +153,7 @@ public class IndicesStatsMonitoringDocTests extends BaseFilteredMonitoringDocTes
private CommonStats mockCommonStats() {
final CommonStats commonStats = new CommonStats(CommonStatsFlags.ALL);
commonStats.getDocs().add(new DocsStats(1L, -1L));
commonStats.getDocs().add(new DocsStats(1L, -1L, randomNonNegativeLong()));
commonStats.getStore().add(new StoreStats(2L));
final IndexingStats.Stats indexingStats = new IndexingStats.Stats(3L, 4L, -1L, -1L, -1L, -1L, -1L, -1L, true, 5L);

View File

@ -294,7 +294,7 @@ public class NodeStatsMonitoringDocTests extends BaseFilteredMonitoringDocTestCa
// Indices
final CommonStats indicesCommonStats = new CommonStats(CommonStatsFlags.ALL);
indicesCommonStats.getDocs().add(new DocsStats(++iota, no));
indicesCommonStats.getDocs().add(new DocsStats(++iota, no, randomNonNegativeLong()));
indicesCommonStats.getFieldData().add(new FieldDataStats(++iota, ++iota, null));
indicesCommonStats.getStore().add(new StoreStats(++iota));