Skip to content

Commit

Permalink
replace another usage of es_archives/invalid_scripted_field
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Drengenberg committed Feb 10, 2022
1 parent b719ee0 commit b1c8387
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 214 deletions.
7 changes: 5 additions & 2 deletions x-pack/test/functional/apps/discover/error_handling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,22 @@ import { FtrProviderContext } from '../../ftr_provider_context';

export default function ({ getService, getPageObjects }: FtrProviderContext) {
const esArchiver = getService('esArchiver');
const kibanaServer = getService('kibanaServer');
const toasts = getService('toasts');
const PageObjects = getPageObjects(['common', 'discover', 'timePicker']);

describe('errors', function describeIndexTests() {
before(async function () {
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional');
await esArchiver.load('x-pack/test/functional/es_archives/invalid_scripted_field');
await kibanaServer.importExport.load(
'test/functional/fixtures/kbn_archiver/invalid_scripted_field'
);
await PageObjects.timePicker.setDefaultAbsoluteRangeViaUiSettings();
await PageObjects.common.navigateToApp('discover');
});

after(async function () {
await esArchiver.unload('x-pack/test/functional/es_archives/invalid_scripted_field');
await kibanaServer.savedObjects.clean({ types: ['search', 'index-pattern'] });
});

// this is the same test as in OSS but it catches different error message issue in different licences
Expand Down
Binary file not shown.

This file was deleted.

0 comments on commit b1c8387

Please sign in to comment.