Skip to content

Commit

Permalink
[Archive Migration] x-pack..dashboard_view_mode
Browse files Browse the repository at this point in the history
Delete `x-pack/test/functional/es_archives/dashboard_view_mode`.
Add `x-pack/test/functional/fixtures/kbn_archiver/dashboard_view_mode.json`.

Update test to use the newly added archive.
  • Loading branch information
wayneseymour committed Aug 13, 2021
1 parent 4a1366c commit 574f214
Show file tree
Hide file tree
Showing 4 changed files with 213 additions and 309 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ export default function ({ getService, getPageObjects }) {
before('initialize tests', async () => {
log.debug('Dashboard View Mode:initTests');
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional');
await esArchiver.load('x-pack/test/functional/es_archives/dashboard_view_mode');
await kibanaServer.importExport.load(
'x-pack/test/functional/fixtures/kbn_archiver/dashboard_view_mode'
);
await kibanaServer.uiSettings.replace({ defaultIndex: 'logstash-*' });
await browser.setWindowSize(1600, 1000);

Expand All @@ -55,6 +57,12 @@ export default function ({ getService, getPageObjects }) {
await PageObjects.dashboard.saveDashboard(dashboardName);
});

after(async () => {
await kibanaServer.importExport.unload(
'x-pack/test/functional/fixtures/kbn_archiver/dashboard_view_mode'
);
});

describe('Dashboard viewer', () => {
before('Create logstash data role', async () => {
await PageObjects.settings.navigateTo();
Expand Down
Binary file not shown.
308 changes: 0 additions & 308 deletions x-pack/test/functional/es_archives/dashboard_view_mode/mappings.json

This file was deleted.

Loading

0 comments on commit 574f214

Please sign in to comment.