From ec0cc3b7a5a7a4e69ae1fb482920ce9b4b916dc5 Mon Sep 17 00:00:00 2001 From: Derek Ho Date: Thu, 8 Jun 2023 15:47:07 -0400 Subject: [PATCH] fix test Signed-off-by: Derek Ho --- .../added_integration_flyout.test.tsx.snap | 24 ++++++++++++------- .../integrations_kibana_backend.ts | 4 ++-- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/public/components/integrations/components/__tests__/__snapshots__/added_integration_flyout.test.tsx.snap b/public/components/integrations/components/__tests__/__snapshots__/added_integration_flyout.test.tsx.snap index 1df9c66f85..a9b99a73ec 100644 --- a/public/components/integrations/components/__tests__/__snapshots__/added_integration_flyout.test.tsx.snap +++ b/public/components/integrations/components/__tests__/__snapshots__/added_integration_flyout.test.tsx.snap @@ -85,7 +85,8 @@ exports[`Add Integration Flyout Test Renders add integration flyout with dummy i class="euiFormLegend" > - Add an integration based on a SS4O compliant existing index pattern or data stream or create a SS4O compliant data source for this integration to read from + + Add an integration based on a SS4O compliant existing index pattern or data stream or create a SS4O compliant data source for this integration to read from
- Add an integration based on a SS4O compliant existing index pattern or data stream or create a SS4O compliant data source for this integration to read from + + Add an integration based on a SS4O compliant existing index pattern or data stream or create a SS4O compliant data source for this integration to read from
- Add an integration based on a SS4O compliant existing index pattern or data stream or create a SS4O compliant data source for this integration to read from + + Add an integration based on a SS4O compliant existing index pattern or data stream or create a SS4O compliant data source for this integration to read from
- Add an integration based on a SS4O compliant existing index pattern or data stream or create a SS4O compliant data source for this integration to read from + + Add an integration based on a SS4O compliant existing index pattern or data stream or create a SS4O compliant data source for this integration to read from
- Add an integration based on a SS4O compliant existing index pattern or data stream or create a SS4O compliant data source for this integration to read from + + Add an integration based on a SS4O compliant existing index pattern or data stream or create a SS4O compliant data source for this integration to read from
- Add an integration based on a SS4O compliant existing index pattern or data stream or create a SS4O compliant data source for this integration to read from + + Add an integration based on a SS4O compliant existing index pattern or data stream or create a SS4O compliant data source for this integration to read from , "compressed": undefined, } @@ -2092,7 +2098,8 @@ exports[`Add Integration Flyout Test Renders add integration flyout with dummy i legend={ Object { "children": - Add an integration based on a SS4O compliant existing index pattern or data stream or create a SS4O compliant data source for this integration to read from + + Add an integration based on a SS4O compliant existing index pattern or data stream or create a SS4O compliant data source for this integration to read from , "compressed": undefined, } @@ -2104,7 +2111,8 @@ exports[`Add Integration Flyout Test Renders add integration flyout with dummy i className="euiFormLegend" > - Add an integration based on a SS4O compliant existing index pattern or data stream or create a SS4O compliant data source for this integration to read from + + Add an integration based on a SS4O compliant existing index pattern or data stream or create a SS4O compliant data source for this integration to read from diff --git a/server/adaptors/integrations/integrations_kibana_backend.ts b/server/adaptors/integrations/integrations_kibana_backend.ts index 458f77c33d..1d80737372 100644 --- a/server/adaptors/integrations/integrations_kibana_backend.ts +++ b/server/adaptors/integrations/integrations_kibana_backend.ts @@ -27,9 +27,9 @@ export class IntegrationsKibanaBackend implements IntegrationsAdaptor { .forEach(async (element) => { await this.client.delete(element.type, element.id); }); - const result = await this.client.delete('integration-instance', id); + await this.client.delete('integration-instance', id); } - return Promise.resolve(result); + return Promise.resolve({}); }; getIntegrationTemplates = async (