diff --git a/x-pack/test/functional/apps/maps/es_geo_grid_source.js b/x-pack/test/functional/apps/maps/es_geo_grid_source.js index f5a603742c89aa..19680ae851a34d 100644 --- a/x-pack/test/functional/apps/maps/es_geo_grid_source.js +++ b/x-pack/test/functional/apps/maps/es_geo_grid_source.js @@ -10,6 +10,7 @@ export default function ({ getPageObjects, getService }) { const PageObjects = getPageObjects(['maps']); const inspector = getService('inspector'); const DOC_COUNT_PROP_NAME = 'doc_count'; + const security = getService('security'); describe('layer geo grid aggregation source', () => { const EXPECTED_NUMBER_FEATURES_ZOOMED_OUT = 4; @@ -17,6 +18,17 @@ export default function ({ getPageObjects, getService }) { const DATA_CENTER_LON = -98; const DATA_CENTER_LAT = 38; + before(async () => { + await security.testUser.setRoles( + ['global_maps_all', 'test_logstash_reader', 'geoshape_data_reader'], + false + ); + }); + + after(async () => { + await security.testUser.restoreDefaults(); + }); + async function getRequestTimestamp() { await inspector.open(); await inspector.openInspectorRequestsView(); diff --git a/x-pack/test/functional/apps/maps/joins.js b/x-pack/test/functional/apps/maps/joins.js index 1139ae204aefd2..bd5ecfe2a25049 100644 --- a/x-pack/test/functional/apps/maps/joins.js +++ b/x-pack/test/functional/apps/maps/joins.js @@ -25,14 +25,20 @@ const TOO_MANY_FEATURES_LAYER_INDEX = 4; export default function ({ getPageObjects, getService }) { const PageObjects = getPageObjects(['maps']); const inspector = getService('inspector'); + const security = getService('security'); describe('layer with joins', () => { before(async () => { + await security.testUser.setRoles( + ['global_maps_all', 'geoshape_data_reader', 'meta_for_geoshape_data_reader'], + false + ); await PageObjects.maps.loadSavedMap('join example'); }); after(async () => { await inspector.close(); + await security.testUser.restoreDefaults(); }); it('should re-fetch join with refresh timer', async () => { diff --git a/x-pack/test/functional/apps/maps/mvt_scaling.js b/x-pack/test/functional/apps/maps/mvt_scaling.js index 980932103b4917..46ae2c0b9463ad 100644 --- a/x-pack/test/functional/apps/maps/mvt_scaling.js +++ b/x-pack/test/functional/apps/maps/mvt_scaling.js @@ -15,7 +15,7 @@ export default function ({ getPageObjects, getService }) { describe('mvt geoshape layer', () => { before(async () => { - await security.testUser.setRoles(['global_maps_all', 'geoshape_data_reader']); + await security.testUser.setRoles(['global_maps_all', 'geoshape_data_reader'], false); await PageObjects.maps.loadSavedMap('geo_shape_mvt'); }); diff --git a/x-pack/test/functional/config.js b/x-pack/test/functional/config.js index 16e2cd1559fce1..09f28a1d80bfb6 100644 --- a/x-pack/test/functional/config.js +++ b/x-pack/test/functional/config.js @@ -288,6 +288,17 @@ export default async function ({ readConfigFile }) { }, }, + meta_for_geoshape_data_reader: { + elasticsearch: { + indices: [ + { + names: ['meta_for_geo_shapes*'], + privileges: ['read', 'view_index_metadata'], + }, + ], + }, + }, + geoconnections_data_reader: { elasticsearch: { indices: [