kibana/test
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
..
accessibility [Console] UX Improvements for phase 2 (#190698) 2024-09-17 16:35:20 +03:00
analytics Add filters option to ftr_helper api (#196886) 2024-10-23 19:18:05 +02:00
api_integration Fix resolve index API to not throw 500 when encountering no_such_remote_cluster_exception (#204802) 2024-12-19 14:55:29 -07:00
common Categorise Kibana plugins - Wave 2 (#199302) 2024-11-08 12:45:20 +01:00
examples Remove bfetch explorer example plugin (#204284) 2024-12-16 10:28:58 -07:00
functional [Discover] Reintroduce ESQL request count tests (#204925) 2024-12-19 12:44:25 -06:00
harden Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
health_gateway Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
interactive_setup_api_integration FIPS FTR Overrides and test skips (#192053) 2024-09-10 13:17:40 -04:00
interactive_setup_functional chore(security, eslint): apply platform security-specific rules to all exclusively owned paths. (#195711) 2024-10-11 09:49:12 +02:00
interpreter_functional Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
node_roles_functional Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
package [CI / FIPS] Convert smoke tests to use FIPS agent (#186858) 2024-06-26 12:55:51 -07:00
plugin_functional [Search] Deprecate canDeployEntSearch config value (#204272) 2024-12-17 07:16:33 -06:00
scripts [ci] Remove jenkins config (#173745) 2023-12-21 12:09:43 -06:00
server_integration Enabling Full FTR, Integration, and Unit tests to the FIPS Test Pipeline (#192632) 2024-11-19 08:31:47 -05:00
ui_capabilities/newsfeed_err Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kibana.jsonc Sustainable Kibana Architecture: Categorise straightforward packages (#199630) 2024-11-22 10:33:25 +01:00
tsconfig.json Disable log stream and settings pages (#203996) 2024-12-19 11:07:46 +00:00