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

[test] Migrates visualize esArchive to kbnArchiver #102850

Merged
merged 3 commits into from
Jun 24, 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
10 changes: 6 additions & 4 deletions test/functional/apps/context/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,18 @@ export default function ({ getService, getPageObjects, loadTestFile }) {
describe('context app', function () {
this.tags('ciGroup1');

before(async function () {
before(async () => {
await browser.setWindowSize(1200, 800);
await esArchiver.loadIfNeeded('test/functional/fixtures/es_archiver/logstash_functional');
await esArchiver.load('test/functional/fixtures/es_archiver/visualize');
await kibanaServer.importExport.load('test/functional/fixtures/kbn_archiver/visualize.json');
await kibanaServer.uiSettings.replace({ defaultIndex: 'logstash-*' });
await PageObjects.common.navigateToApp('discover');
});

after(function unloadMakelogs() {
return esArchiver.unload('test/functional/fixtures/es_archiver/logstash_functional');
after(async () => {
await kibanaServer.importExport.unload(
'test/functional/fixtures/kbn_archiver/visualize.json'
);
});

loadTestFile(require.resolve('./_context_navigation'));
Expand Down
9 changes: 7 additions & 2 deletions test/functional/apps/discover/_source_filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
defaultIndex: 'logstash-*',
});

log.debug('load kibana index with default index pattern');
await esArchiver.load('test/functional/fixtures/es_archiver/visualize_source-filters');
await kibanaServer.importExport.load('test/functional/fixtures/kbn_archiver/visualize.json');

// and load a set of makelogs data
await esArchiver.loadIfNeeded('test/functional/fixtures/es_archiver/logstash_functional');
Expand All @@ -43,6 +42,12 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await PageObjects.common.sleep(1000);
});

after(async () => {
await kibanaServer.importExport.unload(
'test/functional/fixtures/kbn_archiver/visualize.json'
);
});

it('should not get the field referer', async function () {
const fieldNames = await PageObjects.discover.getAllFieldNames();
expect(fieldNames).to.not.contain('referer');
Expand Down
388 changes: 0 additions & 388 deletions test/functional/fixtures/es_archiver/visualize/data.json

This file was deleted.

Loading