import { getTestAlertData } from '../../../common/lib' ; import { FtrProviderContext } from '../../../../common/ftr_provider_context' ; export default function basicAlertTest ( { getService } ) { const supertest = getService ( 'supertest' ) ; describe ( 'basic alert' , ( ) => { it ( 'should return 200 when creating a basic license alert' , async ( ) => { await supertest . post ( `/api/alerting/rule` ) . set ( 'kbn-xsrf' , 'foo' ) . send ( getTestAlertData ( ) ) . expect ( 200 ) ; } ) ; } ) ; }