From 573a552117f37544c1e3ca69ba49522c45f6baba Mon Sep 17 00:00:00 2001 From: Aleh Zasypkin Date: Tue, 22 Aug 2023 18:05:27 +0200 Subject: [PATCH] Review#1: move Saml Tools service to API integrations services as it not needed for functional tests. --- .../api_integration/services/index.ts | 2 ++ .../services/saml_tools.ts | 0 .../test_serverless/shared/ftr_provider_context.d.ts | 12 ------------ x-pack/test_serverless/shared/services/index.ts | 10 +--------- 4 files changed, 3 insertions(+), 21 deletions(-) rename x-pack/test_serverless/{shared => api_integration}/services/saml_tools.ts (100%) delete mode 100644 x-pack/test_serverless/shared/ftr_provider_context.d.ts diff --git a/x-pack/test_serverless/api_integration/services/index.ts b/x-pack/test_serverless/api_integration/services/index.ts index bab7b001b5982..89a466de1b3f1 100644 --- a/x-pack/test_serverless/api_integration/services/index.ts +++ b/x-pack/test_serverless/api_integration/services/index.ts @@ -12,6 +12,7 @@ import { services as svlSharedServices } from '../../shared/services'; import { SvlCommonApiServiceProvider } from './svl_common_api'; import { AlertingApiProvider } from './alerting_api'; +import { SamlToolsProvider } from './saml_tools'; export const services = { ...xpackApiIntegrationServices, @@ -19,6 +20,7 @@ export const services = { svlCommonApi: SvlCommonApiServiceProvider, alertingApi: AlertingApiProvider, + samlTools: SamlToolsProvider, }; export type InheritedFtrProviderContext = GenericFtrProviderContext; diff --git a/x-pack/test_serverless/shared/services/saml_tools.ts b/x-pack/test_serverless/api_integration/services/saml_tools.ts similarity index 100% rename from x-pack/test_serverless/shared/services/saml_tools.ts rename to x-pack/test_serverless/api_integration/services/saml_tools.ts diff --git a/x-pack/test_serverless/shared/ftr_provider_context.d.ts b/x-pack/test_serverless/shared/ftr_provider_context.d.ts deleted file mode 100644 index f2447b9d263e7..0000000000000 --- a/x-pack/test_serverless/shared/ftr_provider_context.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import { GenericFtrProviderContext } from '@kbn/test'; - -import { services } from './services'; - -export type FtrProviderContext = GenericFtrProviderContext; diff --git a/x-pack/test_serverless/shared/services/index.ts b/x-pack/test_serverless/shared/services/index.ts index a24bb8452c734..d6e9fd713d90f 100644 --- a/x-pack/test_serverless/shared/services/index.ts +++ b/x-pack/test_serverless/shared/services/index.ts @@ -5,12 +5,4 @@ * 2.0. */ -import { GenericFtrProviderContext } from '@kbn/test'; - -import { SamlToolsProvider } from './saml_tools'; - -export const services = { - samlTools: SamlToolsProvider, -}; - -export type InheritedFtrProviderContext = GenericFtrProviderContext; +export const services = {};