mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 14:05:27 +00:00
The clients return an exception in case of failure and not the whole json response containing failures, thus this tests can only work with the Java REST tests runner
43 lines
664 B
YAML
43 lines
664 B
YAML
---
|
|
"Basic delete_by_query":
|
|
- do:
|
|
index:
|
|
index: test_1
|
|
type: test
|
|
id: 1
|
|
body: { foo: bar }
|
|
|
|
- do:
|
|
index:
|
|
index: test_1
|
|
type: test
|
|
id: 2
|
|
body: { foo: baz }
|
|
|
|
- do:
|
|
index:
|
|
index: test_1
|
|
type: test
|
|
id: 3
|
|
body: { foo: foo }
|
|
|
|
- do:
|
|
indices.refresh: {}
|
|
|
|
- do:
|
|
delete_by_query:
|
|
index: test_1
|
|
body:
|
|
query:
|
|
match:
|
|
foo: bar
|
|
|
|
- do:
|
|
indices.refresh: {}
|
|
|
|
- do:
|
|
count:
|
|
index: test_1
|
|
|
|
- match: { count: 2 }
|