Merge branch 'stable-2.16' into stable-3.0
* stable-2.16: Elasticsearch: Unharcode localhost for container's Change-Id: Id798846df3bc48b4266cec545b2ad607a1a4a06b
This commit is contained in:
@@ -42,7 +42,9 @@ public class ElasticV6QueryProjectsTest extends AbstractQueryProjectsTest {
|
||||
}
|
||||
|
||||
container = ElasticContainer.createAndStart(ElasticVersion.V6_8);
|
||||
nodeInfo = new ElasticNodeInfo(container.getHttpHost().getPort());
|
||||
nodeInfo =
|
||||
new ElasticNodeInfo(
|
||||
container.getHttpHost().getHostName(), container.getHttpHost().getPort());
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
@@ -63,7 +65,8 @@ public class ElasticV6QueryProjectsTest extends AbstractQueryProjectsTest {
|
||||
Config elasticsearchConfig = new Config(config);
|
||||
InMemoryModule.setDefaults(elasticsearchConfig);
|
||||
String indicesPrefix = getSanitizedMethodName();
|
||||
ElasticTestUtils.configure(elasticsearchConfig, nodeInfo.port, indicesPrefix);
|
||||
ElasticTestUtils.configure(
|
||||
elasticsearchConfig, nodeInfo.hostname, nodeInfo.port, indicesPrefix);
|
||||
return Guice.createInjector(new InMemoryModule(elasticsearchConfig));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user