mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
* Update & expand reporting API tests * remove xpack stuff from oss archive * wrap "it"s so they are in expected order. * Update expected recent stats * url was pointing to a visualization not a csv * Move comment around * Merging with changes on master renaming stats to usage * fix reference to old stats file. * bad merge
31 lines
1.2 KiB
JavaScript
31 lines
1.2 KiB
JavaScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License;
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
*/
|
|
|
|
export default function ({ loadTestFile, getService }) {
|
|
const esArchiver = getService('esArchiver');
|
|
const kibanaServer = getService('kibanaServer');
|
|
|
|
describe('reporting', () => {
|
|
before(async () => {
|
|
await esArchiver.load('../../../../test/functional/fixtures/es_archiver/dashboard/current/kibana');
|
|
await esArchiver.load('../../../../test/functional/fixtures/es_archiver/dashboard/current/data');
|
|
|
|
await kibanaServer.uiSettings.update({
|
|
'dateFormat:tz': 'UTC',
|
|
'defaultIndex': '0bf35f60-3dc9-11e8-8660-4d65aa086b3c'
|
|
});
|
|
});
|
|
|
|
after(async () => {
|
|
await esArchiver.unload('../../../../test/functional/fixtures/es_archiver/dashboard/current/kibana');
|
|
await esArchiver.unload('../../../../test/functional/fixtures/es_archiver/dashboard/current/data');
|
|
});
|
|
|
|
loadTestFile(require.resolve('./bwc_existing_indexes'));
|
|
loadTestFile(require.resolve('./bwc_generation_urls'));
|
|
loadTestFile(require.resolve('./usage'));
|
|
});
|
|
}
|