adding test user to pew pew maps test + adding a role for connections index pattern (#75920)

This commit is contained in:
Bhavya RM 2020-08-26 09:59:41 -04:00 committed by GitHub
parent 3541edbb5d
commit 4f2d4f8b01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 0 deletions

View file

@ -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();

View file

@ -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: [
{