mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
41 lines
1.3 KiB
JavaScript
41 lines
1.3 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 { services } from './services';
|
|
|
|
export async function getApiIntegrationConfig({ readConfigFile }) {
|
|
const xPackFunctionalTestsConfig = await readConfigFile(
|
|
require.resolve('../functional/config.js')
|
|
);
|
|
|
|
return {
|
|
testFiles: [require.resolve('./apis')],
|
|
services,
|
|
servers: xPackFunctionalTestsConfig.get('servers'),
|
|
esArchiver: xPackFunctionalTestsConfig.get('esArchiver'),
|
|
junit: {
|
|
reportName: 'X-Pack API Integration Tests',
|
|
},
|
|
kbnTestServer: {
|
|
...xPackFunctionalTestsConfig.get('kbnTestServer'),
|
|
serverArgs: [
|
|
...xPackFunctionalTestsConfig.get('kbnTestServer.serverArgs'),
|
|
'--xpack.security.session.idleTimeout=3600000', // 1 hour
|
|
'--optimize.enabled=false',
|
|
'--xpack.endpoint.enabled=true',
|
|
],
|
|
},
|
|
esTestCluster: {
|
|
...xPackFunctionalTestsConfig.get('esTestCluster'),
|
|
serverArgs: [
|
|
...xPackFunctionalTestsConfig.get('esTestCluster.serverArgs'),
|
|
'node.attr.name=apiIntegrationTestNode',
|
|
],
|
|
},
|
|
};
|
|
}
|
|
|
|
export default getApiIntegrationConfig;
|