mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
* [Infra UI] Test for metrics GraphQL endpoint * Moving apollo-boost to devDeps * Converting tests to typescript * Renaming infraops to infra
49 lines
1.8 KiB
JavaScript
49 lines
1.8 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 {
|
|
EsProvider,
|
|
EsSupertestWithoutAuthProvider,
|
|
SupertestWithoutAuthProvider,
|
|
UsageAPIProvider,
|
|
InfraOpsGraphQLProvider
|
|
} 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,
|
|
esSupertestWithoutAuth: EsSupertestWithoutAuthProvider,
|
|
infraOpsGraphQLClient: InfraOpsGraphQLProvider,
|
|
es: EsProvider,
|
|
esArchiver: kibanaCommonConfig.get('services.esArchiver'),
|
|
usageAPI: UsageAPIProvider,
|
|
kibanaServer: kibanaCommonConfig.get('services.kibanaServer'),
|
|
chance: kibanaAPITestsConfig.get('services.chance'),
|
|
},
|
|
esArchiver: xPackFunctionalTestsConfig.get('esArchiver'),
|
|
junit: {
|
|
reportName: 'X-Pack API Integration Tests',
|
|
},
|
|
kbnTestServer: {
|
|
...xPackFunctionalTestsConfig.get('kbnTestServer'),
|
|
serverArgs: [
|
|
...xPackFunctionalTestsConfig.get('kbnTestServer.serverArgs'),
|
|
'--optimize.enabled=false',
|
|
],
|
|
},
|
|
esTestCluster: xPackFunctionalTestsConfig.get('esTestCluster'),
|
|
};
|
|
}
|