Skip to content

Commit

Permalink
[Archive Migration] x-pack..security/discover (elastic#106896)
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneseymour authored Jul 29, 2021
1 parent 41f25a7 commit 46def30
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 311 deletions.
8 changes: 7 additions & 1 deletion 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 esArchiver.load('x-pack/test/functional/es_archives/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,6 +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'
);
});
});
}
10 changes: 8 additions & 2 deletions x-pack/test/functional/apps/security/user_email.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +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 esArchiver = getService('esArchiver');
const kibanaServer = getService('kibanaServer');

describe('useremail', function () {
before(async () => {
await esArchiver.load('x-pack/test/functional/es_archives/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 @@ -55,6 +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'
);
});
});
}
Binary file not shown.
308 changes: 0 additions & 308 deletions x-pack/test/functional/es_archives/security/discover/mappings.json

This file was deleted.

Loading

0 comments on commit 46def30

Please sign in to comment.