Skip to content

Commit 8bef3f0

Browse files
Merge branch 'main' into shard-snapshot-limit-init-poc
2 parents 0b64258 + 5a6d3ae commit 8bef3f0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

libs/core/src/test/java/org/elasticsearch/core/GlobTests.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ public void testSuffixMatch() {
9696
var pattern = "*" + suffix;
9797
assertMatch(pattern, suffix);
9898
assertMatch(pattern, randomAsciiString(randomIntBetween(1, 30)) + suffix);
99-
assertNonMatch(pattern, suffix + "#" + randomValueOtherThan(suffix, () -> randomAsciiString(randomIntBetween(1, 30))));
99+
assertNonMatch(
100+
pattern,
101+
randomValueOtherThanMany(str -> str.endsWith(suffix), () -> suffix + "#" + randomAsciiString(randomIntBetween(1, 30)))
102+
);
100103
assertNonMatch(pattern, suffix.substring(0, suffix.length() - 1));
101104
assertNonMatch(pattern, suffix.substring(1));
102105
}

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -552,9 +552,6 @@ tests:
552552
- class: org.elasticsearch.test.rest.yaml.CcsCommonYamlTestSuiteIT
553553
method: test {p0=search/160_exists_query/Test exists query on unmapped boolean field}
554554
issue: https://github.com/elastic/elasticsearch/issues/133029
555-
- class: org.elasticsearch.xpack.remotecluster.RemoteClusterSecurityEsqlIT
556-
method: testCrossClusterEnrichWithOnlyRemotePrivs
557-
issue: https://github.com/elastic/elasticsearch/issues/133031
558555
- class: org.elasticsearch.test.rest.yaml.CcsCommonYamlTestSuiteIT
559556
method: test {p0=search.vectors/45_knn_search_bit/Vector similarity with filter only}
560557
issue: https://github.com/elastic/elasticsearch/issues/133037

x-pack/plugin/security/qa/multi-cluster/src/javaRestTest/java/org/elasticsearch/xpack/remotecluster/RemoteClusterSecurityEsqlIT.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -848,18 +848,18 @@ public void testCrossClusterEnrichWithOnlyRemotePrivs() throws Exception {
848848
| ENRICH countries
849849
| STATS size=count(*) by country
850850
| SORT size DESC
851-
| LIMIT 2"""));
851+
| LIMIT 3"""));
852852
assertOK(response);
853853

854854
Map<String, Object> responseAsMap = entityAsMap(response);
855855
List<?> columns = (List<?>) responseAsMap.get("columns");
856856
List<?> values = (List<?>) responseAsMap.get("values");
857857
assertEquals(2, columns.size());
858-
assertEquals(2, values.size());
858+
assertEquals(3, values.size());
859859
List<?> flatList = values.stream()
860860
.flatMap(innerList -> innerList instanceof List ? ((List<?>) innerList).stream() : Stream.empty())
861861
.collect(Collectors.toList());
862-
assertThat(flatList, containsInAnyOrder(1, 3, "usa", "germany"));
862+
assertThat(flatList, containsInAnyOrder(1, 1, 3, "usa", "germany", "japan"));
863863
}
864864

865865
private void createAliases() throws Exception {

0 commit comments

Comments
 (0)