[TEST] slightly sped up warmer tests by providing warmers during index creation

This commit is contained in:
Luca Cavanna 2014-02-04 10:09:31 +01:00
parent acaa5c7519
commit 05cc67c872
2 changed files with 43 additions and 40 deletions

View File

@ -2,30 +2,44 @@ setup:
- do:
indices.create:
index: test_index1
body:
warmers:
test_warmer1:
source:
query:
match_all: {}
test_warmer2:
source:
query:
match_all: {}
- do:
indices.create:
index: test_index2
body:
warmers:
test_warmer1:
source:
query:
match_all: {}
test_warmer2:
source:
query:
match_all: {}
- do:
indices.create:
index: foo
- do:
indices.put_warmer:
index: "test_index1,test_index2,foo"
name: test_warmer1
body:
query:
match_all: {}
- do:
indices.put_warmer:
index: "test_index1,test_index2,foo"
name: test_warmer2
body:
query:
match_all: {}
warmers:
test_warmer1:
source:
query:
match_all: {}
test_warmer2:
source:
query:
match_all: {}
---
"Check setup":

View File

@ -3,38 +3,27 @@ setup:
- do:
indices.create:
index: test_1
body:
warmers:
warmer_1:
source: { query: { match_all: { }}}
warmer_2:
source: { query: { match_all: { }}}
- do:
indices.create:
index: test_2
body:
warmers:
warmer_2:
source: { query: { match_all: { }}}
warmer_3:
source: { query: { match_all: { }}}
- do:
cluster.health:
wait_for_status: yellow
- do:
indices.put_warmer:
index: test_1
name: warmer_1
body: { query: { match_all: { }}}
- do:
indices.put_warmer:
index: test_1
name: warmer_2
body: { query: { match_all: { }}}
- do:
indices.put_warmer:
index: test_2
name: warmer_2
body: { query: { match_all: { }}}
- do:
indices.put_warmer:
index: test_2
name: warmer_3
body: { query: { match_all: { }}}
- do:
indices.refresh: {}
---
"Get /_warmer":