2020-04-09 20:14:20 +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-07 15:33:36 +02:00
|
|
|
import { services } from './services';
|
2020-07-27 23:19:10 +02:00
|
|
|
import {
|
|
|
|
getRegistryUrlAsArray,
|
|
|
|
createEndpointDockerConfig,
|
|
|
|
} from '../security_solution_endpoint_api_int/registry';
|
2020-04-09 20:14:20 +02:00
|
|
|
|
2020-05-22 10:08:13 +02:00
|
|
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
2020-04-09 20:14:20 +02:00
|
|
|
const xpackFunctionalConfig = await readConfigFile(require.resolve('../functional/config.js'));
|
|
|
|
|
|
|
|
return {
|
|
|
|
...xpackFunctionalConfig.getAll(),
|
|
|
|
pageObjects,
|
|
|
|
testFiles: [resolve(__dirname, './apps/endpoint')],
|
2020-07-27 23:19:10 +02:00
|
|
|
dockerServers: createEndpointDockerConfig(),
|
2020-04-09 20:14:20 +02:00
|
|
|
junit: {
|
|
|
|
reportName: 'X-Pack Endpoint Functional Tests',
|
|
|
|
},
|
2020-05-07 15:33:36 +02:00
|
|
|
services,
|
2020-04-09 20:14:20 +02:00
|
|
|
apps: {
|
|
|
|
...xpackFunctionalConfig.get('apps'),
|
2020-06-20 21:05:30 +02:00
|
|
|
['securitySolutionManagement']: {
|
2020-07-09 05:14:45 +02:00
|
|
|
pathname: '/app/security/administration',
|
2020-04-09 20:14:20 +02:00
|
|
|
},
|
2020-09-22 15:55:27 +02:00
|
|
|
['security']: {
|
|
|
|
pathname: '/app/security',
|
|
|
|
},
|
2020-04-09 20:14:20 +02:00
|
|
|
},
|
|
|
|
kbnTestServer: {
|
|
|
|
...xpackFunctionalConfig.get('kbnTestServer'),
|
|
|
|
serverArgs: [
|
|
|
|
...xpackFunctionalConfig.get('kbnTestServer.serverArgs'),
|
2020-10-06 20:06:52 +02:00
|
|
|
'--xpack.fleet.enabled=true',
|
2020-07-27 23:19:10 +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 20:14:20 +02:00
|
|
|
],
|
|
|
|
},
|
2020-11-17 11:10:57 +01:00
|
|
|
layout: {
|
|
|
|
fixedHeaderHeight: 200,
|
|
|
|
},
|
2020-04-09 20:14:20 +02:00
|
|
|
};
|
|
|
|
}
|