Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Archive Migrations] don't use es_archiver/empty_kibana in Shakespeare tests #137797

Merged
merged 6 commits into from
Aug 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions test/functional/apps/getting_started/_shakespeare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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({});
});

Expand Down