Skip to content

Commit

Permalink
[Discover] Add permissions for context size test (elastic#109391)
Browse files Browse the repository at this point in the history
* [Discover] add permissions for flaky context test

* [Discover] apply test_logstash_reader role

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
dimaanj and kibanamachine committed Sep 6, 2021
1 parent b4444c1 commit 25021fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/functional/apps/context/_size.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const TEST_STEP_SIZE = 2;

export default function ({ getService, getPageObjects }: FtrProviderContext) {
const kibanaServer = getService('kibanaServer');
const security = getService('security');
const retry = getService('retry');
const docTable = getService('docTable');
const browser = getService('browser');
Expand All @@ -23,6 +24,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

describe('context size', function contextSize() {
before(async function () {
await security.testUser.setRoles(['kibana_admin', 'test_logstash_reader']);
await kibanaServer.uiSettings.update({
'context:defaultSize': `${TEST_DEFAULT_CONTEXT_SIZE}`,
'context:step': `${TEST_STEP_SIZE}`,
Expand Down

0 comments on commit 25021fa

Please sign in to comment.