From d68071f3536ca2f898005817254d42ad3f2ec924 Mon Sep 17 00:00:00 2001 From: Kyle Pollich Date: Tue, 27 Jul 2021 10:06:16 -0400 Subject: [PATCH] Unload esarchiver fixtures in api integration test --- .../fleet_api_integration/apis/package_policy/upgrade.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/x-pack/test/fleet_api_integration/apis/package_policy/upgrade.ts b/x-pack/test/fleet_api_integration/apis/package_policy/upgrade.ts index 31feb1b43f757..1cd94ba87ed5d 100644 --- a/x-pack/test/fleet_api_integration/apis/package_policy/upgrade.ts +++ b/x-pack/test/fleet_api_integration/apis/package_policy/upgrade.ts @@ -45,6 +45,13 @@ export default function (providerContext: FtrProviderContext) { .expect(200); }); + after(async () => { + await getService('esArchiver').unload('x-pack/test/functional/es_archives/empty_kibana'); + await getService('esArchiver').unload( + 'x-pack/test/functional/es_archives/fleet/empty_fleet_server' + ); + }); + beforeEach(async function () { const { body: agentPolicyResponse } = await supertest .post(`/api/fleet/agent_policies`)