David Pilato 4738fa04b1 [ICU] move integration tests to REST tests
We can keep only unit tests in plugins instead of starting each time a local node and running tests against it.

Also follow up of #12091

Tests can use more than one JVM

We don't need anymore to set the number of jvm to run tests as we moved IT to Rest Tests
For all plugins but cloud plugins which will require another way for running integration tests.
2015-07-08 15:19:26 +02:00

48 lines
1.3 KiB
YAML

# Integration tests for ICU analysis component
#
---
"Index ICU content":
- do:
indices.create:
index: test
body:
settings:
index:
analysis:
analyzer:
my_analyzer:
tokenizer: standard
filter: ["standard", "lowercase", "my_collator"]
filter:
my_collator:
type: icu_collation
language: en
strength: primary
mappings:
type:
properties:
text:
type: string
analyzer: my_analyzer
- do:
cluster.health:
wait_for_status: yellow
- do:
index:
index: test
type: type
id: 1
body: { "text": "Bâton enflammé" }
- do:
indices.refresh: {}
- do:
search:
index: test
body:
query:
match:
text: baton enflamme
- match: { hits.total: 1 }