From 91635608eff323034797eae2dac32ae752fb2fae Mon Sep 17 00:00:00 2001 From: David Kyle Date: Tue, 29 Aug 2017 16:12:58 +0100 Subject: [PATCH] [ML] Rolling upgrade test job configurations with empty strings (elastic/x-pack-elasticsearch#2333) Original commit: elastic/x-pack-elasticsearch@b61947cca7faeda9c11a8fb5aca17e9eb33bf049 --- .../test/old_cluster/30_ml_jobs_crud.yml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/old_cluster/30_ml_jobs_crud.yml b/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/old_cluster/30_ml_jobs_crud.yml index 2d1420e8bc0..6d237260876 100644 --- a/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/old_cluster/30_ml_jobs_crud.yml +++ b/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/old_cluster/30_ml_jobs_crud.yml @@ -45,3 +45,23 @@ xpack.ml.get_buckets: job_id: old-cluster-job - match: { count: 1 } + +--- +"Put job with empty strings in the configuration": + - do: + xpack.ml.put_job: + job_id: old-cluster-job-empty-fields + body: > + { + "description": "Cluster upgrade bad config", + "analysis_config" : { + "influencers": "", + "bucket_span": "60s", + "detectors" :[{"function":"count","field_name":""}] + }, + "data_description" : { + "format":"xcontent", + "time_field":"time", + "time_format":"epoch" + } + }