Skip to content

Commit

Permalink
fix permissions for cloud test (elastic#112568)
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 authored Sep 23, 2021
1 parent 5c4f519 commit fa62456
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/functional/apps/visualize/_timelion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
'timelion',
'common',
]);
const security = getService('security');
const monacoEditor = getService('monacoEditor');
const kibanaServer = getService('kibanaServer');
const elasticChart = getService('elasticChart');
Expand All @@ -26,6 +27,11 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

describe('Timelion visualization', () => {
before(async () => {
await security.testUser.setRoles([
'kibana_admin',
'long_window_logstash',
'test_logstash_reader',
]);
await kibanaServer.uiSettings.update({
'timelion:legacyChartsLibrary': false,
});
Expand Down
6 changes: 6 additions & 0 deletions test/functional/apps/visualize/_tsvb_time_series.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
'timeToVisualize',
'dashboard',
]);
const security = getService('security');
const testSubjects = getService('testSubjects');
const retry = getService('retry');
const filterBar = getService('filterBar');
Expand All @@ -27,6 +28,11 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

describe('visual builder', function describeIndexTests() {
before(async () => {
await security.testUser.setRoles([
'kibana_admin',
'long_window_logstash',
'test_logstash_reader',
]);
await visualize.initTests();
});
beforeEach(async () => {
Expand Down

0 comments on commit fa62456

Please sign in to comment.