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:
Karel Minarik 2013-07-25 10:59:14 +02:00
parent 46059673ef
commit 1300982e22
1 changed files with 13 additions and 15 deletions

View File

@ -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: