Skip to content

Commit 95b8da2

Browse files
committed
update error message
1 parent c2460f6 commit 95b8da2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public void testDataframeAnalyticsNotSupportForRemoteIndices() {
200200
""");
201201
final ResponseException e = expectThrows(ResponseException.class, () -> performRequestWithRemoteMlUser(putDataframeAnalytics));
202202
assertThat(e.getResponse().getStatusLine().getStatusCode(), equalTo(400));
203-
assertThat(e.getMessage(), containsString("remote source indices are not supported"));
203+
assertThat(e.getMessage(), containsString("remote source and cross-project indices are not supported"));
204204
}
205205

206206
private Response performRequestWithRemoteMlUser(final Request request) throws IOException {

x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/ml/data_frame_analytics_crud.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ setup:
432432
"Test put config with remote source index":
433433

434434
- do:
435-
catch: /.*Validation Failed.* remote source indices are not supported/
435+
catch: /.*Validation Failed.* remote source and cross-project indices are not supported/
436436
ml.put_data_frame_analytics:
437437
id: "config-with-missing-concrete-source-index"
438438
body: >

0 commit comments

Comments
 (0)