Skip to content

Commit 68d953b

Browse files
authored
Merge branch '9.0' into backport/9.0/pr-125632
2 parents 0b24ead + 093fdc0 commit 68d953b

File tree

33 files changed

+394
-74
lines changed

33 files changed

+394
-74
lines changed

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/RestrictedBuildApiService.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,7 @@ private static ListMultimap<Class<?>, String> createLegacyRestTestBasePluginUsag
2929
ListMultimap<Class<?>, String> map = ArrayListMultimap.create(1, 200);
3030
map.put(LegacyRestTestBasePlugin.class, ":docs");
3131
map.put(LegacyRestTestBasePlugin.class, ":distribution:docker");
32-
map.put(LegacyRestTestBasePlugin.class, ":modules:lang-expression");
33-
map.put(LegacyRestTestBasePlugin.class, ":modules:lang-mustache");
34-
map.put(LegacyRestTestBasePlugin.class, ":modules:mapper-extras");
35-
map.put(LegacyRestTestBasePlugin.class, ":modules:parent-join");
36-
map.put(LegacyRestTestBasePlugin.class, ":modules:percolator");
37-
map.put(LegacyRestTestBasePlugin.class, ":modules:rank-eval");
3832
map.put(LegacyRestTestBasePlugin.class, ":modules:reindex");
39-
map.put(LegacyRestTestBasePlugin.class, ":modules:repository-url");
40-
map.put(LegacyRestTestBasePlugin.class, ":modules:transport-netty4");
4133
map.put(LegacyRestTestBasePlugin.class, ":plugins:analysis-icu");
4234
map.put(LegacyRestTestBasePlugin.class, ":plugins:analysis-kuromoji");
4335
map.put(LegacyRestTestBasePlugin.class, ":plugins:analysis-nori");

docs/changelog/124048.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 124048
2+
summary: Handle long overflow in dates
3+
area: Search
4+
type: bug
5+
issues:
6+
- 112483

docs/changelog/125650.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pr: 125650
2+
summary: Load `FieldInfos` from store if not yet initialised through a refresh on
3+
`IndexShard`
4+
area: Search
5+
type: bug
6+
issues:
7+
- 125483

modules/lang-expression/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
* your election, the "Elastic License 2.0", the "GNU Affero General Public
77
* License v3.0 only", or the "Server Side Public License, v 1".
88
*/
9-
apply plugin: 'elasticsearch.legacy-yaml-rest-test'
10-
apply plugin: 'elasticsearch.legacy-yaml-rest-compat-test'
9+
apply plugin: 'elasticsearch.internal-yaml-rest-test'
10+
apply plugin: 'elasticsearch.yaml-rest-compat-test'
1111
apply plugin: 'elasticsearch.internal-cluster-test'
1212

1313
esplugin {

modules/lang-expression/src/yamlRestTest/java/org/elasticsearch/script/expression/LangExpressionClientYamlTestSuiteIT.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,16 @@
1212
import com.carrotsearch.randomizedtesting.annotations.Name;
1313
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;
1414

15+
import org.elasticsearch.test.cluster.ElasticsearchCluster;
1516
import org.elasticsearch.test.rest.yaml.ClientYamlTestCandidate;
1617
import org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase;
18+
import org.junit.ClassRule;
1719

1820
public class LangExpressionClientYamlTestSuiteIT extends ESClientYamlSuiteTestCase {
1921

22+
@ClassRule
23+
public static ElasticsearchCluster cluster = ElasticsearchCluster.local().module("lang-expression").build();
24+
2025
public LangExpressionClientYamlTestSuiteIT(@Name("yaml") ClientYamlTestCandidate testCandidate) {
2126
super(testCandidate);
2227
}
@@ -25,4 +30,9 @@ public LangExpressionClientYamlTestSuiteIT(@Name("yaml") ClientYamlTestCandidate
2530
public static Iterable<Object[]> parameters() throws Exception {
2631
return ESClientYamlSuiteTestCase.createParameters();
2732
}
33+
34+
@Override
35+
protected String getTestRestCluster() {
36+
return cluster.getHttpAddresses();
37+
}
2838
}

modules/lang-mustache/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
* your election, the "Elastic License 2.0", the "GNU Affero General Public
77
* License v3.0 only", or the "Server Side Public License, v 1".
88
*/
9-
apply plugin: 'elasticsearch.legacy-yaml-rest-test'
10-
apply plugin: 'elasticsearch.legacy-yaml-rest-compat-test'
11-
apply plugin: 'elasticsearch.legacy-java-rest-test'
9+
apply plugin: 'elasticsearch.internal-yaml-rest-test'
10+
apply plugin: 'elasticsearch.internal-java-rest-test'
11+
apply plugin: 'elasticsearch.yaml-rest-compat-test'
1212
apply plugin: 'elasticsearch.internal-cluster-test'
1313

1414
esplugin {

modules/lang-mustache/src/javaRestTest/java/org/elasticsearch/script/mustache/SearchTemplateWithoutContentIT.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,19 @@
1111

1212
import org.elasticsearch.client.Request;
1313
import org.elasticsearch.client.ResponseException;
14+
import org.elasticsearch.test.cluster.ElasticsearchCluster;
1415
import org.elasticsearch.test.rest.ESRestTestCase;
16+
import org.junit.ClassRule;
1517

1618
import java.io.IOException;
1719

1820
import static org.hamcrest.CoreMatchers.containsString;
1921

2022
public class SearchTemplateWithoutContentIT extends ESRestTestCase {
2123

24+
@ClassRule
25+
public static ElasticsearchCluster cluster = ElasticsearchCluster.local().module("lang-mustache").build();
26+
2227
public void testSearchTemplateMissingBody() throws IOException {
2328
ResponseException responseException = expectThrows(
2429
ResponseException.class,
@@ -36,4 +41,9 @@ public void testMultiSearchTemplateMissingBody() throws IOException {
3641
assertEquals(400, responseException.getResponse().getStatusLine().getStatusCode());
3742
assertThat(responseException.getMessage(), containsString("request body or source parameter is required"));
3843
}
44+
45+
@Override
46+
protected String getTestRestCluster() {
47+
return cluster.getHttpAddresses();
48+
}
3949
}

modules/lang-mustache/src/yamlRestTest/java/org/elasticsearch/script/mustache/LangMustacheClientYamlTestSuiteIT.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,16 @@
1212
import com.carrotsearch.randomizedtesting.annotations.Name;
1313
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;
1414

15+
import org.elasticsearch.test.cluster.ElasticsearchCluster;
1516
import org.elasticsearch.test.rest.yaml.ClientYamlTestCandidate;
1617
import org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase;
18+
import org.junit.ClassRule;
1719

1820
public class LangMustacheClientYamlTestSuiteIT extends ESClientYamlSuiteTestCase {
1921

22+
@ClassRule
23+
public static ElasticsearchCluster cluster = ElasticsearchCluster.local().module("lang-mustache").build();
24+
2025
public LangMustacheClientYamlTestSuiteIT(@Name("yaml") ClientYamlTestCandidate testCandidate) {
2126
super(testCandidate);
2227
}
@@ -25,4 +30,9 @@ public LangMustacheClientYamlTestSuiteIT(@Name("yaml") ClientYamlTestCandidate t
2530
public static Iterable<Object[]> parameters() throws Exception {
2631
return ESClientYamlSuiteTestCase.createParameters();
2732
}
33+
34+
@Override
35+
protected String getTestRestCluster() {
36+
return cluster.getHttpAddresses();
37+
}
2838
}

modules/rank-eval/build.gradle

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
* your election, the "Elastic License 2.0", the "GNU Affero General Public
77
* License v3.0 only", or the "Server Side Public License, v 1".
88
*/
9-
apply plugin: 'elasticsearch.legacy-yaml-rest-test'
10-
apply plugin: 'elasticsearch.legacy-yaml-rest-compat-test'
9+
apply plugin: 'elasticsearch.internal-yaml-rest-test'
10+
apply plugin: 'elasticsearch.yaml-rest-compat-test'
1111
apply plugin: 'elasticsearch.internal-cluster-test'
1212

1313
esplugin {
@@ -21,7 +21,6 @@ restResources {
2121
}
2222
}
2323

24-
testClusters.configureEach {
25-
// Modules who's integration is explicitly tested in integration tests
26-
module ':modules:lang-mustache'
24+
dependencies {
25+
clusterModules project(':modules:lang-mustache')
2726
}

modules/rank-eval/src/yamlRestTest/java/org/elasticsearch/index/rankeval/RankEvalYamlIT.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,16 @@
1212
import com.carrotsearch.randomizedtesting.annotations.Name;
1313
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;
1414

15+
import org.elasticsearch.test.cluster.ElasticsearchCluster;
1516
import org.elasticsearch.test.rest.yaml.ClientYamlTestCandidate;
1617
import org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase;
18+
import org.junit.ClassRule;
1719

1820
public class RankEvalYamlIT extends ESClientYamlSuiteTestCase {
21+
22+
@ClassRule
23+
public static ElasticsearchCluster cluster = ElasticsearchCluster.local().module("lang-mustache").module("rank-eval").build();
24+
1925
public RankEvalYamlIT(@Name("yaml") ClientYamlTestCandidate testCandidate) {
2026
super(testCandidate);
2127
}
@@ -24,4 +30,9 @@ public RankEvalYamlIT(@Name("yaml") ClientYamlTestCandidate testCandidate) {
2430
public static Iterable<Object[]> parameters() throws Exception {
2531
return ESClientYamlSuiteTestCase.createParameters();
2632
}
33+
34+
@Override
35+
protected String getTestRestCluster() {
36+
return cluster.getHttpAddresses();
37+
}
2738
}

0 commit comments

Comments
 (0)