From 25177fadb7fe923033ff35f42945aaec7d5ff25f Mon Sep 17 00:00:00 2001 From: Rashmi Kulkarni Date: Tue, 20 Oct 2020 11:56:40 -0700 Subject: [PATCH 1/2] fixes https://github.com/elastic/kibana/issues/74449 --- .../apps/management/_create_index_pattern_wizard.js | 5 +++++ test/functional/config.js | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/test/functional/apps/management/_create_index_pattern_wizard.js b/test/functional/apps/management/_create_index_pattern_wizard.js index 8b11a02099f61..90838ecc1f6fb 100644 --- a/test/functional/apps/management/_create_index_pattern_wizard.js +++ b/test/functional/apps/management/_create_index_pattern_wizard.js @@ -24,6 +24,7 @@ export default function ({ getService, getPageObjects }) { const testSubjects = getService('testSubjects'); const es = getService('legacyEs'); const PageObjects = getPageObjects(['settings', 'common']); + const security = getService('security'); describe('"Create Index Pattern" wizard', function () { before(async function () { @@ -51,6 +52,9 @@ export default function ({ getService, getPageObjects }) { }); describe('index alias', () => { + before(async function () { + await security.testUser.setRoles(['kibana_admin', 'test_alias1_reader']); + }); it('can be an index pattern', async () => { await es.transport.request({ path: '/blogs/_doc', @@ -77,6 +81,7 @@ export default function ({ getService, getPageObjects }) { path: '/blogs', method: 'DELETE', }); + await security.testUser.restoreDefaults(); }); }); }); diff --git a/test/functional/config.js b/test/functional/config.js index c9ef6375e04a3..5bef9896d17cc 100644 --- a/test/functional/config.js +++ b/test/functional/config.js @@ -289,6 +289,18 @@ export default async function ({ readConfigFile }) { }, kibana: [], }, + + test_alias1_reader: { + elasticsearch: { + cluster: [], + indices: [ + { + names: ['alias1'], + privileges: ['read', 'view_index_metadata'], + }, + ], + }, + }, }, defaultRoles: ['test_logstash_reader', 'kibana_admin'], }, From 368f52d4cb27b22089b93ad80a38e0f7df6d05d2 Mon Sep 17 00:00:00 2001 From: Rashmi Kulkarni Date: Tue, 20 Oct 2020 11:56:40 -0700 Subject: [PATCH 2/2] :wqfixes https://github.com/elastic/kibana/issues/74449