import { FtrConfigProviderContext } from '@kbn/test' ; export default async function ( { readConfigFile } ) { const kibanaAPITestsConfig = await readConfigFile ( require . resolve ( '../../../test/api_integration/config.js' ) ) ; const xPackAPITestsConfig = await readConfigFile ( require . resolve ( '../api_integration/config.ts' ) ) ; return { testFiles : [ require . resolve ( './tests/anonymous' ) ] , servers : xPackAPITestsConfig . get ( 'servers' ) , security : { disableTestUser : true } , services : { ... kibanaAPITestsConfig . get ( 'services' ) , ... xPackAPITestsConfig . get ( 'services' ) , } , junit : { reportName : 'X-Pack Security API Integration Tests (Anonymous with Username and Password)' , } , esTestCluster : { ... xPackAPITestsConfig . get ( 'esTestCluster' ) } , kbnTestServer : { ... xPackAPITestsConfig . get ( 'kbnTestServer' ) , serverArgs : [ ... xPackAPITestsConfig . get ( 'kbnTestServer.serverArgs' ) , `--xpack.security.authc.selector.enabled=false` , `--xpack.security.authc.providers=${ JSON . stringify ( { anonymous : { anonymous1 : { order : 0 , credentials : { username : 'anonymous_user' , password : 'changeme' } , } , } , basic : { basic1 : { order : 1 } } , } ) }` , ] , } , } ; }