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
40 lines
1.6 KiB
JavaScript
40 lines
1.6 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.
|
|
*/
|
|
|
|
import {
|
|
SupertestWithoutAuthProvider,
|
|
ReportingAPIProvider,
|
|
UsageAPIProvider,
|
|
} from './services';
|
|
|
|
export default async function ({ readConfigFile }) {
|
|
|
|
const kibanaAPITestsConfig = await readConfigFile(require.resolve('../../../test/api_integration/config.js'));
|
|
const xPackFunctionalTestsConfig = await readConfigFile(require.resolve('../functional/config.js'));
|
|
const kibanaCommonConfig = await readConfigFile(require.resolve('../../../test/common/config.js'));
|
|
|
|
return {
|
|
testFiles: [require.resolve('./apis')],
|
|
servers: xPackFunctionalTestsConfig.get('servers'),
|
|
services: {
|
|
supertest: kibanaAPITestsConfig.get('services.supertest'),
|
|
esSupertest: kibanaAPITestsConfig.get('services.esSupertest'),
|
|
supertestWithoutAuth: SupertestWithoutAuthProvider,
|
|
es: kibanaCommonConfig.get('services.es'),
|
|
esArchiver: kibanaCommonConfig.get('services.esArchiver'),
|
|
reportingAPI: ReportingAPIProvider,
|
|
usageAPI: UsageAPIProvider,
|
|
kibanaServer: kibanaCommonConfig.get('services.kibanaServer'),
|
|
},
|
|
esArchiver: xPackFunctionalTestsConfig.get('esArchiver'),
|
|
junit: {
|
|
reportName: 'X-Pack API Integration Tests',
|
|
},
|
|
env: xPackFunctionalTestsConfig.get('env'),
|
|
kbnTestServer: xPackFunctionalTestsConfig.get('kbnTestServer'),
|
|
esTestCluster: xPackFunctionalTestsConfig.get('esTestCluster'),
|
|
};
|
|
}
|