From 7293bcdc1c14f774438b9e0679efb34f53f4ea9e Mon Sep 17 00:00:00 2001 From: Dimitrios Athanasiou Date: Fri, 12 May 2017 18:51:38 +0100 Subject: [PATCH] [TEST] Set data_description in MlTransportClientIT Original commit: elastic/x-pack-elasticsearch@0d392d26d895c49d9eaf223993bb793021b658a1 --- .../elasticsearch/xpack/ml/client/MLTransportClientIT.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qa/transport-client-tests/src/test/java/org/elasticsearch/xpack/ml/client/MLTransportClientIT.java b/qa/transport-client-tests/src/test/java/org/elasticsearch/xpack/ml/client/MLTransportClientIT.java index 9311b7f4d51..7ad2d189e83 100644 --- a/qa/transport-client-tests/src/test/java/org/elasticsearch/xpack/ml/client/MLTransportClientIT.java +++ b/qa/transport-client-tests/src/test/java/org/elasticsearch/xpack/ml/client/MLTransportClientIT.java @@ -6,17 +6,16 @@ package org.elasticsearch.xpack.ml.client; import org.elasticsearch.client.Client; -import org.elasticsearch.common.unit.TimeValue; import org.elasticsearch.xpack.XPackClient; import org.elasticsearch.xpack.ml.action.DeleteJobAction; import org.elasticsearch.xpack.ml.action.GetJobsAction; import org.elasticsearch.xpack.ml.action.PutJobAction; import org.elasticsearch.xpack.ml.job.config.AnalysisConfig; +import org.elasticsearch.xpack.ml.job.config.DataDescription; import org.elasticsearch.xpack.ml.job.config.Detector; import org.elasticsearch.xpack.ml.job.config.Job; import java.util.ArrayList; -import java.util.Date; import java.util.List; import static org.hamcrest.Matchers.equalTo; @@ -39,6 +38,8 @@ public class MLTransportClientIT extends ESXPackSmokeClientTestCase { AnalysisConfig.Builder analysisConfig = new AnalysisConfig.Builder(detectors); job.setAnalysisConfig(analysisConfig); + job.setDataDescription(new DataDescription.Builder()); + PutJobAction.Response putJobResponse = mlClient .putJob(new PutJobAction.Request(job)) .actionGet();