forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ResponseOps][Connectors] Allow to use POST method for get case infor…
…mation in case management webhook (elastic#197437) ## Summary Resolves elastic#178074 This PR allows to use POST method and JSON payload for body for get case information in case management webhook. <img width="1279" alt="Screenshot 2024-10-24 at 15 02 33" src="https://github.com/user-attachments/assets/aaabc5b8-cd9e-46d6-aab8-85a27731bd88"> ### How to test - Create a case management webhook connector [as per documentation](https://www.elastic.co/guide/en/kibana/master/cases-webhook-action-type.html) - Use any public API which supports GET and POST methods - Use POST method for Get case information - Verify that it validates the URL and JSON payload correctly - Test the connector using Test tab - Create a rule with action using case management webhook connector - Verify alerts are generated and action executed without any errors ### Checklist Delete any items that are not applicable to this PR. - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) - [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 - [x] Any UI touched in this PR is usable by keyboard only (learn more about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- Loading branch information
1 parent
08cf1ee
commit d81d071
Showing
13 changed files
with
775 additions
and
94 deletions.
There are no files selected for viewing
72 changes: 72 additions & 0 deletions
72
x-pack/plugins/actions/server/integration_tests/__snapshots__/connector_types.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,5 @@ export enum WebhookMethods { | |
PATCH = 'patch', | ||
POST = 'post', | ||
PUT = 'put', | ||
GET = 'get', | ||
} |
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
Oops, something went wrong.