From 8b03a366d61d4c6db655e6c1638e42af908405e1 Mon Sep 17 00:00:00 2001 From: PhilippeOberti Date: Fri, 20 Sep 2024 12:17:22 -0500 Subject: [PATCH] [Security Solution] - fix Cypress not running locally --- x-pack/test/security_solution_cypress/runner.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x-pack/test/security_solution_cypress/runner.ts b/x-pack/test/security_solution_cypress/runner.ts index fb58d22a40cdc..0b815e2a14033 100644 --- a/x-pack/test/security_solution_cypress/runner.ts +++ b/x-pack/test/security_solution_cypress/runner.ts @@ -7,6 +7,7 @@ import Url from 'url'; +import { createEsClientForFtrConfig } from '@kbn/test'; import { TransportResult } from '@elastic/elasticsearch'; import { FtrProviderContext } from '../common/ftr_provider_context'; import { tiAbusechMalware } from './pipelines/ti_abusech_malware'; @@ -20,7 +21,7 @@ export async function SecuritySolutionConfigurableCypressTestRunner({ }: FtrProviderContext) { const log = getService('log'); const config = getService('config'); - const es = getService('es'); + const es = createEsClientForFtrConfig(config); const pipelines = [tiAbusechMalware, tiAbusechMalwareBazaar, tiAbusechUrl];