diff options
Diffstat (limited to 'qa/vagrant/src/test/resources/packaging/utils/utils.bash')
-rw-r--r-- | qa/vagrant/src/test/resources/packaging/utils/utils.bash | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/qa/vagrant/src/test/resources/packaging/utils/utils.bash b/qa/vagrant/src/test/resources/packaging/utils/utils.bash index 7fb742b438..7b22692281 100644 --- a/qa/vagrant/src/test/resources/packaging/utils/utils.bash +++ b/qa/vagrant/src/test/resources/packaging/utils/utils.bash @@ -482,22 +482,31 @@ run_elasticsearch_tests() { echo "$output" | grep -w "green" curl -s -XPOST 'http://localhost:9200/library/book/1?refresh=true&pretty' -d '{ - "title": "Elasticsearch - The Definitive Guide" + "title": "Book #1", + "pages": 123 + }' + + curl -s -XPOST 'http://localhost:9200/library/book/2?refresh=true&pretty' -d '{ + "title": "Book #2", + "pages": 456 }' curl -s -XGET 'http://localhost:9200/_count?pretty' | - grep \"count\"\ :\ 1 + grep \"count\"\ :\ 2 curl -s -XPOST 'http://localhost:9200/library/book/_count?pretty' -d '{ "query": { "script": { "script": { "file": "is_guide", - "lang": "painless" + "lang": "painless", + "params": { + "min_num_pages": 100 + } } } } - }' | grep \"count\"\ :\ 1 + }' | grep \"count\"\ :\ 2 curl -s -XGET 'http://localhost:9200/library/book/_search/template?pretty' -d '{ "file": "is_guide" |