fixed ClusterInfoCollectorTests#testClusterInfoCollector

Original commit: elastic/x-pack-elasticsearch@fa7accf6f5
This commit is contained in:
uboness 2015-09-26 14:50:22 +02:00
parent dd2f0dbce5
commit 794fd3805b
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ public class ClusterInfoCollectorTests extends AbstractCollectorTestCase {
assertThat(clusterInfoMarvelDoc.getVersion(), equalTo(client().admin().cluster().prepareNodesInfo().get().getNodes()[0].getVersion().toString()));
assertNotNull(clusterInfoMarvelDoc.getLicenses());
assertThat(clusterInfoMarvelDoc.getLicenses(), hasSize(1));
assertThat(clusterInfoMarvelDoc.getLicenses(), hasSize(isInternalCluster() && shieldEnabled ? 2 : 1));
assertNotNull(clusterInfoMarvelDoc.getClusterStats());
assertThat(clusterInfoMarvelDoc.getClusterStats().getNodesStats().getCounts().getTotal(), equalTo(internalCluster().getNodeNames().length));