test: make sure the watch doesn't get throttled
Closes elastic/elasticsearch#640 Original commit: elastic/x-pack-elasticsearch@f1041f6929
This commit is contained in:
parent
fdae10ff74
commit
1e5d2cac11
|
@ -6,6 +6,7 @@
|
|||
package org.elasticsearch.watcher.test.integration;
|
||||
|
||||
import org.elasticsearch.action.search.SearchResponse;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.test.junit.annotations.TestLogging;
|
||||
import org.joda.time.DateTime;
|
||||
import org.elasticsearch.watcher.actions.logging.LoggingAction;
|
||||
|
@ -91,10 +92,11 @@ public class WatchMetadataTests extends AbstractWatcherIntegrationTestCase {
|
|||
|
||||
watcherClient().preparePutWatch("_name")
|
||||
.setSource(watchBuilder()
|
||||
.trigger(schedule(cron("0/5 * * * * ? *")))
|
||||
.trigger(schedule(cron("0 0 0 1 1 ? 2050")))
|
||||
.input(searchInput(WatcherTestUtils.newInputSearchRequest("my-index").source(searchSource().query(matchAllQuery()))))
|
||||
.condition(new AlwaysCondition())
|
||||
.addAction("testLogger", loggingAction)
|
||||
.defaultThrottlePeriod(TimeValue.timeValueSeconds(0))
|
||||
.metadata(metadata))
|
||||
.get();
|
||||
|
||||
|
|
Loading…
Reference in New Issue