[ML] wait for yellow state for stats index in tests (#58436) (#58456)

GET inference stats now reads from the .ml-stats index.

Our tests should wait for yellow state before attempting to query the index for stat information.
This commit is contained in:
Benjamin Trent 2020-06-23 13:32:24 -04:00 committed by GitHub
parent affc3954e6
commit 0cc84d3caf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -96,6 +96,12 @@ setup:
}
]
}
- do:
headers:
Authorization: "Basic eF9wYWNrX3Jlc3RfdXNlcjp4LXBhY2stdGVzdC1wYXNzd29yZA==" # run as x_pack_rest_user, i.e. the test setup superuser
cluster.health:
wait_for_status: yellow
index: .ml-stats*
---
"Test get stats given missing trained model":