summaryrefslogtreecommitdiff
path: root/rest-api-spec/test/percolate/17_empty.yaml
blob: 0cd1ac5bb8d32348964943b49f8bc81f0f5b6a7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
"Basic percolation tests on an empty cluster":

  - do:
      indices.create:
        index: test_index

  - do:
      indices.refresh: {}

  - do:
      percolate:
        index: test_index
        type:  test_type
        body:
          doc:
            foo: bar

  - match: {'total': 0}
  - match: {'matches': []}

  - do:
      count_percolate:
        index: test_index
        type:  test_type
        body:
          doc:
            foo: bar

  - is_false:  matches
  - match: {'total': 0}