Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneseymour committed Jul 27, 2021
1 parent 2d5d1f7 commit d2e18fc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
9 changes: 7 additions & 2 deletions x-pack/test/functional/apps/security/secure_roles_perm.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import expect from '@kbn/expect';
import { keyBy } from 'lodash';

export default function ({ getService, getPageObjects }) {
const PageObjects = getPageObjects([
'security',
Expand All @@ -29,7 +30,9 @@ export default function ({ getService, getPageObjects }) {
log.debug('users');
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional');
log.debug('load kibana index with default index pattern');
await kibanaServer.importExport.load('x-pack/test/functional/fixtures/kbn_archiver/security/discover');
await kibanaServer.importExport.load(
'x-pack/test/functional/fixtures/kbn_archiver/security/discover'
);
await kibanaServer.uiSettings.replace({ defaultIndex: 'logstash-*' });
await PageObjects.settings.navigateTo();
});
Expand Down Expand Up @@ -87,7 +90,9 @@ export default function ({ getService, getPageObjects }) {

after(async function () {
await PageObjects.security.forceLogout();
await kibanaServer.importExport.unload('x-pack/test/functional/fixtures/kbn_archiver/security/discover');
await kibanaServer.importExport.unload(
'x-pack/test/functional/fixtures/kbn_archiver/security/discover'
);
});
});
}
10 changes: 7 additions & 3 deletions x-pack/test/functional/apps/security/user_email.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@

import expect from '@kbn/expect';
import { keyBy } from 'lodash';

export default function ({ getService, getPageObjects }) {
const PageObjects = getPageObjects(['security', 'settings', 'common', 'accountSetting']);
const log = getService('log');
const kibanaServer = getService('kibanaServer');


describe('useremail', function () {
before(async () => {
await kibanaServer.importExport.load('x-pack/test/functional/fixtures/kbn_archiver/security/discover');
await kibanaServer.importExport.load(
'x-pack/test/functional/fixtures/kbn_archiver/security/discover'
);
await PageObjects.settings.navigateTo();
await PageObjects.security.clickElasticsearchUsers();
});
Expand Down Expand Up @@ -56,7 +58,9 @@ export default function ({ getService, getPageObjects }) {

after(async function () {
await PageObjects.security.forceLogout();
await kibanaServer.importExport.unload('x-pack/test/functional/fixtures/kbn_archiver/security/discover');
await kibanaServer.importExport.unload(
'x-pack/test/functional/fixtures/kbn_archiver/security/discover'
);
});
});
}

0 comments on commit d2e18fc

Please sign in to comment.