Skip to content

Commit 20bd151

Browse files
authored
Make testCrossClusterEnrichWithOnlyRemotePrivs deterministic (#133261)
1 parent 87abf50 commit 20bd151

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

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)