import { FtrConfigProviderContext } from '@kbn/test' ; import { resolve } from 'path' ; import { ReportingAPIProvider } from '../reporting_api_integration/services' ; import { ReportingFunctionalProvider } from './services' ; export default async function ( { readConfigFile } ) { const functionalConfig = await readConfigFile ( require . resolve ( '../functional/config' ) ) ; const apiConfig = await readConfigFile ( require . resolve ( '../api_integration/config' ) ) ; return { ... apiConfig . getAll ( ) , ... functionalConfig . getAll ( ) , junit : { reportName : 'X-Pack Reporting Functional Tests' } , testFiles : [ resolve ( __dirname , './reporting_and_security' ) ] , kbnTestServer : { ... functionalConfig . get ( 'kbnTestServer' ) , serverArgs : [ ... functionalConfig . get ( 'kbnTestServer.serverArgs' ) , `--xpack.reporting.capture.maxAttempts=1` , `--xpack.reporting.csv.maxSizeBytes=6000` , '--xpack.reporting.roles.enabled=false' , ] , } , services : { ... apiConfig . get ( 'services' ) , ... functionalConfig . get ( 'services' ) , reportingAPI : ReportingAPIProvider , reportingFunctional : ReportingFunctionalProvider , } , } ; }