Skip to content

Commit 98f65ac

Browse files
committed
Fix up the yaml test
1 parent fda46c5 commit 98f65ac

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,10 @@ setup:
418418
"job_id":"runtime-field-aggregation-job",
419419
"indexes":"airline-data",
420420
"runtime_mappings" : {
421-
"type": "double",
422-
"script": "emit(doc['responsetime'].value * 2.0)"
421+
"responsetime_x_2": {
422+
"type": "double",
423+
"script": "emit(doc['responsetime'].value * 2.0)"
424+
}
423425
},
424426
"aggregations": {
425427
"buckets": {
@@ -450,7 +452,11 @@ setup:
450452
}
451453
}
452454
}
453-
- length: { $body: 30 }
455+
456+
- do:
457+
ml.preview_datafeed:
458+
datafeed_id: aggregation-doc-count-feed
459+
- length: { $body: 3 }
454460
- match: { 0.time: 1487377800000 }
455461
- match: { 0.airline: foo }
456462
- match: { 0.responsetime_x_2: 4.0 }

0 commit comments

Comments
 (0)