2020-04-09 15:41:38 +02:00
|
|
|
/*
|
|
|
|
* 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 { resolve } from 'path';
|
|
|
|
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
|
|
|
import { pageObjects } from './page_objects';
|
2020-05-06 20:16:40 +02:00
|
|
|
import { services } from './services';
|
2020-07-27 20:13:50 +02:00
|
|
|
import {
|
|
|
|
getRegistryUrlAsArray,
|
|
|
|
createEndpointDockerConfig,
|
|
|
|
} from '../security_solution_endpoint_api_int/registry';
|
2020-04-09 15:41:38 +02:00
|
|
|
|
2020-05-22 09:08:58 +02:00
|
|
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
2020-04-09 15:41:38 +02:00
|
|
|
const xpackFunctionalConfig = await readConfigFile(require.resolve('../functional/config.js'));
|
|
|
|
|
|
|
|
return {
|
|
|
|
...xpackFunctionalConfig.getAll(),
|
|
|
|
pageObjects,
|
|
|
|
testFiles: [resolve(__dirname, './apps/endpoint')],
|
2020-07-27 20:13:50 +02:00
|
|
|
dockerServers: createEndpointDockerConfig(),
|
2020-04-09 15:41:38 +02:00
|
|
|
junit: {
|
|
|
|
reportName: 'X-Pack Endpoint Functional Tests',
|
|
|
|
},
|
2020-05-06 20:16:40 +02:00
|
|
|
services,
|
2020-04-09 15:41:38 +02:00
|
|
|
apps: {
|
|
|
|
...xpackFunctionalConfig.get('apps'),
|
2020-06-20 13:31:28 +02:00
|
|
|
['securitySolutionManagement']: {
|
2020-07-08 23:27:52 +02:00
|
|
|
pathname: '/app/security/administration',
|
2020-04-09 15:41:38 +02:00
|
|
|
},
|
2020-09-16 22:16:20 +02:00
|
|
|
...xpackFunctionalConfig.get('apps'),
|
|
|
|
['security']: {
|
|
|
|
pathname: '/app/security',
|
|
|
|
},
|
2020-04-09 15:41:38 +02:00
|
|
|
},
|
|
|
|
kbnTestServer: {
|
|
|
|
...xpackFunctionalConfig.get('kbnTestServer'),
|
|
|
|
serverArgs: [
|
|
|
|
...xpackFunctionalConfig.get('kbnTestServer.serverArgs'),
|
|
|
|
'--xpack.ingestManager.enabled=true',
|
2020-07-27 20:13:50 +02:00
|
|
|
// if you return an empty string here the kibana server will not start properly but an empty array works
|
|
|
|
...getRegistryUrlAsArray(),
|
2020-04-09 15:41:38 +02:00
|
|
|
],
|
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|