From ddeb68a5265829dc5e0dd3ea3b325e512b617b63 Mon Sep 17 00:00:00 2001 From: lcawl Date: Mon, 18 Jun 2018 10:16:20 -0700 Subject: [PATCH 1/3] [DOCS] Test delete calendar event API --- x-pack/docs/build.gradle | 1 - x-pack/docs/en/rest-api/ml/delete-calendar-event.asciidoc | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/docs/build.gradle b/x-pack/docs/build.gradle index ed70fcd44a7f2..cbf6f91958063 100644 --- a/x-pack/docs/build.gradle +++ b/x-pack/docs/build.gradle @@ -57,7 +57,6 @@ buildRestTests.expectedUnconvertedCandidates = [ 'en/rest-api/license/delete-license.asciidoc', 'en/rest-api/license/update-license.asciidoc', 'en/ml/api-quickref.asciidoc', - 'en/rest-api/ml/delete-calendar-event.asciidoc', 'en/rest-api/ml/delete-snapshot.asciidoc', 'en/rest-api/ml/forecast.asciidoc', 'en/rest-api/ml/get-bucket.asciidoc', diff --git a/x-pack/docs/en/rest-api/ml/delete-calendar-event.asciidoc b/x-pack/docs/en/rest-api/ml/delete-calendar-event.asciidoc index 73458f3179197..ef8dad39dba70 100644 --- a/x-pack/docs/en/rest-api/ml/delete-calendar-event.asciidoc +++ b/x-pack/docs/en/rest-api/ml/delete-calendar-event.asciidoc @@ -44,7 +44,7 @@ calendar: DELETE _xpack/ml/calendars/planned-outages/events/LS8LJGEBMTCMA-qz49st -------------------------------------------------- // CONSOLE -// TEST[skip:automatically-generated ID] +// TEST[catch:missing] When the event is removed, you receive the following results: [source,js] @@ -53,3 +53,4 @@ When the event is removed, you receive the following results: "acknowledged": true } ---- +// NOTCONSOLE \ No newline at end of file From b67472b836ec54f55364ec8e5bb9be8156f83510 Mon Sep 17 00:00:00 2001 From: lcawl Date: Mon, 18 Jun 2018 10:55:30 -0700 Subject: [PATCH 2/3] [DOCS] Tests ML validate APIs --- x-pack/docs/build.gradle | 2 -- x-pack/docs/en/rest-api/ml/validate-detector.asciidoc | 2 +- x-pack/docs/en/rest-api/ml/validate-job.asciidoc | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/x-pack/docs/build.gradle b/x-pack/docs/build.gradle index cbf6f91958063..0d1def2b4f5e5 100644 --- a/x-pack/docs/build.gradle +++ b/x-pack/docs/build.gradle @@ -70,8 +70,6 @@ buildRestTests.expectedUnconvertedCandidates = [ 'en/rest-api/ml/preview-datafeed.asciidoc', 'en/rest-api/ml/revert-snapshot.asciidoc', 'en/rest-api/ml/update-snapshot.asciidoc', - 'en/rest-api/ml/validate-detector.asciidoc', - 'en/rest-api/ml/validate-job.asciidoc', 'en/rest-api/watcher/stats.asciidoc', 'en/watcher/example-watches/watching-time-series-data.asciidoc', ] diff --git a/x-pack/docs/en/rest-api/ml/validate-detector.asciidoc b/x-pack/docs/en/rest-api/ml/validate-detector.asciidoc index f688ef91cfe53..48271fd4b7fc9 100644 --- a/x-pack/docs/en/rest-api/ml/validate-detector.asciidoc +++ b/x-pack/docs/en/rest-api/ml/validate-detector.asciidoc @@ -45,7 +45,6 @@ POST _xpack/ml/anomaly_detectors/_validate/detector } -------------------------------------------------- // CONSOLE -// TEST[skip:todo] When the validation completes, you receive the following results: [source,js] @@ -54,3 +53,4 @@ When the validation completes, you receive the following results: "acknowledged": true } ---- +// TESTRESPONSE \ No newline at end of file diff --git a/x-pack/docs/en/rest-api/ml/validate-job.asciidoc b/x-pack/docs/en/rest-api/ml/validate-job.asciidoc index 61d0c70514e8d..0ccc5bc04e1d1 100644 --- a/x-pack/docs/en/rest-api/ml/validate-job.asciidoc +++ b/x-pack/docs/en/rest-api/ml/validate-job.asciidoc @@ -28,7 +28,6 @@ see <>. You must have `manage_ml`, or `manage` cluster privileges to use this API. For more information, see {xpack-ref}/security-privileges.html[Security Privileges]. -//<>. ==== Examples @@ -56,7 +55,6 @@ POST _xpack/ml/anomaly_detectors/_validate } -------------------------------------------------- // CONSOLE -// TEST[skip:todo] When the validation is complete, you receive the following results: [source,js] @@ -65,3 +63,4 @@ When the validation is complete, you receive the following results: "acknowledged": true } ---- +// TESTRESPONSE \ No newline at end of file From 784770d1d9a9156b57de5436026299313fd32587 Mon Sep 17 00:00:00 2001 From: lcawl Date: Tue, 19 Jun 2018 08:48:32 -0700 Subject: [PATCH 3/3] [DOCS] Removes comment from validate API --- x-pack/docs/en/rest-api/ml/validate-detector.asciidoc | 1 - 1 file changed, 1 deletion(-) diff --git a/x-pack/docs/en/rest-api/ml/validate-detector.asciidoc b/x-pack/docs/en/rest-api/ml/validate-detector.asciidoc index 48271fd4b7fc9..ab8a0de442cf8 100644 --- a/x-pack/docs/en/rest-api/ml/validate-detector.asciidoc +++ b/x-pack/docs/en/rest-api/ml/validate-detector.asciidoc @@ -28,7 +28,6 @@ see <>. You must have `manage_ml`, or `manage` cluster privileges to use this API. For more information, see {xpack-ref}/security-privileges.html[Security Privileges]. -//<>. ==== Examples