From 39e9fbdb77aa6d9ff43e7e7a0a92ab8f483fc4c0 Mon Sep 17 00:00:00 2001 From: lcawl Date: Thu, 30 Aug 2018 10:34:15 -0700 Subject: [PATCH] [DOCS] Re-adds all TESTRESPONSE --- docs/build.gradle | 21 ------------------- docs/reference/ml/apis/close-job.asciidoc | 2 +- .../ml/apis/delete-calendar-job.asciidoc | 2 +- .../ml/apis/delete-calendar.asciidoc | 2 +- .../ml/apis/delete-datafeed.asciidoc | 2 +- docs/reference/ml/apis/delete-filter.asciidoc | 2 +- docs/reference/ml/apis/delete-job.asciidoc | 1 + .../ml/apis/delete-snapshot.asciidoc | 1 + docs/reference/ml/apis/flush-job.asciidoc | 7 ++----- docs/reference/ml/apis/get-calendar.asciidoc | 2 +- docs/reference/ml/apis/get-filter.asciidoc | 2 +- docs/reference/ml/apis/open-job.asciidoc | 1 + .../ml/apis/post-calendar-event.asciidoc | 2 +- .../ml/apis/preview-datafeed.asciidoc | 2 +- .../ml/apis/put-calendar-job.asciidoc | 2 +- docs/reference/ml/apis/put-calendar.asciidoc | 2 +- docs/reference/ml/apis/put-filter.asciidoc | 2 +- .../reference/ml/apis/start-datafeed.asciidoc | 1 + docs/reference/ml/apis/stop-datafeed.asciidoc | 1 + docs/reference/ml/apis/update-filter.asciidoc | 2 +- .../ml/apis/validate-detector.asciidoc | 1 + docs/reference/ml/apis/validate-job.asciidoc | 1 + 22 files changed, 22 insertions(+), 39 deletions(-) diff --git a/docs/build.gradle b/docs/build.gradle index f38ccc62030b6..c6a7a8d48374b 100644 --- a/docs/build.gradle +++ b/docs/build.gradle @@ -22,38 +22,17 @@ apply plugin: 'elasticsearch.docs-test' /* List of files that have snippets that will not work until platinum tests can occur ... */ buildRestTests.expectedUnconvertedCandidates = [ 'reference/ml/transforms.asciidoc', - 'reference/ml/apis/close-job.asciidoc', 'reference/ml/apis/delete-calendar-event.asciidoc', - 'reference/ml/apis/delete-calendar-job.asciidoc', - 'reference/ml/apis/delete-calendar.asciidoc', - 'reference/ml/apis/delete-datafeed.asciidoc', - 'reference/ml/apis/delete-filter.asciidoc', - 'reference/ml/apis/delete-job.asciidoc', - 'reference/ml/apis/delete-snapshot.asciidoc', - 'reference/ml/apis/flush-job.asciidoc', 'reference/ml/apis/get-bucket.asciidoc', - 'reference/ml/apis/get-calendar.asciidoc', 'reference/ml/apis/get-category.asciidoc', - 'reference/ml/apis/get-filter.asciidoc', 'reference/ml/apis/get-influencer.asciidoc', 'reference/ml/apis/get-job-stats.asciidoc', 'reference/ml/apis/get-overall-buckets.asciidoc', 'reference/ml/apis/get-record.asciidoc', 'reference/ml/apis/get-snapshot.asciidoc', - 'reference/ml/apis/open-job.asciidoc', - 'reference/ml/apis/post-calendar-event.asciidoc', 'reference/ml/apis/post-data.asciidoc', - 'reference/ml/apis/preview-datafeed.asciidoc', - 'reference/ml/apis/put-calendar-job.asciidoc', - 'reference/ml/apis/put-calendar.asciidoc', - 'reference/ml/apis/put-filter.asciidoc', 'reference/ml/apis/revert-snapshot.asciidoc', - 'reference/ml/apis/start-datafeed.asciidoc', - 'reference/ml/apis/stop-datafeed.asciidoc', - 'reference/ml/apis/update-filter.asciidoc', 'reference/ml/apis/update-snapshot.asciidoc', - 'reference/ml/apis/validate-detector.asciidoc', - 'reference/ml/apis/validate-job.asciidoc', ] integTestCluster { diff --git a/docs/reference/ml/apis/close-job.asciidoc b/docs/reference/ml/apis/close-job.asciidoc index a45831400f437..6dec6402c8766 100644 --- a/docs/reference/ml/apis/close-job.asciidoc +++ b/docs/reference/ml/apis/close-job.asciidoc @@ -90,4 +90,4 @@ When the job is closed, you receive the following results: "closed": true } ---- - +// TESTRESPONSE diff --git a/docs/reference/ml/apis/delete-calendar-job.asciidoc b/docs/reference/ml/apis/delete-calendar-job.asciidoc index 6be4a25c54850..4362a82b5cb7e 100644 --- a/docs/reference/ml/apis/delete-calendar-job.asciidoc +++ b/docs/reference/ml/apis/delete-calendar-job.asciidoc @@ -51,4 +51,4 @@ results: "job_ids": [] } ---- - +// TESTRESPONSE diff --git a/docs/reference/ml/apis/delete-calendar.asciidoc b/docs/reference/ml/apis/delete-calendar.asciidoc index 03cc93cfe7ec1..9f9f3457f24d2 100644 --- a/docs/reference/ml/apis/delete-calendar.asciidoc +++ b/docs/reference/ml/apis/delete-calendar.asciidoc @@ -50,4 +50,4 @@ When the calendar is deleted, you receive the following results: "acknowledged": true } ---- - +// TESTRESPONSE diff --git a/docs/reference/ml/apis/delete-datafeed.asciidoc b/docs/reference/ml/apis/delete-datafeed.asciidoc index bf18273772698..996d2c7dd2eaf 100644 --- a/docs/reference/ml/apis/delete-datafeed.asciidoc +++ b/docs/reference/ml/apis/delete-datafeed.asciidoc @@ -57,4 +57,4 @@ When the {dfeed} is deleted, you receive the following results: "acknowledged": true } ---- - +// TESTRESPONSE diff --git a/docs/reference/ml/apis/delete-filter.asciidoc b/docs/reference/ml/apis/delete-filter.asciidoc index 2a60cb7751e4e..21e35b66076f6 100644 --- a/docs/reference/ml/apis/delete-filter.asciidoc +++ b/docs/reference/ml/apis/delete-filter.asciidoc @@ -51,4 +51,4 @@ When the filter is deleted, you receive the following results: "acknowledged": true } ---- - +// TESTRESPONSE diff --git a/docs/reference/ml/apis/delete-job.asciidoc b/docs/reference/ml/apis/delete-job.asciidoc index f84f5c06d1910..d5ef120ad040b 100644 --- a/docs/reference/ml/apis/delete-job.asciidoc +++ b/docs/reference/ml/apis/delete-job.asciidoc @@ -66,3 +66,4 @@ When the job is deleted, you receive the following results: "acknowledged": true } ---- +// TESTRESPONSE \ No newline at end of file diff --git a/docs/reference/ml/apis/delete-snapshot.asciidoc b/docs/reference/ml/apis/delete-snapshot.asciidoc index 725c85b4ba149..96a3590054557 100644 --- a/docs/reference/ml/apis/delete-snapshot.asciidoc +++ b/docs/reference/ml/apis/delete-snapshot.asciidoc @@ -53,3 +53,4 @@ When the snapshot is deleted, you receive the following results: "acknowledged": true } ---- +// TESTRESPONSE \ No newline at end of file diff --git a/docs/reference/ml/apis/flush-job.asciidoc b/docs/reference/ml/apis/flush-job.asciidoc index d590eae4d732d..f19d2aa648f68 100644 --- a/docs/reference/ml/apis/flush-job.asciidoc +++ b/docs/reference/ml/apis/flush-job.asciidoc @@ -85,10 +85,7 @@ When the operation succeeds, you receive the following results: "last_finalized_bucket_end": 1455234900000 } ---- - -//// -TESTRESPONSE[s/"last_finalized_bucket_end": 1455234900000/"last_finalized_bucket_end": $body.last_finalized_bucket_end/] -//// +//TESTRESPONSE[s/"last_finalized_bucket_end": 1455234900000/"last_finalized_bucket_end": $body.last_finalized_bucket_end/] The `last_finalized_bucket_end` provides the timestamp (in milliseconds-since-the-epoch) of the end of the last bucket that was processed. @@ -115,4 +112,4 @@ When the operation succeeds, you receive the following results: "last_finalized_bucket_end": 1514804400000 } ---- - +// TESTRESPONSE diff --git a/docs/reference/ml/apis/get-calendar.asciidoc b/docs/reference/ml/apis/get-calendar.asciidoc index 0fb60f89ccb3a..f86875f326cd9 100644 --- a/docs/reference/ml/apis/get-calendar.asciidoc +++ b/docs/reference/ml/apis/get-calendar.asciidoc @@ -80,4 +80,4 @@ The API returns the following results: ] } ---- - +// TESTRESPONSE diff --git a/docs/reference/ml/apis/get-filter.asciidoc b/docs/reference/ml/apis/get-filter.asciidoc index 0ce9caf9d1d0f..2dbb5d16cc5a4 100644 --- a/docs/reference/ml/apis/get-filter.asciidoc +++ b/docs/reference/ml/apis/get-filter.asciidoc @@ -82,4 +82,4 @@ The API returns the following results: ] } ---- - +// TESTRESPONSE diff --git a/docs/reference/ml/apis/open-job.asciidoc b/docs/reference/ml/apis/open-job.asciidoc index 6799acc80b6a2..c1e5977b734fd 100644 --- a/docs/reference/ml/apis/open-job.asciidoc +++ b/docs/reference/ml/apis/open-job.asciidoc @@ -66,3 +66,4 @@ When the job opens, you receive the following results: "opened": true } ---- +// TESTRESPONSE diff --git a/docs/reference/ml/apis/post-calendar-event.asciidoc b/docs/reference/ml/apis/post-calendar-event.asciidoc index d4c0493c5c562..998db409fc7d6 100644 --- a/docs/reference/ml/apis/post-calendar-event.asciidoc +++ b/docs/reference/ml/apis/post-calendar-event.asciidoc @@ -82,7 +82,7 @@ The API returns the following results: ] } ---- - +// TESTRESPONSE For more information about these properties, see <>. diff --git a/docs/reference/ml/apis/preview-datafeed.asciidoc b/docs/reference/ml/apis/preview-datafeed.asciidoc index 646b796504f87..7b9eccd9a5920 100644 --- a/docs/reference/ml/apis/preview-datafeed.asciidoc +++ b/docs/reference/ml/apis/preview-datafeed.asciidoc @@ -80,4 +80,4 @@ The data that is returned for this example is as follows: } ] ---- - +// TESTRESPONSE diff --git a/docs/reference/ml/apis/put-calendar-job.asciidoc b/docs/reference/ml/apis/put-calendar-job.asciidoc index 2ff096b376ab4..0563047043ae4 100644 --- a/docs/reference/ml/apis/put-calendar-job.asciidoc +++ b/docs/reference/ml/apis/put-calendar-job.asciidoc @@ -52,4 +52,4 @@ The API returns the following results: ] } ---- - +// TESTRESPONSE diff --git a/docs/reference/ml/apis/put-calendar.asciidoc b/docs/reference/ml/apis/put-calendar.asciidoc index c4d11434446c2..06b8e55d7747c 100644 --- a/docs/reference/ml/apis/put-calendar.asciidoc +++ b/docs/reference/ml/apis/put-calendar.asciidoc @@ -55,4 +55,4 @@ When the calendar is created, you receive the following results: "job_ids": [] } ---- - +// TESTRESPONSE diff --git a/docs/reference/ml/apis/put-filter.asciidoc b/docs/reference/ml/apis/put-filter.asciidoc index 510c1b3d69378..165fe9697584c 100644 --- a/docs/reference/ml/apis/put-filter.asciidoc +++ b/docs/reference/ml/apis/put-filter.asciidoc @@ -67,4 +67,4 @@ When the filter is created, you receive the following response: "items": ["*.google.com", "wikipedia.org"] } ---- - +// TESTRESPONSE diff --git a/docs/reference/ml/apis/start-datafeed.asciidoc b/docs/reference/ml/apis/start-datafeed.asciidoc index aa446a69f35c9..566e700dd043b 100644 --- a/docs/reference/ml/apis/start-datafeed.asciidoc +++ b/docs/reference/ml/apis/start-datafeed.asciidoc @@ -110,3 +110,4 @@ When the {dfeed} starts, you receive the following results: "started": true } ---- +// TESTRESPONSE \ No newline at end of file diff --git a/docs/reference/ml/apis/stop-datafeed.asciidoc b/docs/reference/ml/apis/stop-datafeed.asciidoc index 2cd9b9e0ce9d2..7ea48974f2df1 100644 --- a/docs/reference/ml/apis/stop-datafeed.asciidoc +++ b/docs/reference/ml/apis/stop-datafeed.asciidoc @@ -73,3 +73,4 @@ When the {dfeed} stops, you receive the following results: "stopped": true } ---- +// TESTRESPONSE \ No newline at end of file diff --git a/docs/reference/ml/apis/update-filter.asciidoc b/docs/reference/ml/apis/update-filter.asciidoc index abeb8aa7bf63e..f551c8e923b89 100644 --- a/docs/reference/ml/apis/update-filter.asciidoc +++ b/docs/reference/ml/apis/update-filter.asciidoc @@ -65,4 +65,4 @@ The API returns the following results: "items": ["*.google.com", "*.myorg.com"] } ---- - +// TESTRESPONSE diff --git a/docs/reference/ml/apis/validate-detector.asciidoc b/docs/reference/ml/apis/validate-detector.asciidoc index 69f5de8800f55..e525b1a1b2008 100644 --- a/docs/reference/ml/apis/validate-detector.asciidoc +++ b/docs/reference/ml/apis/validate-detector.asciidoc @@ -54,3 +54,4 @@ When the validation completes, you receive the following results: "acknowledged": true } ---- +// TESTRESPONSE \ No newline at end of file diff --git a/docs/reference/ml/apis/validate-job.asciidoc b/docs/reference/ml/apis/validate-job.asciidoc index 877db9ae3d86b..b83260582602e 100644 --- a/docs/reference/ml/apis/validate-job.asciidoc +++ b/docs/reference/ml/apis/validate-job.asciidoc @@ -65,3 +65,4 @@ When the validation is complete, you receive the following results: "acknowledged": true } ---- +// TESTRESPONSE \ No newline at end of file