added a waitForGreen condition for the unmapped tests on missing agg
This commit is contained in:
parent
8fda8aaabf
commit
28adbd475d
|
@ -91,6 +91,8 @@ public class MissingTests extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void unmapped() throws Exception {
|
public void unmapped() throws Exception {
|
||||||
|
client().admin().cluster().prepareHealth("unmapped_idx").setWaitForYellowStatus().execute().actionGet();
|
||||||
|
|
||||||
SearchResponse response = client().prepareSearch("unmapped_idx")
|
SearchResponse response = client().prepareSearch("unmapped_idx")
|
||||||
.addAggregation(missing("missing_tag").field("tag"))
|
.addAggregation(missing("missing_tag").field("tag"))
|
||||||
.execute().actionGet();
|
.execute().actionGet();
|
||||||
|
@ -105,6 +107,8 @@ public class MissingTests extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void partiallyUnmapped() throws Exception {
|
public void partiallyUnmapped() throws Exception {
|
||||||
|
client().admin().cluster().prepareHealth("unmapped_idx").setWaitForYellowStatus().execute().actionGet();
|
||||||
|
|
||||||
SearchResponse response = client().prepareSearch("idx", "unmapped_idx")
|
SearchResponse response = client().prepareSearch("idx", "unmapped_idx")
|
||||||
.addAggregation(missing("missing_tag").field("tag"))
|
.addAggregation(missing("missing_tag").field("tag"))
|
||||||
.execute().actionGet();
|
.execute().actionGet();
|
||||||
|
|
Loading…
Reference in New Issue