File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
x-pack/plugin/security/qa/multi-cluster/src/javaRestTest/java/org/elasticsearch/xpack/remotecluster Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -146,9 +146,6 @@ tests:
146146- class : org.elasticsearch.action.search.SearchQueryThenFetchAsyncActionTests
147147 method : testBottomFieldSort
148148 issue : https://github.com/elastic/elasticsearch/issues/118214
149- - class : org.elasticsearch.xpack.remotecluster.CrossClusterEsqlRCS1UnavailableRemotesIT
150- method : testEsqlRcs1UnavailableRemoteScenarios
151- issue : https://github.com/elastic/elasticsearch/issues/118350
152149- class : org.elasticsearch.xpack.searchablesnapshots.RetrySearchIntegTests
153150 method : testSearcherId
154151 issue : https://github.com/elastic/elasticsearch/issues/118374
Original file line number Diff line number Diff line change 2626
2727import static org .hamcrest .CoreMatchers .containsString ;
2828import static org .hamcrest .CoreMatchers .is ;
29+ import static org .hamcrest .Matchers .anyOf ;
2930import static org .hamcrest .Matchers .greaterThan ;
3031
3132public class CrossClusterEsqlRCS1UnavailableRemotesIT extends AbstractRemoteClusterSecurityTestCase {
@@ -178,7 +179,14 @@ private void remoteClusterShutdownWithSkipUnavailableFalse() throws Exception {
178179 // A simple query that targets our remote cluster.
179180 String query = "FROM *,my_remote_cluster:* | LIMIT 10" ;
180181 ResponseException ex = expectThrows (ResponseException .class , () -> client ().performRequest (esqlRequest (query )));
181- assertThat (ex .getMessage (), containsString ("connect_transport_exception" ));
182+ assertThat (
183+ ex .getMessage (),
184+ anyOf (
185+ containsString ("connect_transport_exception" ),
186+ containsString ("node_disconnected_exception" ),
187+ containsString ("node_not_connected_exception" )
188+ )
189+ );
182190 } finally {
183191 fulfillingCluster .start ();
184192 closeFulfillingClusterClient ();
You can’t perform that action at this time.
0 commit comments