Skip to content

Commit

Permalink
[DOCS] Re-adds all TESTRESPONSE
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl committed Aug 31, 2018
1 parent 53519f6 commit 39e9fbd
Show file tree
Hide file tree
Showing 22 changed files with 22 additions and 39 deletions.
21 changes: 0 additions & 21 deletions docs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/ml/apis/close-job.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ When the job is closed, you receive the following results:
"closed": true
}
----

// TESTRESPONSE
2 changes: 1 addition & 1 deletion docs/reference/ml/apis/delete-calendar-job.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ results:
"job_ids": []
}
----

// TESTRESPONSE
2 changes: 1 addition & 1 deletion docs/reference/ml/apis/delete-calendar.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ When the calendar is deleted, you receive the following results:
"acknowledged": true
}
----

// TESTRESPONSE
2 changes: 1 addition & 1 deletion docs/reference/ml/apis/delete-datafeed.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ When the {dfeed} is deleted, you receive the following results:
"acknowledged": true
}
----

// TESTRESPONSE
2 changes: 1 addition & 1 deletion docs/reference/ml/apis/delete-filter.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ When the filter is deleted, you receive the following results:
"acknowledged": true
}
----

// TESTRESPONSE
1 change: 1 addition & 0 deletions docs/reference/ml/apis/delete-job.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,4 @@ When the job is deleted, you receive the following results:
"acknowledged": true
}
----
// TESTRESPONSE
1 change: 1 addition & 0 deletions docs/reference/ml/apis/delete-snapshot.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ When the snapshot is deleted, you receive the following results:
"acknowledged": true
}
----
// TESTRESPONSE
7 changes: 2 additions & 5 deletions docs/reference/ml/apis/flush-job.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -115,4 +112,4 @@ When the operation succeeds, you receive the following results:
"last_finalized_bucket_end": 1514804400000
}
----

// TESTRESPONSE
2 changes: 1 addition & 1 deletion docs/reference/ml/apis/get-calendar.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ The API returns the following results:
]
}
----

// TESTRESPONSE
2 changes: 1 addition & 1 deletion docs/reference/ml/apis/get-filter.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ The API returns the following results:
]
}
----

// TESTRESPONSE
1 change: 1 addition & 0 deletions docs/reference/ml/apis/open-job.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,4 @@ When the job opens, you receive the following results:
"opened": true
}
----
// TESTRESPONSE
2 changes: 1 addition & 1 deletion docs/reference/ml/apis/post-calendar-event.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ The API returns the following results:
]
}
----

// TESTRESPONSE

For more information about these properties, see
<<ml-event-resource,Scheduled Event Resources>>.
2 changes: 1 addition & 1 deletion docs/reference/ml/apis/preview-datafeed.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ The data that is returned for this example is as follows:
}
]
----

// TESTRESPONSE
2 changes: 1 addition & 1 deletion docs/reference/ml/apis/put-calendar-job.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ The API returns the following results:
]
}
----

// TESTRESPONSE
2 changes: 1 addition & 1 deletion docs/reference/ml/apis/put-calendar.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ When the calendar is created, you receive the following results:
"job_ids": []
}
----

// TESTRESPONSE
2 changes: 1 addition & 1 deletion docs/reference/ml/apis/put-filter.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ When the filter is created, you receive the following response:
"items": ["*.google.com", "wikipedia.org"]
}
----

// TESTRESPONSE
1 change: 1 addition & 0 deletions docs/reference/ml/apis/start-datafeed.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,4 @@ When the {dfeed} starts, you receive the following results:
"started": true
}
----
// TESTRESPONSE
1 change: 1 addition & 0 deletions docs/reference/ml/apis/stop-datafeed.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,4 @@ When the {dfeed} stops, you receive the following results:
"stopped": true
}
----
// TESTRESPONSE
2 changes: 1 addition & 1 deletion docs/reference/ml/apis/update-filter.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ The API returns the following results:
"items": ["*.google.com", "*.myorg.com"]
}
----

// TESTRESPONSE
1 change: 1 addition & 0 deletions docs/reference/ml/apis/validate-detector.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,4 @@ When the validation completes, you receive the following results:
"acknowledged": true
}
----
// TESTRESPONSE
1 change: 1 addition & 0 deletions docs/reference/ml/apis/validate-job.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,4 @@ When the validation is complete, you receive the following results:
"acknowledged": true
}
----
// TESTRESPONSE

0 comments on commit 39e9fbd

Please sign in to comment.