import { FtrProviderContext } from '../../../common/ftr_provider_context' ; import { setupSpacesAndUsers , tearDown } from '..' ; export default function alertingTests ( { loadTestFile , getService } ) { describe ( 'Alerts' , ( ) => { describe ( 'legacy alerts' , ( ) => { before ( async ( ) => { await setupSpacesAndUsers ( getService ) ; } ) ; after ( async ( ) => { await tearDown ( getService ) ; } ) ; loadTestFile ( require . resolve ( './rbac_legacy' ) ) ; } ) ; describe ( 'alerts' , ( ) => { before ( async ( ) => { await setupSpacesAndUsers ( getService ) ; } ) ; after ( async ( ) => { await tearDown ( getService ) ; } ) ; loadTestFile ( require . resolve ( './find' ) ) ; loadTestFile ( require . resolve ( './create' ) ) ; loadTestFile ( require . resolve ( './delete' ) ) ; loadTestFile ( require . resolve ( './disable' ) ) ; loadTestFile ( require . resolve ( './enable' ) ) ; loadTestFile ( require . resolve ( './execution_status' ) ) ; loadTestFile ( require . resolve ( './get' ) ) ; loadTestFile ( require . resolve ( './get_alert_state' ) ) ; loadTestFile ( require . resolve ( './get_alert_summary' ) ) ; loadTestFile ( require . resolve ( './rule_types' ) ) ; loadTestFile ( require . resolve ( './mute_all' ) ) ; loadTestFile ( require . resolve ( './mute_instance' ) ) ; loadTestFile ( require . resolve ( './unmute_all' ) ) ; loadTestFile ( require . resolve ( './unmute_instance' ) ) ; loadTestFile ( require . resolve ( './update' ) ) ; loadTestFile ( require . resolve ( './update_api_key' ) ) ; loadTestFile ( require . resolve ( './alerts' ) ) ; loadTestFile ( require . resolve ( './event_log' ) ) ; loadTestFile ( require . resolve ( './mustache_templates' ) ) ; loadTestFile ( require . resolve ( './health' ) ) ; loadTestFile ( require . resolve ( './excluded' ) ) ; } ) ; } ) ; }