kibana/test/api_integration/apis/data_views/resolve_index
Lukas Olson 0952f6e0f5
Fix resolve index API to not throw 500 when encountering no_such_remote_cluster_exception (#204802)
## Summary

Fixes https://github.com/elastic/kibana/issues/197747.

Updates the `/internal/index-pattern-management/resolve_index/{query}`
route to properly handle `no_such_remote_cluster_exception` and return
`404` rather than `500` server error.

Adds unit tests for the route handler.

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: Julia Rechkunova <julia.rechkunova@gmail.com>
2024-12-19 14:55:29 -07:00
..
index.ts Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
resolve_index.ts Fix resolve index API to not throw 500 when encountering no_such_remote_cluster_exception (#204802) 2024-12-19 14:55:29 -07:00