added awaitfix annotations

Original commit: elastic/x-pack-elasticsearch@e490816285
This commit is contained in:
Martijn van Groningen 2016-11-24 13:58:03 +01:00
parent d8b6ecfb31
commit b8856eea54
1 changed files with 3 additions and 0 deletions

View File

@ -32,12 +32,14 @@ import static org.hamcrest.Matchers.equalTo;
public class ScheduledJobIT extends ESRestTestCase {
@AwaitsFix(bugUrl = "https://github.com/elastic/prelert-legacy/issues/381")
public void testStartJobScheduler_GivenMissingJob() {
ResponseException e = expectThrows(ResponseException.class,
() -> client().performRequest("post", PrelertPlugin.BASE_PATH + "schedulers/invalid-job/_start"));
assertThat(e.getResponse().getStatusLine().getStatusCode(), equalTo(404));
}
@AwaitsFix(bugUrl = "https://github.com/elastic/prelert-legacy/issues/381")
public void testStartJobScheduler_GivenNonScheduledJob() throws Exception {
createNonScheduledJob();
@ -72,6 +74,7 @@ public class ScheduledJobIT extends ESRestTestCase {
waitForSchedulerToBeStopped();
}
@AwaitsFix(bugUrl = "https://github.com/elastic/prelert-legacy/issues/381")
public void testStartJobScheduler_GivenRealtime() throws Exception {
createAirlineDataIndex();
createScheduledJob();