kibana/test/api_integration/apis/data_views
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
..
data_views_crud Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
default_index_pattern Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
deprecations [Data Views] Disable scripted field creation in the Data Views management page (#202250) 2024-12-05 20:11:34 -04:00
es_errors Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
existing_indices_route [http] api_integration tests handle internal route restriction (#192407) 2024-09-12 09:23:10 +02:00
fields_api Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
fields_for_wildcard_route [Discover][Field caps] Align with the ES responses for closed indices (#199717) 2024-11-19 04:42:28 -06:00
fields_route [http] api_integration tests handle internal route restriction (#192407) 2024-09-12 09:23:10 +02:00
has_user_index_pattern [http] api_integration tests handle internal route restriction (#192407) 2024-09-12 09:23:10 +02:00
integration Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
resolve_index Fix resolve index API to not throw 500 when encountering no_such_remote_cluster_exception (#204802) 2024-12-19 14:55:29 -07:00
runtime_fields_crud Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
scripted_fields_crud Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
swap_references Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
constants.ts Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
index.ts Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00