import { FtrConfigProviderContext } from '@kbn/test' ; import { services , pageObjects } from './services' ; const license = 'basic' ; export default async function ( { readConfigFile } ) { const functionalTestsConfig = await readConfigFile ( require . resolve ( '../functional/config.js' ) ) ; const servers = { ... functionalTestsConfig . get ( 'servers' ) , elasticsearch : { ... functionalTestsConfig . get ( 'servers.elasticsearch' ) , } , kibana : { ... functionalTestsConfig . get ( 'servers.kibana' ) , } , } ; return { testFiles : [ require . resolve ( './server' ) ] , servers , services , pageObjects , junit : { reportName : 'License plugin API Integration Tests' , } , esTestCluster : { ... functionalTestsConfig . get ( 'esTestCluster' ) , license , serverArgs : [ ... functionalTestsConfig . get ( 'esTestCluster.serverArgs' ) , 'xpack.security.enabled=true' , ] , } , kbnTestServer : { ... functionalTestsConfig . get ( 'kbnTestServer' ) , serverArgs : [ ... functionalTestsConfig . get ( 'kbnTestServer.serverArgs' ) , '--xpack.licensing.api_polling_frequency=100' , ] , } , apps : { ... functionalTestsConfig . get ( 'apps' ) , } , } ; }