import { FtrConfigProviderContext } from '@kbn/test' ; import { services } from './services' ; export default async function ( { readConfigFile } ) { const xPackAPITestsConfig = await readConfigFile ( require . resolve ( '../api_integration/config.ts' ) ) ; return { testFiles : [ require . resolve ( './tests/http_bearer' ) ] , servers : xPackAPITestsConfig . get ( 'servers' ) , security : { disableTestUser : true } , services , junit : { reportName : 'X-Pack Security API Integration Tests (HTTP Bearer)' , } , esTestCluster : { ... xPackAPITestsConfig . get ( 'esTestCluster' ) , serverArgs : [ ... xPackAPITestsConfig . get ( 'esTestCluster.serverArgs' ) , 'xpack.security.authc.token.enabled=true' , 'xpack.security.authc.token.timeout=15s' , ] , } , kbnTestServer : { ... xPackAPITestsConfig . get ( 'kbnTestServer' ) , } , } ; }