import { FtrConfigProviderContext } from '@kbn/test' ; import { CA_CERT_PATH } from '@kbn/dev-utils' ; export const packageRegistryPort = 1234 ; async function config ( { readConfigFile } ) { const kibanaCommonTestsConfig = await readConfigFile ( require . resolve ( '../../../../test/common/config.js' ) ) ; const xpackFunctionalTestsConfig = await readConfigFile ( require . resolve ( '../../../test/functional/config.js' ) ) ; return { ... kibanaCommonTestsConfig . getAll ( ) , esTestCluster : { ... xpackFunctionalTestsConfig . get ( 'esTestCluster' ) , serverArgs : [ ... xpackFunctionalTestsConfig . get ( 'esTestCluster.serverArgs' ) , 'xpack.security.enabled=true' , ] , } , kbnTestServer : { ... xpackFunctionalTestsConfig . get ( 'kbnTestServer' ) , serverArgs : [ ... xpackFunctionalTestsConfig . get ( 'kbnTestServer.serverArgs' ) , '--home.disableWelcomeScreen=true' , '--csp.strict=false' , '--csp.warnLegacyBrowsers=false' , `--elasticsearch.ssl.certificateAuthorities=${ CA_CERT_PATH }` , `--xpack.fleet.packages.0.name=endpoint` , `--xpack.fleet.packages.0.version=latest` , `--xpack.fleet.registryUrl=http://localhost:${ packageRegistryPort }` , ] , } , } ; } export default config ;