mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[Archive Migrations] don't use es_archiver/empty_kibana in Shakespeare tests (#137797)
* don't use es_archiver/empty_kibana, speed up steps * [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix' * revert change to listing page * revert this change and do in another PR Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
47417118fd
commit
148381bd19
1 changed files with 3 additions and 7 deletions
|
@ -42,15 +42,10 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
let isNewChartsLibraryEnabled = true;
|
||||
|
||||
before(async function () {
|
||||
log.debug(
|
||||
'Load empty_kibana and Shakespeare Getting Started data\n' +
|
||||
'https://www.elastic.co/guide/en/kibana/current/tutorial-load-dataset.html'
|
||||
);
|
||||
log.debug('https://www.elastic.co/guide/en/kibana/current/tutorial-load-dataset.html');
|
||||
isNewChartsLibraryEnabled = await PageObjects.visChart.isNewChartsLibraryEnabled();
|
||||
await security.testUser.setRoles(['kibana_admin', 'test_shakespeare_reader']);
|
||||
await esArchiver.load('test/functional/fixtures/es_archiver/empty_kibana', {
|
||||
skipExisting: true,
|
||||
});
|
||||
await kibanaServer.savedObjects.cleanStandardList();
|
||||
log.debug('Load shakespeare data');
|
||||
await esArchiver.loadIfNeeded(
|
||||
'test/functional/fixtures/es_archiver/getting_started/shakespeare'
|
||||
|
@ -67,6 +62,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
after(async () => {
|
||||
await security.testUser.restoreDefaults();
|
||||
await esArchiver.unload('test/functional/fixtures/es_archiver/getting_started/shakespeare');
|
||||
kibanaServer.savedObjects.cleanStandardList();
|
||||
await kibanaServer.uiSettings.replace({});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue