[TEST] moved routing REST tests to 0 replicas

REST tests get run against either 1 node or multiple nodes. Wait for yellow with replicas>0 is not enough when running against multiple nodes as replicas shard might get initialized  during testing, which can cause timing issues.
This commit is contained in:
Luca Cavanna 2014-02-10 12:30:37 +01:00
parent a3ad592198
commit 63eccce8f9
15 changed files with 120 additions and 26 deletions

View File

@ -1,6 +1,18 @@
---
"Routing":
- do:
indices.create:
index: test_1
body:
settings:
index:
number_of_replicas: 0
- do:
cluster.health:
wait_for_status: green
- do:
create:
index: test_1
@ -8,9 +20,6 @@
id: 1
routing: 5
body: { foo: bar }
- do:
cluster.health:
wait_for_status: yellow
- do:
get:

View File

@ -8,9 +8,12 @@
mappings:
test:
_parent: { type: "foo" }
settings:
number_of_replicas: 0
- do:
cluster.health:
wait_for_status: yellow
wait_for_status: green
- do:
create:

View File

@ -8,9 +8,12 @@
mappings:
test:
_parent: { type: "foo" }
settings:
number_of_replicas: 0
- do:
cluster.health:
wait_for_status: yellow
wait_for_status: green
- do:
index:

View File

@ -1,6 +1,18 @@
---
"Routing":
- do:
indices.create:
index: test_1
body:
settings:
index:
number_of_replicas: 0
- do:
cluster.health:
wait_for_status: green
- do:
index:
index: test_1
@ -8,9 +20,7 @@
id: 1
routing: 5
body: { foo: bar }
- do:
cluster.health:
wait_for_status: yellow
- do:
exists:
index: test_1

View File

@ -8,9 +8,12 @@
mappings:
test:
_parent: { type: "foo" }
settings:
number_of_replicas: 0
- do:
cluster.health:
wait_for_status: yellow
wait_for_status: green
- do:
index:

View File

@ -1,6 +1,18 @@
---
"Routing":
- do:
indices.create:
index: test_1
body:
settings:
index:
number_of_replicas: 0
- do:
cluster.health:
wait_for_status: green
- do:
index:
index: test_1
@ -8,9 +20,7 @@
id: 1
routing: 5
body: { foo: bar }
- do:
cluster.health:
wait_for_status: yellow
- do:
get:
index: test_1

View File

@ -8,9 +8,12 @@
mappings:
test:
_parent: { type: "foo" }
settings:
number_of_replicas: 0
- do:
cluster.health:
wait_for_status: yellow
wait_for_status: green
- do:
index:

View File

@ -1,6 +1,18 @@
---
"Routing":
- do:
indices.create:
index: test_1
body:
settings:
index:
number_of_replicas: 0
- do:
cluster.health:
wait_for_status: green
- do:
index:
index: test_1
@ -8,9 +20,7 @@
id: 1
routing: 5
body: { foo: bar }
- do:
cluster.health:
wait_for_status: yellow
- do:
get_source:
index: test_1

View File

@ -8,9 +8,12 @@
mappings:
test:
_parent: { type: "foo" }
settings:
number_of_replicas: 0
- do:
cluster.health:
wait_for_status: yellow
wait_for_status: green
- do:
index:

View File

@ -1,6 +1,18 @@
---
"Routing":
- do:
indices.create:
index: test_1
body:
settings:
index:
number_of_replicas: 0
- do:
cluster.health:
wait_for_status: green
- do:
index:
index: test_1
@ -8,9 +20,6 @@
id: 1
routing: 5
body: { foo: bar }
- do:
cluster.health:
wait_for_status: yellow
- do:
get:

View File

@ -8,9 +8,12 @@
mappings:
test:
_parent: { type: "foo" }
settings:
number_of_replicas: 0
- do:
cluster.health:
wait_for_status: yellow
wait_for_status: green
- do:
index:

View File

@ -1,6 +1,18 @@
---
"Routing":
- do:
indices.create:
index: test_1
body:
settings:
index:
number_of_replicas: 0
- do:
cluster.health:
wait_for_status: green
- do:
index:
index: test_1
@ -8,9 +20,7 @@
id: 1
routing: 5
body: { foo: bar }
- do:
cluster.health:
wait_for_status: yellow
- do:
mget:
index: test_1

View File

@ -8,9 +8,12 @@
mappings:
test:
_parent: { type: "foo" }
settings:
number_of_replicas: 0
- do:
cluster.health:
wait_for_status: yellow
wait_for_status: green
- do:
index:

View File

@ -1,6 +1,18 @@
---
"Routing":
- do:
indices.create:
index: test_1
body:
settings:
index:
number_of_replicas: 0
- do:
cluster.health:
wait_for_status: green
- do:
update:
index: test_1

View File

@ -8,9 +8,12 @@
mappings:
test:
_parent: { type: "foo" }
settings:
number_of_replicas: 0
- do:
cluster.health:
wait_for_status: yellow
wait_for_status: green
- do:
update: