adding test user to pew pew maps test + adding a role for connections index pattern (#75920)
This commit is contained in:
parent
3541edbb5d
commit
4f2d4f8b01
|
@ -9,14 +9,20 @@ import expect from '@kbn/expect';
|
|||
export default function ({ getPageObjects, getService }) {
|
||||
const PageObjects = getPageObjects(['maps']);
|
||||
const inspector = getService('inspector');
|
||||
const security = getService('security');
|
||||
|
||||
const VECTOR_SOURCE_ID = '67c1de2c-2fc5-4425-8983-094b589afe61';
|
||||
|
||||
describe('point to point source', () => {
|
||||
before(async () => {
|
||||
await security.testUser.setRoles(['global_maps_all', 'geoconnections_data_reader']);
|
||||
await PageObjects.maps.loadSavedMap('pew pew demo');
|
||||
});
|
||||
|
||||
after(async () => {
|
||||
await security.testUser.restoreDefaults();
|
||||
});
|
||||
|
||||
it('should request source clusters for destination locations', async () => {
|
||||
await inspector.open();
|
||||
await inspector.openInspectorRequestsView();
|
||||
|
|
|
@ -273,6 +273,17 @@ export default async function ({ readConfigFile }) {
|
|||
},
|
||||
},
|
||||
|
||||
geoconnections_data_reader: {
|
||||
elasticsearch: {
|
||||
indices: [
|
||||
{
|
||||
names: ['connections*'],
|
||||
privileges: ['read', 'view_index_metadata'],
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
global_devtools_read: {
|
||||
kibana: [
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue