From f19be18b20aed08427ebdc68ab3e6cdca02a57ca Mon Sep 17 00:00:00 2001 From: javanna Date: Tue, 29 Nov 2016 23:44:49 +0100 Subject: [PATCH] [TEST] add render search template qa test Original commit: elastic/x-pack-elasticsearch@7febccbfb248ea59de6e110dbdf5b4a7f8d5cc9b --- .../rest-api-spec/test/30_search_template.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/qa/smoke-test-security-with-mustache/src/test/resources/rest-api-spec/test/30_search_template.yaml b/qa/smoke-test-security-with-mustache/src/test/resources/rest-api-spec/test/30_search_template.yaml index 48d431379f5..f918d857721 100644 --- a/qa/smoke-test-security-with-mustache/src/test/resources/rest-api-spec/test/30_search_template.yaml +++ b/qa/smoke-test-security-with-mustache/src/test/resources/rest-api-spec/test/30_search_template.yaml @@ -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" } +