import { resolve } from 'path' ; import { FtrConfigProviderContext } from '@kbn/test' ; import { pageObjects } from './page_objects' ; import { services } from './services' ; import { getRegistryUrlAsArray , createEndpointDockerConfig , } from '../security_solution_endpoint_api_int/registry' ; export default async function ( { readConfigFile } ) { const xpackFunctionalConfig = await readConfigFile ( require . resolve ( '../functional/config.js' ) ) ; return { ... xpackFunctionalConfig . getAll ( ) , pageObjects , testFiles : [ resolve ( __dirname , './apps/endpoint' ) ] , dockerServers : createEndpointDockerConfig ( ) , junit : { reportName : 'X-Pack Endpoint Functional Tests' , } , services , apps : { ... xpackFunctionalConfig . get ( 'apps' ) , [ 'securitySolutionManagement' ] : { pathname : '/app/security/administration' , } , [ 'security' ] : { pathname : '/app/security' , } , } , kbnTestServer : { ... xpackFunctionalConfig . get ( 'kbnTestServer' ) , serverArgs : [ ... xpackFunctionalConfig . get ( 'kbnTestServer.serverArgs' ) , ... getRegistryUrlAsArray ( ) , `--xpack.fleet.packages.0.name=endpoint` , `--xpack.fleet.packages.0.version=latest` , ] , } , layout : { fixedHeaderHeight : 200 , } , } ; }