From 1dd4b65321570e8ce3df1b19a2fc7c85e6a4c25b Mon Sep 17 00:00:00 2001 From: Joe Reuter Date: Thu, 10 Sep 2020 10:15:45 +0200 Subject: [PATCH] clean up test (#76887) --- .../apps/management/_create_index_pattern_wizard.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/functional/apps/management/_create_index_pattern_wizard.js b/test/functional/apps/management/_create_index_pattern_wizard.js index 9760527371408f..8b11a02099f614 100644 --- a/test/functional/apps/management/_create_index_pattern_wizard.js +++ b/test/functional/apps/management/_create_index_pattern_wizard.js @@ -66,6 +66,18 @@ export default function ({ getService, getPageObjects }) { await PageObjects.settings.createIndexPattern('alias1', false); }); + + after(async () => { + await es.transport.request({ + path: '/_aliases', + method: 'POST', + body: { actions: [{ remove: { index: 'blogs', alias: 'alias1' } }] }, + }); + await es.transport.request({ + path: '/blogs', + method: 'DELETE', + }); + }); }); }); }