[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:
parent
a3ad592198
commit
63eccce8f9
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue