From 0c00b25e3cda93a81de9a154ed749df7a5a3e3f5 Mon Sep 17 00:00:00 2001 From: Bandini Bhopi Date: Tue, 27 Feb 2024 19:33:36 +0000 Subject: [PATCH] Fixes authentication_methods_registry.mock module Signed-off-by: Bandini Bhopi --- src/plugins/data_source/server/auth_registry/index.ts | 2 -- .../data_source/server/client/configure_client.test.ts | 6 ++---- .../server/legacy/configure_legacy_client.test.ts | 6 ++---- .../data_source/server/routes/test_connection.test.ts | 6 ++---- 4 files changed, 6 insertions(+), 14 deletions(-) diff --git a/src/plugins/data_source/server/auth_registry/index.ts b/src/plugins/data_source/server/auth_registry/index.ts index 919585a26b96..9352afd8b661 100644 --- a/src/plugins/data_source/server/auth_registry/index.ts +++ b/src/plugins/data_source/server/auth_registry/index.ts @@ -7,5 +7,3 @@ export { IAuthenticationMethodRegistery, AuthenticationMethodRegistery, } from './authentication_methods_registry'; - -export { authenticationMethodRegisteryMock } from './authentication_methods_registry.mock'; diff --git a/src/plugins/data_source/server/client/configure_client.test.ts b/src/plugins/data_source/server/client/configure_client.test.ts index e7344b2fa521..271ff3f3c05c 100644 --- a/src/plugins/data_source/server/client/configure_client.test.ts +++ b/src/plugins/data_source/server/client/configure_client.test.ts @@ -27,10 +27,8 @@ import { cryptographyServiceSetupMock } from '../cryptography_service.mocks'; import { CryptographyServiceSetup } from '../cryptography_service'; import { DataSourceClientParams, AuthenticationMethod } from '../types'; import { CustomApiSchemaRegistry } from '../schema_registry'; -import { - IAuthenticationMethodRegistery, - authenticationMethodRegisteryMock, -} from '../auth_registry'; +import { IAuthenticationMethodRegistery } from '../auth_registry'; +import { authenticationMethodRegisteryMock } from '../auth_registry/authentication_methods_registry.mock'; const DATA_SOURCE_ID = 'a54b76ec86771ee865a0f74a305dfff8'; diff --git a/src/plugins/data_source/server/legacy/configure_legacy_client.test.ts b/src/plugins/data_source/server/legacy/configure_legacy_client.test.ts index c55715ea3fe7..ebe356c58561 100644 --- a/src/plugins/data_source/server/legacy/configure_legacy_client.test.ts +++ b/src/plugins/data_source/server/legacy/configure_legacy_client.test.ts @@ -20,10 +20,8 @@ import { } from './configure_legacy_client.test.mocks'; import { configureLegacyClient } from './configure_legacy_client'; import { CustomApiSchemaRegistry } from '../schema_registry'; -import { - IAuthenticationMethodRegistery, - authenticationMethodRegisteryMock, -} from '../auth_registry'; +import { IAuthenticationMethodRegistery } from '../auth_registry'; +import { authenticationMethodRegisteryMock } from '../auth_registry/authentication_methods_registry.mock'; const DATA_SOURCE_ID = 'a54b76ec86771ee865a0f74a305dfff8'; diff --git a/src/plugins/data_source/server/routes/test_connection.test.ts b/src/plugins/data_source/server/routes/test_connection.test.ts index 888a241e464d..9ad414e28660 100644 --- a/src/plugins/data_source/server/routes/test_connection.test.ts +++ b/src/plugins/data_source/server/routes/test_connection.test.ts @@ -7,10 +7,8 @@ import supertest from 'supertest'; import { UnwrapPromise } from '@osd/utility-types'; import { setupServer } from '../../../../../src/core/server/test_utils'; -import { - IAuthenticationMethodRegistery, - authenticationMethodRegisteryMock, -} from '../auth_registry'; +import { IAuthenticationMethodRegistery } from '../auth_registry'; +import { authenticationMethodRegisteryMock } from '../auth_registry/authentication_methods_registry.mock'; import { CustomApiSchemaRegistry } from '../schema_registry'; import { DataSourceServiceSetup } from '../../server/data_source_service'; import { CryptographyServiceSetup } from '../cryptography_service';