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_no_auth_providers' ) ] , servers : xPackAPITestsConfig . get ( 'servers' ) , security : { disableTestUser : true } , services , junit : { reportName : 'X-Pack Security API Integration Tests (HTTP without providers)' , } , esTestCluster : xPackAPITestsConfig . get ( 'esTestCluster' ) , kbnTestServer : { ... xPackAPITestsConfig . get ( 'kbnTestServer' ) , serverArgs : [ ... xPackAPITestsConfig . get ( 'kbnTestServer.serverArgs' ) , `--xpack.security.authc.http.schemes=${ JSON . stringify ( [ 'apikey' , 'basic' ] ) }` , `--xpack.security.authc.providers=${ JSON . stringify ( { basic : { basic1 : { order : 0 , enabled : false } } , } ) }` , ] , } , } ; }