From fad52acf5acca84d10bda7402a1d8e8012ee67a9 Mon Sep 17 00:00:00 2001 From: Tomas Della Vedova Date: Tue, 5 Mar 2019 18:12:24 +0100 Subject: [PATCH] Removed incorrect ML YAML tests (#39400) A client cannot know that a job_id is already taken, so this test should not have been specified as a client test --- .../rest-api-spec/test/ml/jobs_crud.yml | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/test/ml/jobs_crud.yml b/x-pack/plugin/src/test/resources/rest-api-spec/test/ml/jobs_crud.yml index 82831b882226a..800a536d57e3d 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/test/ml/jobs_crud.yml +++ b/x-pack/plugin/src/test/resources/rest-api-spec/test/ml/jobs_crud.yml @@ -236,24 +236,6 @@ "time_format":"yyyy-MM-dd HH:mm:ssX" } } - - do: - catch: param - ml.put_job: - job_id: jobs-crud-id-already-taken - body: > - { - "job_id":"jobs-crud-id-already-taken", - "description":"Analysis of response time by airline", - "analysis_config" : { - "bucket_span": "1h", - "detectors" :[{"function":"metric","field_name":"responsetime","by_field_name":"airline"}] - }, - "data_description" : { - "field_delimiter":",", - "time_field":"time", - "time_format":"yyyy-MM-dd HH:mm:ssX" - } - } --- "Test update job":