Skip to content

Commit

Permalink
Testing: Remove plus sign from YAML test due to encoding issue
Browse files Browse the repository at this point in the history
The plus sign is not treated correctly in encoding and can lead
to problems, if the search request is encoded as HTTP parameter
instead of the HTTP body.

Relates #9769
  • Loading branch information
spinscale committed Feb 19, 2015
1 parent 9bce8c9 commit 004f3fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rest-api-spec/test/script/30_expressions.yaml
Expand Up @@ -11,5 +11,5 @@
- do:
indices.refresh: {}

- do: { search: { body: { script_fields : { my_field : { lang: expression, script: 'doc["age"].value + 19' } } } } }
- match: { hits.hits.0.fields.my_field: [ 42.0 ] }
- do: { search: { body: { script_fields : { my_field : { lang: expression, script: 'doc["age"].value' } } } } }
- match: { hits.hits.0.fields.my_field: [ 23.0 ] }

0 comments on commit 004f3fb

Please sign in to comment.