Removed test "setup" in "Indices Analyze" test
When the runner contract is specified as "run all the tests in the file in sequence, resetting cluster after each file", it makes is hard to translate the concept into regular Test::Unit environment. Changed the "Analyze API JSON format - index and field" test to perform the necessary setup as part of the test code.
This commit is contained in:
parent
46059673ef
commit
1300982e22
|
@ -1,16 +1,3 @@
|
|||
---
|
||||
"Analyze API setup":
|
||||
- do:
|
||||
indices.create:
|
||||
index: test
|
||||
body:
|
||||
mappings:
|
||||
test:
|
||||
properties:
|
||||
text:
|
||||
type: string
|
||||
analyzer: whitespace
|
||||
|
||||
---
|
||||
"Analyze API text format":
|
||||
- do:
|
||||
|
@ -42,8 +29,19 @@
|
|||
---
|
||||
"Analyze API JSON format - index and field":
|
||||
- do:
|
||||
cluster.health:
|
||||
wait_for_status: yellow
|
||||
indices.create:
|
||||
index: test
|
||||
body:
|
||||
mappings:
|
||||
test:
|
||||
properties:
|
||||
text:
|
||||
type: string
|
||||
analyzer: whitespace
|
||||
- do:
|
||||
cluster.health:
|
||||
wait_for_status: yellow
|
||||
|
||||
|
||||
- do:
|
||||
indices.analyze:
|
||||
|
|
Loading…
Reference in New Issue