[ML] Rolling upgrade test job configurations with empty strings (elastic/x-pack-elasticsearch#2333)
Original commit: elastic/x-pack-elasticsearch@35c4035f711fd4ef9f4e1f02bbbdb94a1e0ec74a
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"
+ }
+ }
