import { FtrConfigProviderContext } from '@kbn/test' ; import { createEndpointDockerConfig , getRegistryUrlAsArray } from './registry' ; import { services } from './services' ; export default async function ( { readConfigFile } ) { const xPackAPITestsConfig = await readConfigFile ( require . resolve ( '../api_integration/config.ts' ) ) ; return { ... xPackAPITestsConfig . getAll ( ) , testFiles : [ require . resolve ( './apis' ) ] , dockerServers : createEndpointDockerConfig ( ) , services , junit : { reportName : 'X-Pack Endpoint API Integration Tests' , } , kbnTestServer : { ... xPackAPITestsConfig . get ( 'kbnTestServer' ) , serverArgs : [ ... xPackAPITestsConfig . get ( 'kbnTestServer.serverArgs' ) , ... getRegistryUrlAsArray ( ) , `--xpack.fleet.packages.0.name=endpoint` , `--xpack.fleet.packages.0.version=latest` , ] , } , } ; }