Skip to content

Commit

Permalink
[test] Migrates visualize esArchive to kbnArchiver (#102850)
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
  • Loading branch information
Tyler Smalley committed Jun 24, 2021
1 parent 0669895 commit d5a760c
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 918 deletions.
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

0 comments on commit d5a760c

Please sign in to comment.