import { FtrProviderContext } from '../../../../common/ftr_provider_context' ; export default function indexTest ( { getService } ) { const supertest = getService ( 'supertest' ) ; describe ( 'index action' , ( ) => { it ( 'should return 200 when creating an index action' , async ( ) => { await supertest . post ( '/api/actions/action' ) . set ( 'kbn-xsrf' , 'foo' ) . send ( { name : 'An index action' , actionTypeId : '.index' , config : { index : 'foo' , } , secrets : { } , } ) . expect ( 200 ) ; } ) ; } ) ; }