Skip to content

Commit bbf64a6

Browse files
committed
test fix
1 parent ad43008 commit bbf64a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

x-pack/plugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/RequestIndexFilteringTestCase.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ public void testIndicesDontExist() throws IOException {
199199
indexTimestampData(docsTest1, "test1", "2024-11-26", "id1");
200200

201201
ResponseException e = expectThrows(ResponseException.class, () -> runEsql(timestampFilter("gte", "2020-01-01").query(from("foo"))));
202-
assertEquals(400, e.getResponse().getStatusLine().getStatusCode());
203-
assertThat(e.getMessage(), containsString("verification_exception"));
204-
assertThat(e.getMessage(), anyOf(containsString("Unknown index [foo]"), containsString("Unknown index [remote_cluster:foo]")));
202+
assertEquals(404, e.getResponse().getStatusLine().getStatusCode());
203+
assertThat(e.getMessage(), containsString("index_not_found_exception"));
204+
assertThat(e.getMessage(), anyOf(containsString("no such index [foo]"), containsString("Unknown index [remote_cluster:foo]")));
205205

206206
e = expectThrows(ResponseException.class, () -> runEsql(timestampFilter("gte", "2020-01-01").query(from("foo*"))));
207207
assertEquals(400, e.getResponse().getStatusLine().getStatusCode());

0 commit comments

Comments
 (0)