[Archive Migrations] x-pack..lens/reporting (#136262)

This commit is contained in:
Tre 2022-07-14 16:31:35 +01:00 committed by GitHub
parent 495d64694b
commit 2aa000b9ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 496 additions and 1264 deletions

View file

@ -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(
[
@ -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-*',

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long