import { FtrConfigProviderContext } from '@kbn/test' ; import { CA_CERT_PATH } from '@kbn/dev-utils' ; export default async function ( { readConfigFile } ) { const kibanaCommonTestsConfig = await readConfigFile ( require . resolve ( '../../../test/common/config.js' ) ) ; const xpackFunctionalTestsConfig = await readConfigFile ( require . resolve ( '../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' ) , '--csp.strict=false' , `--elasticsearch.ssl.certificateAuthorities=${ CA_CERT_PATH }` , '--xpack.securitySolution.prebuiltRulesFromFileSystem=true' , '--xpack.securitySolution.prebuiltRulesFromSavedObjects=false' , '--xpack.ruleRegistry.write.enabled=true' , '--xpack.ruleRegistry.write.cache.enabled=false' , '--xpack.ruleRegistry.unsafe.indexUpgrade.enabled=true' , '--xpack.ruleRegistry.unsafe.legacyMultiTenancy.enabled=true' , `--xpack.securitySolution.enableExperimental=${ JSON . stringify ( [ 'riskyHostsEnabled' , 'ruleRegistryEnabled' , ] ) }` , `--home.disableWelcomeScreen=true` , ] , } , } ; }