Skip to content

Commit

Permalink
adding test user to pew pew maps test + adding a role for connections…
Browse files Browse the repository at this point in the history
… index pattern (#75920)
  • Loading branch information
bhavyarm authored Aug 26, 2020
1 parent 3541edb commit 4f2d4f8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions x-pack/test/functional/apps/maps/es_pew_pew_source.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
11 changes: 11 additions & 0 deletions x-pack/test/functional/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down

0 comments on commit 4f2d4f8

Please sign in to comment.