Skip to content

Commit

Permalink
drilldown with user roles and privs
Browse files Browse the repository at this point in the history
  • Loading branch information
rashmivkulkarni committed Aug 27, 2020
1 parent 0af49ca commit 1590c17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
describe('Dashboard Drilldowns', function () {
before(async () => {
log.debug('Dashboard Drilldowns:initTests');
await security.testUser.setRoles([
'global_drilldown_all',
'test_logstash_reader',
'global_dashboard_all',
]);
await security.testUser.setRoles(['test_logstash_reader', 'global_dashboard_all']);
await PageObjects.common.navigateToApp('dashboard');
await PageObjects.dashboard.preserveCrossAppState();
});
Expand All @@ -53,6 +49,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
drilldownName: DRILLDOWN_TO_AREA_CHART_NAME,
destinationDashboardTitle: dashboardDrilldownsManage.DASHBOARD_WITH_AREA_CHART_NAME,
});

await dashboardDrilldownsManage.saveChanges();
await dashboardDrilldownsManage.expectsCreateDrilldownFlyoutClose();

Expand Down
16 changes: 4 additions & 12 deletions x-pack/test/functional/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ export default async function ({ readConfigFile }) {
cluster: [],
indices: [
{
names: ['logstash*'],
privileges: ['read', 'view_index_metadata'],
names: ['logstash*', 'logstash-*'],
privileges: ['all', 'view_index_metadata'],
field_security: { grant: ['*'], except: [] },
},
],
Expand All @@ -232,16 +232,6 @@ export default async function ({ readConfigFile }) {
],
},

global_drilldown_all: {
kibana: [
{
feature: {
drilldown: ['all'],
},
spaces: ['*'],
},
],
},
global_discover_read: {
kibana: [
{
Expand All @@ -258,6 +248,8 @@ export default async function ({ readConfigFile }) {
{
feature: {
dashboard: ['all'],
saved_objects: ['all'],
indexPatterns: ['all'],
},
spaces: ['*'],
},
Expand Down

0 comments on commit 1590c17

Please sign in to comment.