Fix syntax for template tests
This commit is contained in:
parent
e9d292b450
commit
f084469c27
|
@ -1,7 +1,9 @@
|
|||
{
|
||||
"query": {
|
||||
"script": {
|
||||
"script_file": "is_guide"
|
||||
"script": {
|
||||
"file": "is_guide"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -475,7 +475,9 @@ run_elasticsearch_tests() {
|
|||
curl -s -XPOST 'http://localhost:9200/library/book/_count?pretty' -d '{
|
||||
"query": {
|
||||
"script": {
|
||||
"script_file": "is_guide"
|
||||
"script": {
|
||||
"file": "is_guide"
|
||||
}
|
||||
}
|
||||
}
|
||||
}' | grep \"count\"\ :\ 1
|
||||
|
|
Loading…
Reference in New Issue