Merge branch 'stable-2.14' into stable-2.15
* stable-2.14: Make ElasticIndexIT tests fail if test container fails to start Change-Id: I709c31cddf708026fc0478cb3fb7c9effb0e4fca
This commit is contained in:
@@ -28,12 +28,8 @@ public class ElasticIndexIT extends AbstractIndexTests {
|
|||||||
|
|
||||||
private static Config getConfig(ElasticVersion version) {
|
private static Config getConfig(ElasticVersion version) {
|
||||||
ElasticNodeInfo elasticNodeInfo;
|
ElasticNodeInfo elasticNodeInfo;
|
||||||
try {
|
container = ElasticContainer.createAndStart(version);
|
||||||
container = ElasticContainer.createAndStart(version);
|
elasticNodeInfo = new ElasticNodeInfo(container.getHttpHost().getPort());
|
||||||
elasticNodeInfo = new ElasticNodeInfo(container.getHttpHost().getPort());
|
|
||||||
} catch (Throwable t) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
String indicesPrefix = UUID.randomUUID().toString();
|
String indicesPrefix = UUID.randomUUID().toString();
|
||||||
Config cfg = new Config();
|
Config cfg = new Config();
|
||||||
ElasticTestUtils.configure(cfg, elasticNodeInfo.port, indicesPrefix);
|
ElasticTestUtils.configure(cfg, elasticNodeInfo.port, indicesPrefix);
|
||||||
|
|||||||
Reference in New Issue
Block a user