[ML][TEST] Clean up jobs in ModelPlotIT
Closes
@@ -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());
