REST: Fix script-expressions test to work with Perl

Closes #9931
This commit is contained in:
Clinton Gormley 2015-03-02 10:26:16 +01:00
parent c457499cb2
commit 8cba6509e4
1 changed files with 1 additions and 4 deletions

View File

@ -1,8 +1,5 @@
---
setup:
- skip:
version: "0 - 100"
reason: Java returns floating point, but JSON returns integer
- do:
indices.create:
index: test123
@ -26,5 +23,5 @@ setup:
"Expressions scripting test":
- do: { search: { body: { script_fields : { my_field : { lang: expression, script: 'doc["age"].value' } } } } }
- match: { hits.hits.0.fields.my_field: [ 23 ] }
- match: { hits.hits.0.fields.my_field.0: 23.0 }