Skip to content

Commit 9ca0ed6

Browse files
[ML][TEST] Clean up jobs in ModelPlotIT
Closes #30377
1 parent 59d6324 commit 9ca0ed6

File tree

1 file changed

+3
-0
lines changed
  • x-pack/qa/ml-native-tests/src/test/java/org/elasticsearch/xpack/ml/integration

1 file changed

+3
-0
lines changed

x-pack/qa/ml-native-tests/src/test/java/org/elasticsearch/xpack/ml/integration/ModelPlotsIT.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public void tearDownData() {
7373
public void testPartitionFieldWithoutTerms() throws Exception {
7474
Job.Builder job = jobWithPartitionUser("model-plots-it-test-partition-field-without-terms");
7575
job.setModelPlotConfig(new ModelPlotConfig());
76+
registerJob(job);
7677
putJob(job);
7778
String datafeedId = job.getId() + "-feed";
7879
DatafeedConfig datafeed = newDatafeed(datafeedId, job.getId());
@@ -90,6 +91,7 @@ public void testPartitionFieldWithoutTerms() throws Exception {
9091
public void testPartitionFieldWithTerms() throws Exception {
9192
Job.Builder job = jobWithPartitionUser("model-plots-it-test-partition-field-with-terms");
9293
job.setModelPlotConfig(new ModelPlotConfig(true, "user_2,user_3"));
94+
registerJob(job);
9395
putJob(job);
9496
String datafeedId = job.getId() + "-feed";
9597
DatafeedConfig datafeed = newDatafeed(datafeedId, job.getId());
@@ -107,6 +109,7 @@ public void testPartitionFieldWithTerms() throws Exception {
107109
public void testByFieldWithTerms() throws Exception {
108110
Job.Builder job = jobWithByUser("model-plots-it-test-by-field-with-terms");
109111
job.setModelPlotConfig(new ModelPlotConfig(true, "user_2,user_3"));
112+
registerJob(job);
110113
putJob(job);
111114
String datafeedId = job.getId() + "-feed";
112115
DatafeedConfig datafeed = newDatafeed(datafeedId, job.getId());

0 commit comments

Comments
 (0)