[ML] Rolling upgrade test job configurations with empty strings (elastic/x-pack-elasticsearch#2333)

Original commit: elastic/x-pack-elasticsearch@b61947cca7
This commit is contained in:
David Kyle 2017-08-29 16:12:58 +01:00
parent b818ee285b
commit 91635608ef
1 changed files with 20 additions and 0 deletions

View File

@ -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"
}
}