From 09fa42973f57033cac7c06ca81865fdd1120feb8 Mon Sep 17 00:00:00 2001 From: Yulia Cech Date: Mon, 28 Mar 2022 15:54:17 +0200 Subject: [PATCH] [IM] Reverted unrelated ResponseError interface changes --- .../__jest__/client_integration/helpers/http_requests.ts | 6 +++--- .../__jest__/client_integration/home/indices_tab.test.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/x-pack/plugins/index_management/__jest__/client_integration/helpers/http_requests.ts b/x-pack/plugins/index_management/__jest__/client_integration/helpers/http_requests.ts index ae4200ff182235..2be3d9c9460cf9 100644 --- a/x-pack/plugins/index_management/__jest__/client_integration/helpers/http_requests.ts +++ b/x-pack/plugins/index_management/__jest__/client_integration/helpers/http_requests.ts @@ -12,9 +12,9 @@ type HttpResponse = Record | any[]; type HttpMethod = 'GET' | 'PUT' | 'DELETE' | 'POST'; export interface ResponseError { - status: number; - error: string; - message: string; + statusCode: number; + message: string | Error; + attributes?: Record; } // Register helpers to mock HTTP Requests diff --git a/x-pack/plugins/index_management/__jest__/client_integration/home/indices_tab.test.ts b/x-pack/plugins/index_management/__jest__/client_integration/home/indices_tab.test.ts index 5f2a08f725eafc..541f2b587b69f1 100644 --- a/x-pack/plugins/index_management/__jest__/client_integration/home/indices_tab.test.ts +++ b/x-pack/plugins/index_management/__jest__/client_integration/home/indices_tab.test.ts @@ -403,7 +403,7 @@ describe('', () => { }`); const error = { - status: 400, + statusCode: 400, error: 'Bad Request', message: 'invalid tier names found in ...', };