elasticsearch/elasticsearch — pull request #7737 by javanna (2014-09-16 10:49:18+00:00)
Title: [TEST] Update REST client before each test in our REST tests

In #7723 we removed the `updateAddresses` method from `RestClient` under the assumption that the addresses never change during the suite execution, as REST tests rely on the global cluster. Due to #6734 we restart the global cluster though before each test if there was a failure in the suite. If that happens we do need to make sure that the REST client points to the proper nodes. What was missing before was the http call to verify the es version every time the addresses change, which we do now since we effectively recreate the REST client from scratch when needed (if the http addresses have changed).