Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
adding actuator health check support for Elasticsearch REST Clients #15211
IMO, unit testing of a health indicator that interacts with a server in what can be a reasonably complex way is of limited benefit. The danger is that you end up mocking out the server in a way that doesn't match how it behaves. We've seen problems along those lines with Couchbase, for example, where the health indicator was calling something that blocked for an unacceptably long time when a node was down. If there's a Docker image available for Elasticsearch, I'd explore using Testcontainers instead.