[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.
This commit is contained in:
Dimitris Athanasiou 2018-06-12 11:36:26 +01:00 committed by GitHub
parent b2e48c9fa7
commit 5f84e18c72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,7 @@ import org.elasticsearch.xpack.core.ml.job.config.RuleCondition;
import org.elasticsearch.xpack.core.ml.job.config.RuleConditionType; import org.elasticsearch.xpack.core.ml.job.config.RuleConditionType;
import org.elasticsearch.xpack.core.ml.job.results.AnomalyRecord; import org.elasticsearch.xpack.core.ml.job.results.AnomalyRecord;
import org.junit.After; import org.junit.After;
import org.junit.Ignore;
import java.io.IOException; import java.io.IOException;
import java.util.ArrayList; import java.util.ArrayList;
@ -51,6 +52,7 @@ public class DetectionRulesIT extends MlNativeAutodetectIntegTestCase {
cleanUp(); cleanUp();
} }
@AwaitsFix(bugUrl = "this test is muted temporarily until the new rules implementation is merged in")
public void testNumericalRule() throws Exception { public void testNumericalRule() throws Exception {
RuleCondition condition1 = RuleCondition.createNumerical( RuleCondition condition1 = RuleCondition.createNumerical(
RuleConditionType.NUMERICAL_ACTUAL, RuleConditionType.NUMERICAL_ACTUAL,
@ -152,6 +154,7 @@ public class DetectionRulesIT extends MlNativeAutodetectIntegTestCase {
assertThat(secondHaldRecordByFieldValues, contains("by_field_value_1", "by_field_value_2")); assertThat(secondHaldRecordByFieldValues, contains("by_field_value_1", "by_field_value_2"));
} }
@AwaitsFix(bugUrl = "this test is muted temporarily until the new rules implementation is merged in")
public void testCategoricalRule() throws Exception { public void testCategoricalRule() throws Exception {
MlFilter safeIps = new MlFilter("safe_ips", Arrays.asList("111.111.111.111", "222.222.222.222")); MlFilter safeIps = new MlFilter("safe_ips", Arrays.asList("111.111.111.111", "222.222.222.222"));
assertThat(putMlFilter(safeIps), is(true)); assertThat(putMlFilter(safeIps), is(true));

View File

@ -20,6 +20,7 @@ import org.elasticsearch.xpack.core.ml.job.config.Job;
import org.elasticsearch.xpack.core.ml.job.results.AnomalyRecord; import org.elasticsearch.xpack.core.ml.job.results.AnomalyRecord;
import org.elasticsearch.xpack.core.ml.job.results.Bucket; import org.elasticsearch.xpack.core.ml.job.results.Bucket;
import org.junit.After; import org.junit.After;
import org.junit.Ignore;
import java.io.IOException; import java.io.IOException;
import java.time.Instant; import java.time.Instant;
@ -41,6 +42,7 @@ public class ScheduledEventsIT extends MlNativeAutodetectIntegTestCase {
cleanUp(); cleanUp();
} }
@AwaitsFix(bugUrl = "this test is muted temporarily until the new rules implementation is merged in")
public void testScheduledEvents() throws IOException { public void testScheduledEvents() throws IOException {
TimeValue bucketSpan = TimeValue.timeValueMinutes(30); TimeValue bucketSpan = TimeValue.timeValueMinutes(30);
@ -152,6 +154,7 @@ public class ScheduledEventsIT extends MlNativeAutodetectIntegTestCase {
assertThat(records, is(empty())); assertThat(records, is(empty()));
} }
@AwaitsFix(bugUrl = "this test is muted temporarily until the new rules implementation is merged in")
public void testScheduledEventWithInterimResults() throws IOException { public void testScheduledEventWithInterimResults() throws IOException {
TimeValue bucketSpan = TimeValue.timeValueMinutes(30); TimeValue bucketSpan = TimeValue.timeValueMinutes(30);
Job.Builder job = createJob("scheduled-events-interim-results", bucketSpan); Job.Builder job = createJob("scheduled-events-interim-results", bucketSpan);
@ -193,6 +196,7 @@ public class ScheduledEventsIT extends MlNativeAutodetectIntegTestCase {
/** /**
* Test an open job picks up changes to scheduled events/calendars * Test an open job picks up changes to scheduled events/calendars
*/ */
@AwaitsFix(bugUrl = "this test is muted temporarily until the new rules implementation is merged in")
public void testOnlineUpdate() throws Exception { public void testOnlineUpdate() throws Exception {
TimeValue bucketSpan = TimeValue.timeValueMinutes(30); TimeValue bucketSpan = TimeValue.timeValueMinutes(30);
Job.Builder job = createJob("scheduled-events-online-update", bucketSpan); Job.Builder job = createJob("scheduled-events-online-update", bucketSpan);