From 644927e90df0e2b46e1e4624bed15fa4a4bf6a7e Mon Sep 17 00:00:00 2001 From: Julia Bardi Date: Tue, 18 Jul 2023 10:16:01 +0200 Subject: [PATCH] fix multi space test --- .../apis/epm/install_integration_in_multiple_spaces.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x-pack/test/fleet_api_integration/apis/epm/install_integration_in_multiple_spaces.ts b/x-pack/test/fleet_api_integration/apis/epm/install_integration_in_multiple_spaces.ts index 1202f73e35cf9..d6023ae0492e1 100644 --- a/x-pack/test/fleet_api_integration/apis/epm/install_integration_in_multiple_spaces.ts +++ b/x-pack/test/fleet_api_integration/apis/epm/install_integration_in_multiple_spaces.ts @@ -16,6 +16,7 @@ export default function (providerContext: FtrProviderContext) { const kibanaServer = getService('kibanaServer'); const supertest = getService('supertest'); const dockerServers = getService('dockerServers'); + const esArchiver = getService('esArchiver'); const server = dockerServers.get('registry'); const pkgName = 'system'; const pkgVersion = '1.27.0'; @@ -72,6 +73,7 @@ export default function (providerContext: FtrProviderContext) { before(async () => { if (!server.enabled) return; + await esArchiver.load('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); await installPackage(pkgName, pkgVersion); await createSpace(testSpaceId); @@ -81,6 +83,7 @@ export default function (providerContext: FtrProviderContext) { after(async () => { await deleteSpace(testSpaceId); + await esArchiver.unload('x-pack/test/functional/es_archives/fleet/empty_fleet_server'); }); it('should install kibana assets', async function () {