Skip to content

Commit

Permalink
fixes #74449
Browse files Browse the repository at this point in the history
  • Loading branch information
rashmivkulkarni committed Oct 20, 2020
1 parent e1f53f4 commit deae325
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default function ({ getService, getPageObjects }) {
const testSubjects = getService('testSubjects');
const es = getService('legacyEs');
const PageObjects = getPageObjects(['settings', 'common']);
const security = getService('security');

describe('"Create Index Pattern" wizard', function () {
before(async function () {
Expand Down Expand Up @@ -51,6 +52,9 @@ export default function ({ getService, getPageObjects }) {
});

describe('index alias', () => {
before(async function () {
await security.testUser.setRoles(['kibana_admin', 'test_alias1_reader']);
});
it('can be an index pattern', async () => {
await es.transport.request({
path: '/blogs/_doc',
Expand All @@ -77,6 +81,7 @@ export default function ({ getService, getPageObjects }) {
path: '/blogs',
method: 'DELETE',
});
await security.testUser.restoreDefaults();
});
});
});
Expand Down
12 changes: 12 additions & 0 deletions test/functional/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,18 @@ export default async function ({ readConfigFile }) {
},
kibana: [],
},

test_alias1_reader: {
elasticsearch: {
cluster: [],
indices: [
{
names: ['alias1'],
privileges: ['read', 'view_index_metadata'],
},
],
},
},
},
defaultRoles: ['test_logstash_reader', 'kibana_admin'],
},
Expand Down

0 comments on commit deae325

Please sign in to comment.