Merge branch 'stable-2.14' into stable-2.15
* stable-2.14: Make ElasticReindexIT tests fail if test container fails to start Change-Id: I99a05df36ed273bb0af6c670d329a9e95a3505da
This commit is contained in:
@@ -29,12 +29,8 @@ public class ElasticReindexIT extends AbstractReindexTests {
|
|||||||
@ConfigSuite.Default
|
@ConfigSuite.Default
|
||||||
public static Config elasticsearch() {
|
public static Config elasticsearch() {
|
||||||
ElasticNodeInfo elasticNodeInfo;
|
ElasticNodeInfo elasticNodeInfo;
|
||||||
try {
|
container = ElasticContainer.createAndStart();
|
||||||
container = ElasticContainer.createAndStart();
|
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