Fixed REST test to not rely on dynamic mapping

This commit is contained in:
Clinton Gormley 2016-03-03 14:29:16 +01:00
parent ce7fccb287
commit 6b27de3f8c
1 changed files with 14 additions and 21 deletions

View File

@ -1,5 +1,15 @@
--- setup:
"Basic field stats": - do:
indices.create:
index: test_1
body:
mappings:
test:
properties:
foo:
type: string
number:
type: long
- do: - do:
index: index:
index: test_1 index: test_1
@ -10,6 +20,8 @@
- do: - do:
indices.refresh: {} indices.refresh: {}
---
"Basic field stats":
- do: - do:
field_stats: field_stats:
index: test_1 index: test_1
@ -28,16 +40,6 @@
--- ---
"Basic field stats with level set to indices": "Basic field stats with level set to indices":
- do:
index:
index: test_1
type: test
id: id_1
body: { foo: "bar", number: 123 }
- do:
indices.refresh: {}
- do: - do:
field_stats: field_stats:
index: test_1 index: test_1
@ -57,15 +59,6 @@
--- ---
"Field stats with filtering": "Field stats with filtering":
- do:
index:
index: test_1
type: test
id: id_1
body: { foo: "bar", number: 123 }
- do:
indices.refresh: {}
- do: - do:
field_stats: field_stats: