Skip to content

Commit

Permalink
Fix error in yamlRestTest
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Apr 22, 2024
1 parent 7ba1eb1 commit fcf4be0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
- match: { template_output.aggs.my_terms.terms.field: "my_other_field" }

- do:
catch: /Improperly.closed.variable.in.query-template/
catch: /Improperly.closed.variable:.my_value.in.query-template/
render_search_template:
body: { "source": { "query": { "match": { "text": "{{{my_value}}" } }, "aggs": { "my_terms": { "terms": { "field": "{{my_field}}" } } } }, "params": { "my_value": "bar", "my_field": "field1" } }
---
Expand Down Expand Up @@ -99,7 +99,7 @@
- match: { template_output.size: 100 }

- do:
catch: /Improperly.closed.variable.in.query-template/
catch: /Improperly.closed.variable:.my_value.in.query-template/
render_search_template:
body: { "source": "{ \"query\": { \"match\": { \"text\": \"{{{my_value}}\" } }, \"size\": {{my_size}} }", "params": { "my_value": "bar", "my_size": 100 } }

Expand Down

0 comments on commit fcf4be0

Please sign in to comment.