import expect from '@kbn/expect' ; import { FtrProviderContext } from '../../../ftr_provider_context' ; export default function ( { getService } ) { const supertest = getService ( 'supertest' ) ; const es = getService ( 'es' ) ; describe ( 'load' , ( ) => { it ( 'should return the ES cluster info' , async ( ) => { const { body } = await supertest . get ( '/api/logstash/cluster' ) . expect ( 200 ) ; const responseFromES = await es . info ( ) ; expect ( body . cluster . uuid ) . to . eql ( responseFromES . cluster_uuid ) ; } ) ; } ) ; }