Skip to content

Commit

Permalink
Kbnarchiver migration for x-pack/test/functional/es_archives/dashboar…
Browse files Browse the repository at this point in the history
…d/drilldowns (#134859)
  • Loading branch information
bhavyarm authored Jun 22, 2022
1 parent 3d36e49 commit 6c79885
Show file tree
Hide file tree
Showing 7 changed files with 319 additions and 477 deletions.
7 changes: 5 additions & 2 deletions x-pack/test/accessibility/apps/dashboard_edit_panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

describe('Dashboard Edit Panel Accessibility', () => {
before(async () => {
await esArchiver.load('x-pack/test/functional/es_archives/dashboard/drilldowns');
await kibanaServer.savedObjects.cleanStandardList();
await kibanaServer.importExport.load(
'x-pack/test/functional/fixtures/kbn_archiver/dashboard_drilldowns/drilldowns'
);
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional');
await kibanaServer.uiSettings.replace({ defaultIndex: 'logstash-*' });
await PageObjects.common.navigateToApp('dashboard');
Expand All @@ -31,7 +34,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});

after(async () => {
await esArchiver.unload('x-pack/test/functional/es_archives/dashboard/drilldowns');
await kibanaServer.savedObjects.cleanStandardList();
});

it('can open menu', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@ export default function ({ loadTestFile, getService }: FtrProviderContext) {

before(async () => {
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional');
await esArchiver.load('x-pack/test/functional/es_archives/dashboard/drilldowns');
await kibanaServer.savedObjects.cleanStandardList();
await kibanaServer.importExport.load(
'x-pack/test/functional/fixtures/kbn_archiver/dashboard_drilldowns/drilldowns'
);
await kibanaServer.uiSettings.replace({ defaultIndex: 'logstash-*' });
});

after(async () => {
await esArchiver.unload('x-pack/test/functional/es_archives/dashboard/drilldowns');
await kibanaServer.savedObjects.cleanStandardList();
});

loadTestFile(require.resolve('./dashboard_to_dashboard_drilldown'));
Expand Down
8 changes: 6 additions & 2 deletions x-pack/test/functional/apps/discover/value_suggestions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,20 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

describe('value suggestions', function describeIndexTests() {
before(async function () {
await kibanaServer.savedObjects.cleanStandardList();
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional');
await esArchiver.load('x-pack/test/functional/es_archives/dashboard/drilldowns');

await kibanaServer.importExport.load(
'x-pack/test/functional/fixtures/kbn_archiver/dashboard_drilldowns/drilldowns'
);
await kibanaServer.uiSettings.update({
'doc_table:legacy': true,
});
});

after(async () => {
await esArchiver.unload('x-pack/test/functional/es_archives/dashboard/drilldowns');
await kibanaServer.uiSettings.unset('doc_table:legacy');
await kibanaServer.savedObjects.cleanStandardList();
});

describe('useTimeRange enabled', () => {
Expand Down
263 changes: 0 additions & 263 deletions x-pack/test/functional/es_archives/dashboard/drilldowns/data.json

This file was deleted.

205 changes: 0 additions & 205 deletions x-pack/test/functional/es_archives/dashboard/drilldowns/mappings.json

This file was deleted.

Loading

0 comments on commit 6c79885

Please sign in to comment.