From aa814e7772da4853eddc3e747218aed92c1d01f7 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 9760527371408..8b11a02099f61 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', + }); + }); }); }); }