Skip to content

Commit

Permalink
[Archive Migrations] x-pack..lens/reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneseymour committed Jul 13, 2022
1 parent 84db06c commit b72b68b
Show file tree
Hide file tree
Showing 4 changed files with 496 additions and 1,264 deletions.
8 changes: 5 additions & 3 deletions x-pack/test/functional/apps/lens/group3/lens_reporting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ import { FtrProviderContext } from '../../../ftr_provider_context';
export default function ({ getService, getPageObjects }: FtrProviderContext) {
const PageObjects = getPageObjects(['common', 'dashboard', 'reporting', 'timePicker']);
const es = getService('es');
const esArchiver = getService('esArchiver');
const kibanaServer = getService('kibanaServer');
const listingTable = getService('listingTable');
const security = getService('security');

describe('lens reporting', () => {
before(async () => {
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/lens/reporting');
await kibanaServer.importExport.load(
'x-pack/test/functional/fixtures/kbn_archiver/lens/reporting'
);
await PageObjects.timePicker.setDefaultAbsoluteRangeViaUiSettings();
await security.testUser.setRoles(
[
Expand All @@ -30,7 +32,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});

after(async () => {
await esArchiver.unload('x-pack/test/functional/es_archives/lens/reporting');
await kibanaServer.savedObjects.cleanStandardList();
await PageObjects.timePicker.resetDefaultAbsoluteRangeViaUiSettings();
await es.deleteByQuery({
index: '.reporting-*',
Expand Down
Binary file not shown.
Loading

0 comments on commit b72b68b

Please sign in to comment.