From 2ecd8b83faad36492c2c9f484f684286d2d3d3d2 Mon Sep 17 00:00:00 2001 From: Gloria Hornero Date: Fri, 8 Sep 2023 10:52:16 +0200 Subject: [PATCH] [Security Solution] Loading auditbeat data in a global hook (#165953) --- x-pack/test/security_solution_cypress/cypress/support/e2e.js | 4 ++++ x-pack/test/security_solution_cypress/runner.ts | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/x-pack/test/security_solution_cypress/cypress/support/e2e.js b/x-pack/test/security_solution_cypress/cypress/support/e2e.js index 477c2606153b7..4335470845f9b 100644 --- a/x-pack/test/security_solution_cypress/cypress/support/e2e.js +++ b/x-pack/test/security_solution_cypress/cypress/support/e2e.js @@ -25,6 +25,10 @@ import './commands'; import 'cypress-real-events/support'; import registerCypressGrep from '@cypress/grep'; +before(() => { + cy.task('esArchiverLoad', { archiveName: 'auditbeat' }); +}); + registerCypressGrep(); Cypress.on('uncaught:exception', () => { diff --git a/x-pack/test/security_solution_cypress/runner.ts b/x-pack/test/security_solution_cypress/runner.ts index 9514e63a12634..c5d3acd093e5a 100644 --- a/x-pack/test/security_solution_cypress/runner.ts +++ b/x-pack/test/security_solution_cypress/runner.ts @@ -15,9 +15,6 @@ export async function SecuritySolutionConfigurableCypressTestRunner({ getService, }: FtrProviderContext) { const config = getService('config'); - const esArchiver = getService('esArchiver'); - - await esArchiver.load('x-pack/test/security_solution_cypress/es_archives/auditbeat'); return { FORCE_COLOR: '1',