Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignore tests that may be flaky #596

Merged
merged 1 commit into from
Sep 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import org.apache.hc.core5.http.io.entity.StringEntity;
import org.apache.hc.core5.http.message.BasicHeader;
import org.junit.Assert;
import org.junit.Ignore;
import org.opensearch.client.Request;
import org.opensearch.client.Response;
import org.opensearch.client.ResponseException;
Expand Down Expand Up @@ -588,6 +589,7 @@ public void testGetAlerts_byDetectorType_multipleDetectors_success() throws IOEx
}


@Ignore
public void testAlertHistoryRollover_maxAge() throws IOException, InterruptedException {
updateClusterSetting(ALERT_HISTORY_ROLLOVER_PERIOD.getKey(), "1s");
updateClusterSetting(ALERT_HISTORY_MAX_DOCS.getKey(), "1000");
Expand Down Expand Up @@ -658,6 +660,7 @@ public void testAlertHistoryRollover_maxAge() throws IOException, InterruptedExc
restoreAlertsFindingsIMSettings();
}

@Ignore
public void testAlertHistoryRollover_maxAge_low_retention() throws IOException, InterruptedException {
updateClusterSetting(ALERT_HISTORY_ROLLOVER_PERIOD.getKey(), "1s");
updateClusterSetting(ALERT_HISTORY_MAX_DOCS.getKey(), "1000");
Expand Down Expand Up @@ -738,6 +741,7 @@ public void testAlertHistoryRollover_maxAge_low_retention() throws IOException,
restoreAlertsFindingsIMSettings();
}

@Ignore
public void testAlertHistoryRollover_maxDocs() throws IOException, InterruptedException {
updateClusterSetting(ALERT_HISTORY_ROLLOVER_PERIOD.getKey(), "1s");
updateClusterSetting(ALERT_HISTORY_MAX_DOCS.getKey(), "1");
Expand Down Expand Up @@ -821,6 +825,7 @@ public void testAlertHistoryRollover_maxDocs() throws IOException, InterruptedEx
restoreAlertsFindingsIMSettings();
}

@Ignore
public void testGetAlertsFromAllIndices() throws IOException, InterruptedException {
updateClusterSetting(ALERT_HISTORY_ROLLOVER_PERIOD.getKey(), "1s");
updateClusterSetting(ALERT_HISTORY_MAX_DOCS.getKey(), "1");
Expand Down