Merge branch 'stable-3.1' into stable-3.2
* stable-3.1: Set version to 3.1.12-SNAPSHOT Set version to 3.1.11 Fix httpcore dependency needed by httpclient Revert "Add support for Elasticsearch version 7.9.*" Revert "Add support for Elasticsearch version 7.10.*" Change-Id: I333a2434d66df525aa85687d9cc0134e7a398c21
This commit is contained in:
@@ -840,8 +840,8 @@ maven_jar(
|
|||||||
|
|
||||||
maven_jar(
|
maven_jar(
|
||||||
name = "httpcore",
|
name = "httpcore",
|
||||||
artifact = "org.apache.httpcomponents:httpcore:4.4.12",
|
artifact = "org.apache.httpcomponents:httpcore:4.4.4",
|
||||||
sha1 = "21ebaf6d532bc350ba95bd81938fa5f0e511c132",
|
sha1 = "b31526a230871fbe285fbcbe2813f9c0839ae9b0",
|
||||||
)
|
)
|
||||||
|
|
||||||
# Test-only dependencies below.
|
# Test-only dependencies below.
|
||||||
|
|||||||
@@ -24,9 +24,7 @@ public enum ElasticVersion {
|
|||||||
V7_5("7.5.*"),
|
V7_5("7.5.*"),
|
||||||
V7_6("7.6.*"),
|
V7_6("7.6.*"),
|
||||||
V7_7("7.7.*"),
|
V7_7("7.7.*"),
|
||||||
V7_8("7.8.*"),
|
V7_8("7.8.*");
|
||||||
V7_9("7.9.*"),
|
|
||||||
V7_10("7.10.*");
|
|
||||||
|
|
||||||
private final String version;
|
private final String version;
|
||||||
private final Pattern pattern;
|
private final Pattern pattern;
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ public class ElasticReindexIT extends AbstractReindexTests {
|
|||||||
|
|
||||||
@ConfigSuite.Default
|
@ConfigSuite.Default
|
||||||
public static Config elasticsearchV7() {
|
public static Config elasticsearchV7() {
|
||||||
return getConfig(ElasticVersion.V7_10);
|
return getConfig(ElasticVersion.V7_8);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ public class ElasticIndexIT extends AbstractIndexTests {
|
|||||||
|
|
||||||
@ConfigSuite.Default
|
@ConfigSuite.Default
|
||||||
public static Config elasticsearchV7() {
|
public static Config elasticsearchV7() {
|
||||||
return getConfig(ElasticVersion.V7_10);
|
return getConfig(ElasticVersion.V7_8);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -53,10 +53,6 @@ public class ElasticContainer extends ElasticsearchContainer {
|
|||||||
return "blacktop/elasticsearch:7.7.1";
|
return "blacktop/elasticsearch:7.7.1";
|
||||||
case V7_8:
|
case V7_8:
|
||||||
return "blacktop/elasticsearch:7.8.1";
|
return "blacktop/elasticsearch:7.8.1";
|
||||||
case V7_9:
|
|
||||||
return "blacktop/elasticsearch:7.9.3";
|
|
||||||
case V7_10:
|
|
||||||
return "blacktop/elasticsearch:7.10.1";
|
|
||||||
}
|
}
|
||||||
throw new IllegalStateException("No tests for version: " + version.name());
|
throw new IllegalStateException("No tests for version: " + version.name());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ public class ElasticV7QueryAccountsTest extends AbstractQueryAccountsTest {
|
|||||||
public static void startIndexService() {
|
public static void startIndexService() {
|
||||||
if (container == null) {
|
if (container == null) {
|
||||||
// Only start Elasticsearch once
|
// Only start Elasticsearch once
|
||||||
container = ElasticContainer.createAndStart(ElasticVersion.V7_10);
|
container = ElasticContainer.createAndStart(ElasticVersion.V7_8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ public class ElasticV7QueryChangesTest extends AbstractQueryChangesTest {
|
|||||||
public static void startIndexService() {
|
public static void startIndexService() {
|
||||||
if (container == null) {
|
if (container == null) {
|
||||||
// Only start Elasticsearch once
|
// Only start Elasticsearch once
|
||||||
container = ElasticContainer.createAndStart(ElasticVersion.V7_10);
|
container = ElasticContainer.createAndStart(ElasticVersion.V7_8);
|
||||||
client = HttpAsyncClients.createDefault();
|
client = HttpAsyncClients.createDefault();
|
||||||
client.start();
|
client.start();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ public class ElasticV7QueryGroupsTest extends AbstractQueryGroupsTest {
|
|||||||
public static void startIndexService() {
|
public static void startIndexService() {
|
||||||
if (container == null) {
|
if (container == null) {
|
||||||
// Only start Elasticsearch once
|
// Only start Elasticsearch once
|
||||||
container = ElasticContainer.createAndStart(ElasticVersion.V7_10);
|
container = ElasticContainer.createAndStart(ElasticVersion.V7_8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ public class ElasticV7QueryProjectsTest extends AbstractQueryProjectsTest {
|
|||||||
public static void startIndexService() {
|
public static void startIndexService() {
|
||||||
if (container == null) {
|
if (container == null) {
|
||||||
// Only start Elasticsearch once
|
// Only start Elasticsearch once
|
||||||
container = ElasticContainer.createAndStart(ElasticVersion.V7_10);
|
container = ElasticContainer.createAndStart(ElasticVersion.V7_8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -42,12 +42,6 @@ public class ElasticVersionTest {
|
|||||||
|
|
||||||
assertThat(ElasticVersion.forVersion("7.8.0")).isEqualTo(ElasticVersion.V7_8);
|
assertThat(ElasticVersion.forVersion("7.8.0")).isEqualTo(ElasticVersion.V7_8);
|
||||||
assertThat(ElasticVersion.forVersion("7.8.1")).isEqualTo(ElasticVersion.V7_8);
|
assertThat(ElasticVersion.forVersion("7.8.1")).isEqualTo(ElasticVersion.V7_8);
|
||||||
|
|
||||||
assertThat(ElasticVersion.forVersion("7.9.0")).isEqualTo(ElasticVersion.V7_9);
|
|
||||||
assertThat(ElasticVersion.forVersion("7.9.1")).isEqualTo(ElasticVersion.V7_9);
|
|
||||||
|
|
||||||
assertThat(ElasticVersion.forVersion("7.10.0")).isEqualTo(ElasticVersion.V7_10);
|
|
||||||
assertThat(ElasticVersion.forVersion("7.10.1")).isEqualTo(ElasticVersion.V7_10);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
@@ -97,8 +97,8 @@ def declare_nongoogle_deps():
|
|||||||
# org.apache.httpcomponents dependencies in ../WORKSPACE.
|
# org.apache.httpcomponents dependencies in ../WORKSPACE.
|
||||||
maven_jar(
|
maven_jar(
|
||||||
name = "elasticsearch-rest-client",
|
name = "elasticsearch-rest-client",
|
||||||
artifact = "org.elasticsearch.client:elasticsearch-rest-client:7.10.1",
|
artifact = "org.elasticsearch.client:elasticsearch-rest-client:7.8.1",
|
||||||
sha1 = "b2e89d266c2c0039a69504f78c9230582ea095ee",
|
sha1 = "59feefe006a96a39f83b0dfb6780847e06c1d0a8",
|
||||||
)
|
)
|
||||||
|
|
||||||
maven_jar(
|
maven_jar(
|
||||||
|
|||||||
Reference in New Issue
Block a user