forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fleet] throw fleet error on yaml error (elastic#210363)
## Summary Closes elastic#210341 Catch yaml error when updating package policies to throw a Fleet error, this results in a 400 response code instead of 500 which caused a PD alert in serverless. To verify: - add System integration, then go to Edit integration policy - add the yaml below to Processors - click on Save and continue - expect a HTTP 400 error response ``` data_stream: dataset: test processors: - add_host_metadata: \~ - add_cloud_metadata: \~ ``` <img width="2551" alt="image" src="https://github.com/user-attachments/assets/0c839601-e278-4715-a7e9-743235e69832" /> ### Checklist - [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
- Loading branch information
1 parent
bcc5389
commit 734a63d
Showing
2 changed files
with
38 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters