2018-05-29 05:06:30 +02:00
|
|
|
/*
|
2021-01-20 02:52:56 +01:00
|
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
2021-02-04 03:12:39 +01:00
|
|
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
|
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
|
|
* Side Public License, v 1.
|
2018-05-29 05:06:30 +02:00
|
|
|
*/
|
|
|
|
|
2019-08-03 00:43:05 +02:00
|
|
|
import { services } from './services';
|
2017-05-18 03:53:45 +02:00
|
|
|
|
2020-05-22 09:08:58 +02:00
|
|
|
export default async function ({ readConfigFile }) {
|
2017-05-18 03:53:45 +02:00
|
|
|
const commonConfig = await readConfigFile(require.resolve('../common/config'));
|
2018-05-10 01:23:49 +02:00
|
|
|
const functionalConfig = await readConfigFile(require.resolve('../functional/config'));
|
2017-05-18 03:53:45 +02:00
|
|
|
|
|
|
|
return {
|
2021-08-19 18:40:23 +02:00
|
|
|
rootTags: ['runOutsideOfCiGroups'],
|
2019-12-13 23:44:04 +01:00
|
|
|
testFiles: [require.resolve('./apis')],
|
2019-08-03 00:43:05 +02:00
|
|
|
services,
|
2017-05-18 03:53:45 +02:00
|
|
|
servers: commonConfig.get('servers'),
|
2017-12-06 01:29:48 +01:00
|
|
|
junit: {
|
2019-12-13 23:44:04 +01:00
|
|
|
reportName: 'API Integration Tests',
|
2018-05-10 01:23:49 +02:00
|
|
|
},
|
2021-02-08 23:23:10 +01:00
|
|
|
esTestCluster: {
|
|
|
|
...functionalConfig.get('esTestCluster'),
|
|
|
|
serverArgs: ['xpack.security.enabled=false'],
|
|
|
|
},
|
2018-05-21 15:31:30 +02:00
|
|
|
kbnTestServer: {
|
|
|
|
...functionalConfig.get('kbnTestServer'),
|
|
|
|
serverArgs: [
|
|
|
|
...functionalConfig.get('kbnTestServer.serverArgs'),
|
|
|
|
'--elasticsearch.healthCheck.delay=3600000',
|
|
|
|
'--server.xsrf.disableProtection=true',
|
2019-12-02 17:43:06 +01:00
|
|
|
'--server.compression.referrerWhitelist=["some-host.com"]',
|
2021-02-11 20:58:08 +01:00
|
|
|
`--savedObjects.maxImportExportSize=10001`,
|
2021-06-01 20:50:49 +02:00
|
|
|
'--savedObjects.maxImportPayloadBytes=30000000',
|
2021-04-14 14:21:11 +02:00
|
|
|
// for testing set buffer duration to 0 to immediately flush counters into saved objects.
|
|
|
|
'--usageCollection.usageCounters.bufferDuration=0',
|
2018-05-21 15:31:30 +02:00
|
|
|
],
|
|
|
|
},
|
2017-05-18 03:53:45 +02:00
|
|
|
};
|
|
|
|
}
|