Skip to content

Commit d2e7f55

Browse files
committed
add expected warning message.
1 parent 865272d commit d2e7f55

File tree

1 file changed

+16
-0
lines changed
  • x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/ml

1 file changed

+16
-0
lines changed

x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/ml/post_data.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ setup:
7777
- match: { latest_record_timestamp: 1403481700000}
7878

7979
- do:
80+
warnings:
81+
- 'Forcing any buffered data to be processed is deprecated, in a future major version it will be compulsory to use a datafeed'
8082
ml.flush_job:
8183
job_id: post-data-job
8284
- match: { flushed: true }
@@ -155,6 +157,8 @@ setup:
155157

156158
# Skip a bucket
157159
- do:
160+
warnings:
161+
- 'Forcing any buffered data to be processed is deprecated, in a future major version it will be compulsory to use a datafeed'
158162
ml.flush_job:
159163
job_id: post-data-job
160164
skip_time: 1403488700
@@ -271,26 +275,36 @@ setup:
271275
- skip:
272276
reason: "https://github.com/elastic/elasticsearch/issues/34747"
273277
cluster_features: ["gte_v6.5.0"]
278+
features:
279+
- "warnings"
274280

275281
- do:
276282
catch: missing
283+
warnings:
284+
- 'Forcing any buffered data to be processed is deprecated, in a future major version it will be compulsory to use a datafeed'
277285
ml.flush_job:
278286
job_id: not_a_job
279287

280288
- do:
281289
catch: /parse_exception/
290+
warnings:
291+
- 'Forcing any buffered data to be processed is deprecated, in a future major version it will be compulsory to use a datafeed'
282292
ml.flush_job:
283293
job_id: post-data-job
284294
start: not_a_date
285295

286296
- do:
287297
catch: /parse_exception/
298+
warnings:
299+
- 'Forcing any buffered data to be processed is deprecated, in a future major version it will be compulsory to use a datafeed'
288300
ml.flush_job:
289301
job_id: post-data-job
290302
end: end_not_a_date
291303

292304
- do:
293305
catch: /parse_exception/
306+
warnings:
307+
- 'Forcing any buffered data to be processed is deprecated, in a future major version it will be compulsory to use a datafeed'
294308
ml.flush_job:
295309
job_id: post-data-job
296310
advance_time: advance_time_not_a_date
@@ -316,6 +330,8 @@ setup:
316330

317331
- do:
318332
catch: /status_exception/
333+
warnings:
334+
- 'Forcing any buffered data to be processed is deprecated, in a future major version it will be compulsory to use a datafeed'
319335
ml.flush_job:
320336
job_id: post-data-closed-job
321337

0 commit comments

Comments
 (0)