Percolate tests

This commit is contained in:
Honza Kral 2013-07-24 01:39:20 +02:00
parent d24fa52099
commit 2e06c35b98
2 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,33 @@
---
"Basic percolation tests":
- skip:
version: "0.90.3 - 999"
reason: "Percolator redesign"
- do:
indices.create:
index: test_index
- do:
index:
index: _percolator
type: test_index
id: test_percolator
body:
query:
match_all: {}
- do:
indices.refresh: {}
- do:
percolate:
index: test_index
type: test_type
body:
doc:
foo: bar
- is_true: ok
- match: {'matches': ['test_percolator']}

View File

@ -0,0 +1,31 @@
---
"Basic percolation tests":
- skip:
version: "0 - 0.90.2"
reason: "Percolator redesign"
- do:
indices.create:
index: test_index
- do:
index:
index: test_index
type: _percolator
id: test_percolator
body:
query:
match_all: {}
- do:
indices.refresh: {}
- do:
percolate:
index: test_index
type: test_type
body:
doc:
foo: bar
- match: {'matches': ['test_percolator']}