[ML][TEST] Clean up jobs in ModelPlotIT

Closes #30377
This commit is contained in:
Dimitris Athanasiou 2018-05-04 10:45:04 +01:00
parent dbd857341f
commit 2751790aea
1 changed files with 3 additions and 0 deletions

View File

@ -73,6 +73,7 @@ public class ModelPlotsIT extends MlNativeAutodetectIntegTestCase {
public void testPartitionFieldWithoutTerms() throws Exception {
Job.Builder job = jobWithPartitionUser("model-plots-it-test-partition-field-without-terms");
job.setModelPlotConfig(new ModelPlotConfig());
registerJob(job);
putJob(job);
String datafeedId = job.getId() + "-feed";
DatafeedConfig datafeed = newDatafeed(datafeedId, job.getId());
@ -90,6 +91,7 @@ public class ModelPlotsIT extends MlNativeAutodetectIntegTestCase {
public void testPartitionFieldWithTerms() throws Exception {
Job.Builder job = jobWithPartitionUser("model-plots-it-test-partition-field-with-terms");
job.setModelPlotConfig(new ModelPlotConfig(true, "user_2,user_3"));
registerJob(job);
putJob(job);
String datafeedId = job.getId() + "-feed";
DatafeedConfig datafeed = newDatafeed(datafeedId, job.getId());
@ -107,6 +109,7 @@ public class ModelPlotsIT extends MlNativeAutodetectIntegTestCase {
public void testByFieldWithTerms() throws Exception {
Job.Builder job = jobWithByUser("model-plots-it-test-by-field-with-terms");
job.setModelPlotConfig(new ModelPlotConfig(true, "user_2,user_3"));
registerJob(job);
putJob(job);
String datafeedId = job.getId() + "-feed";
DatafeedConfig datafeed = newDatafeed(datafeedId, job.getId());