validate query

This commit is contained in:
Honza Kral 2013-07-24 04:10:53 +02:00
parent 12597309c6
commit e925ea3b78
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
---
"Validate query api":
- do:
indices.create:
index: testing
- do:
cluster.health:
wait_for_status: yellow
- do:
indices.validate_query:
q: query string
- is_true: valid
- do:
indices.validate_query:
body:
query:
invalid_query: {}
- is_false: valid