Skip to content

Commit 8fa278f

Browse files
[ML][TEST] Mute tests using rules (#31204)
This is in preparation of pushing the new rules design in the `ml-cpp` side. These tests will be switched on again after merging in the new rules implementation.
1 parent 6af8eb3 commit 8fa278f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import org.elasticsearch.xpack.core.ml.job.config.RuleConditionType;
2525
import org.elasticsearch.xpack.core.ml.job.results.AnomalyRecord;
2626
import org.junit.After;
27+
import org.junit.Ignore;
2728

2829
import java.io.IOException;
2930
import java.util.ArrayList;
@@ -51,6 +52,7 @@ public void cleanUpTest() throws Exception {
5152
cleanUp();
5253
}
5354

55+
@AwaitsFix(bugUrl = "this test is muted temporarily until the new rules implementation is merged in")
5456
public void testNumericalRule() throws Exception {
5557
RuleCondition condition1 = RuleCondition.createNumerical(
5658
RuleConditionType.NUMERICAL_ACTUAL,
@@ -152,6 +154,7 @@ public void testNumericalRule() throws Exception {
152154
assertThat(secondHaldRecordByFieldValues, contains("by_field_value_1", "by_field_value_2"));
153155
}
154156

157+
@AwaitsFix(bugUrl = "this test is muted temporarily until the new rules implementation is merged in")
155158
public void testCategoricalRule() throws Exception {
156159
MlFilter safeIps = new MlFilter("safe_ips", Arrays.asList("111.111.111.111", "222.222.222.222"));
157160
assertThat(putMlFilter(safeIps), is(true));

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import org.elasticsearch.xpack.core.ml.job.results.AnomalyRecord;
2121
import org.elasticsearch.xpack.core.ml.job.results.Bucket;
2222
import org.junit.After;
23+
import org.junit.Ignore;
2324

2425
import java.io.IOException;
2526
import java.time.Instant;
@@ -41,6 +42,7 @@ public void cleanUpTest() {
4142
cleanUp();
4243
}
4344

45+
@AwaitsFix(bugUrl = "this test is muted temporarily until the new rules implementation is merged in")
4446
public void testScheduledEvents() throws IOException {
4547

4648
TimeValue bucketSpan = TimeValue.timeValueMinutes(30);
@@ -152,6 +154,7 @@ public void testScheduledEvents() throws IOException {
152154
assertThat(records, is(empty()));
153155
}
154156

157+
@AwaitsFix(bugUrl = "this test is muted temporarily until the new rules implementation is merged in")
155158
public void testScheduledEventWithInterimResults() throws IOException {
156159
TimeValue bucketSpan = TimeValue.timeValueMinutes(30);
157160
Job.Builder job = createJob("scheduled-events-interim-results", bucketSpan);
@@ -193,6 +196,7 @@ public void testScheduledEventWithInterimResults() throws IOException {
193196
/**
194197
* Test an open job picks up changes to scheduled events/calendars
195198
*/
199+
@AwaitsFix(bugUrl = "this test is muted temporarily until the new rules implementation is merged in")
196200
public void testOnlineUpdate() throws Exception {
197201
TimeValue bucketSpan = TimeValue.timeValueMinutes(30);
198202
Job.Builder job = createJob("scheduled-events-online-update", bucketSpan);

0 commit comments

Comments
 (0)