[TEST] add render search template qa test

Original commit: elastic/x-pack-elasticsearch@7febccbfb2
This commit is contained in:
javanna 2016-11-29 23:44:49 +01:00 committed by Luca Cavanna
parent 34d6dc1db1
commit f19be18b20
1 changed files with 16 additions and 0 deletions

View File

@ -151,3 +151,19 @@ teardown:
- match: { responses.0.hits.total: 1 }
- match: { responses.1.hits.total: 0 }
---
"Test render template":
- do:
headers:
Authorization: "Basic aW5saW5lX3RlbXBsYXRlX3VzZXI6Y2hhbmdlbWU="
render_search_template:
body:
inline:
query:
match:
title: "{{query_string}}"
params:
query_string: "search for these words"
- match: { template_output.query.match.title: "search for these words" }