From 96d8ffc409736e0b9319fdb238560e0a355ab1ec Mon Sep 17 00:00:00 2001 From: Jake Landis Date: Thu, 14 May 2020 15:52:24 -0500 Subject: [PATCH] [7.7] Reduce chance for test failure due to schedule (#56633) (#56693) If CI is running tests at exactly 0 or 5 minutes past the hour the ack-watch docs tests may fail with a 409 error if the ack test happens to run at the exact time that the schedule watch is running. This commit changes the public documentation (and the test) for the ack to a feb 29th at noon schedule. Test doc or tests do not really care about the schedule date and this is chosen since it is a valid date, but one that is extremely unlikely to cause issues. --- x-pack/docs/en/rest-api/watcher/ack-watch.asciidoc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/x-pack/docs/en/rest-api/watcher/ack-watch.asciidoc b/x-pack/docs/en/rest-api/watcher/ack-watch.asciidoc index 994c0022b8bcf..3c45b068a34c6 100644 --- a/x-pack/docs/en/rest-api/watcher/ack-watch.asciidoc +++ b/x-pack/docs/en/rest-api/watcher/ack-watch.asciidoc @@ -62,11 +62,9 @@ To demonstrate let's create a new watch: -------------------------------------------------- PUT _watcher/watch/my_watch { - "trigger": { - "schedule": { - "hourly": { - "minute": [ 0, 5 ] - } + "trigger" : { + "schedule" : { + "yearly" : { "in" : "february", "on" : 29, "at" : "noon" } } }, "input": {