Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.0] [Reporting/Tests] Consolidate test archives, move kbn objects to kbn_archiver (#116528) #117440

Merged
merged 1 commit into from
Nov 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions x-pack/test/accessibility/apps/reporting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const testSubjects = getService('testSubjects');
const supertestWithoutAuth = getService('supertestWithoutAuth');
const reporting = getService('reporting');
const esArchiver = getService('esArchiver');
const security = getService('security');

describe('Reporting', () => {
Expand All @@ -33,17 +32,13 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
};

before(async () => {
await esArchiver.load('x-pack/test/functional/es_archives/reporting/logs');
await esArchiver.load('x-pack/test/functional/es_archives/logstash_functional');

await reporting.initLogs();
await createReportingUser();
await reporting.loginReportingUser();
});

after(async () => {
await esArchiver.unload('x-pack/test/functional/es_archives/reporting/logs');
await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional');

await reporting.teardownLogs();
await deleteReportingUser();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const log = getService('log');
const testSubjects = getService('testSubjects');
const kibanaServer = getService('kibanaServer');
const reportingAPI = getService('reporting');
const filterBar = getService('filterBar');
const find = getService('find');
const retry = getService('retry');
Expand Down Expand Up @@ -124,9 +125,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

describe('Field Formatters and Scripted Fields', () => {
before(async () => {
await reportingAPI.initLogs();
await esArchiver.load('x-pack/test/functional/es_archives/reporting/hugedata');
});
after(async () => {
await reportingAPI.teardownLogs();
await esArchiver.unload('x-pack/test/functional/es_archives/reporting/hugedata');
});

Expand Down
Binary file not shown.
Loading