[ML] Wait for ML indices in rolling upgrade tests (#30615)

This commit is contained in:
David Kyle 2018-05-16 09:52:25 +01:00 committed by GitHub
parent 6ec5e4408c
commit 16f5a515f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

View File

@ -87,6 +87,13 @@ setup:
xpack.ml.close_job: xpack.ml.close_job:
job_id: mixed-cluster-job job_id: mixed-cluster-job
# Wait for indices to be fully allocated before
# killing the node
- do:
cluster.health:
index: [".ml-state", ".ml-anomalies-shared"]
wait_for_status: green
--- ---
"Test get job with rules": "Test get job with rules":

View File

@ -49,6 +49,13 @@
job_id: old-cluster-job job_id: old-cluster-job
- match: { count: 1 } - match: { count: 1 }
# Wait for indices to be fully allocated before
# killing the node
- do:
cluster.health:
index: [".ml-state", ".ml-anomalies-shared"]
wait_for_status: green
--- ---
"Put job on the old cluster with the default model memory limit and post some data": "Put job on the old cluster with the default model memory limit and post some data":
- do: - do:
@ -96,6 +103,13 @@
job_id: no-model-memory-limit-job job_id: no-model-memory-limit-job
- match: { count: 201 } - match: { count: 201 }
# Wait for indices to be fully allocated before
# killing the node
- do:
cluster.health:
index: [".ml-state", ".ml-anomalies-shared"]
wait_for_status: green
--- ---
"Put job with empty strings in the configuration": "Put job with empty strings in the configuration":
- do: - do: