From 9013b4576a6f6e8c7372175d5fb85d9cf385cfa8 Mon Sep 17 00:00:00 2001 From: Yuliia Naumenko Date: Wed, 20 May 2020 17:25:00 -0700 Subject: [PATCH] fixed readme and test --- x-pack/plugins/actions/README.md | 8 ++++---- x-pack/plugins/siem/public/cases/containers/api.test.tsx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/x-pack/plugins/actions/README.md b/x-pack/plugins/actions/README.md index 3ddbfd65f0cc1b5..54d519a5d79e74d 100644 --- a/x-pack/plugins/actions/README.md +++ b/x-pack/plugins/actions/README.md @@ -28,9 +28,9 @@ Table of Contents - [RESTful API](#restful-api) - [`POST /api/action`: Create action](#post-apiaction-create-action) - [`DELETE /api/actions/{id}`: Delete action](#delete-apiactionid-delete-action) - - [`GET /api/actions/_getAll`: Get all actions](#get-apiactiongetall-get-all-actions) + - [`GET /api/actions`: Get all actions](#get-apiactiongetall-get-all-actions) - [`GET /api/actions/{id}`: Get action](#get-apiactionid-get-action) - - [`GET /api/actions/types`: List action types](#get-apiactiontypes-list-action-types) + - [`GET /api/actions/list_action_types`: List action types](#get-apiactiontypes-list-action-types) - [`PUT /api/actions/{id}`: Update action](#put-apiactionid-update-action) - [`POST /api/actions/{id}/_execute`: Execute action](#post-apiactionidexecute-execute-action) - [Firing actions](#firing-actions) @@ -182,7 +182,7 @@ Params: | -------- | --------------------------------------------- | ------ | | id | The id of the action you're trying to delete. | string | -### `GET /api/actions/_getAll`: Get all actions +### `GET /api/actions`: Get all actions No parameters. @@ -198,7 +198,7 @@ Params: | -------- | ------------------------------------------ | ------ | | id | The id of the action you're trying to get. | string | -### `GET /api/actions/types`: List action types +### `GET /api/actions/list_action_types`: List action types No parameters. diff --git a/x-pack/plugins/siem/public/cases/containers/api.test.tsx b/x-pack/plugins/siem/public/cases/containers/api.test.tsx index cc3519fbea05715..0784b56172c2853 100644 --- a/x-pack/plugins/siem/public/cases/containers/api.test.tsx +++ b/x-pack/plugins/siem/public/cases/containers/api.test.tsx @@ -88,7 +88,7 @@ describe('Case Configuration API', () => { }); test('check url, method, signal', async () => { await getActionLicense(abortCtrl.signal); - expect(fetchMock).toHaveBeenCalledWith(`/api/actions/types`, { + expect(fetchMock).toHaveBeenCalledWith(`/api/actions/list_action_types`, { method: 'GET', signal: abortCtrl.signal, });