import expect from '@kbn/expect' ; import { FtrProviderContext } from '../services' ; export default function ( { getService } ) { const supertest = getService ( 'supertest' ) ; describe ( 'Info' , ( ) => { describe ( 'GET /api/licensing/info' , ( ) => { it ( 'returns licensing information' , async ( ) => { const response = await supertest . get ( '/api/licensing/info' ) . expect ( 200 ) ; expect ( response . body ) . property ( 'features' ) ; expect ( response . body ) . property ( 'license' ) ; expect ( response . body ) . property ( 'signature' ) ; } ) ; it ( 'returns a correct license type' , async ( ) => { const response = await supertest . get ( '/api/licensing/info' ) . expect ( 200 ) ; expect ( response . body . license . type ) . to . be ( 'basic' ) ; } ) ; } ) ; } ) ; }