OpenSearch/x-pack/plugin/ilm/qa/multi-cluster
Gordon Brown c353ad71fe
Wrap ResponseException in AssertionError in ILM/CCR tests (#48489)
When checking for the existence of a document in the ILM/CCR integration
tests, `assertDocumentExists` makes an HTTP request and checks the
response code. However, if the repsonse code is not successful, the call
will throw a `ResponseException`. `assertDocumentExists` is often called
inside an `assertBusy`, and wrapping the `ResponseException` in an
`AssertionError` will allow the `assertBusy` to retry.

In particular, this fixes an issue with `testCCRUnfollowDuringSnapshot`
where the index in question may still be closed when the document is
requested.
2019-10-28 07:37:52 -07:00
..
src/test/java/org/elasticsearch/xpack/ilm Wrap ResponseException in AssertionError in ILM/CCR tests (#48489) 2019-10-28 07:37:52 -07:00
build.gradle Restrict which tasks can use testclusters (#45198) 2019-08-09 13:38:01 +03:00