Add more javadoc and rename test

This commit is contained in:
David Pilato 2016-06-30 11:32:39 +02:00
parent 66e3b15d21
commit f9d22b3598
3 changed files with 4 additions and 2 deletions

View File

@ -256,9 +256,11 @@ public class GceDiscoveryTests extends ESTestCase {
} }
/** /**
* For issue https://github.com/elastic/elasticsearch/issues/16967 * For issue https://github.com/elastic/elasticsearch/issues/16967:
* When using multiple regions and one of them has no instance at all, this
* was producing a NPE as a result.
*/ */
public void testEmptyRegion16967() { public void testNoRegionReturnsEmptyList() {
Settings nodeSettings = Settings.builder() Settings nodeSettings = Settings.builder()
.put(GceComputeService.PROJECT_SETTING.getKey(), projectName) .put(GceComputeService.PROJECT_SETTING.getKey(), projectName)
.putArray(GceComputeService.ZONE_SETTING.getKey(), "europe-west1-b", "us-central1-a") .putArray(GceComputeService.ZONE_SETTING.getKey(), "europe-west1-b", "us-central1-a")