Skip to content

Commit

Permalink
Updates mgmt import objects fixture to normal format
Browse files Browse the repository at this point in the history
  • Loading branch information
TinaHeiligers committed Sep 1, 2021
1 parent b2d990b commit ffa9bfc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 40 deletions.
4 changes: 2 additions & 2 deletions test/functional/apps/dashboard/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) {
loadTestFile(require.resolve('./dashboard_unsaved_state'));
loadTestFile(require.resolve('./dashboard_unsaved_listing'));
loadTestFile(require.resolve('./edit_visualizations'));
loadTestFile(require.resolve('./time_zones'));
loadTestFile(require.resolve('./dashboard_options'));
loadTestFile(require.resolve('./data_shared_attributes'));
loadTestFile(require.resolve('./share'));
Expand Down Expand Up @@ -88,14 +87,15 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) {
// Each of these tests call initTests themselves, the way it was originally written. The above tests only load
// the data once to save on time. Eventually, all of these tests should just use current data and we can reserve
// legacy data only for specifically testing BWC situations.

// TODO: Move relevant tests to use the new format, delete tests that relate to legacy data imports
describe('using legacy data', function () {
this.tags('ciGroup4');
before(loadLogstash);
after(unloadLogstash);

loadTestFile(require.resolve('./dashboard_time_picker'));
loadTestFile(require.resolve('./bwc_shared_urls'));
loadTestFile(require.resolve('./bwc_import'));
loadTestFile(require.resolve('./panel_replacing'));
loadTestFile(require.resolve('./panel_cloning'));
loadTestFile(require.resolve('./copy_panel_to'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function ({ getService, getPageObjects }) {
it('should import saved objects mgmt', async function () {
await PageObjects.settings.clickKibanaSavedObjects();
await PageObjects.savedObjects.importFile(
path.join(__dirname, 'exports', 'mgmt_import_objects.json')
path.join(__dirname, 'exports', 'mgmt_import_objects.ndjson')
);
await PageObjects.settings.associateIndexPattern(
'4c3f3c30-ac94-11e8-a651-614b2788174a',
Expand Down
37 changes: 0 additions & 37 deletions test/functional/apps/management/exports/mgmt_import_objects.json

This file was deleted.

0 comments on commit ffa9bfc

Please sign in to comment.