import { FtrProviderContext } from '../../../common/ftr_provider_context' ; import { buildUp , tearDown } from '..' ; export default function alertingTests ( { loadTestFile , getService } ) { describe ( 'Alerting' , ( ) => { before ( async ( ) => buildUp ( getService ) ) ; after ( async ( ) => tearDown ( getService ) ) ; loadTestFile ( require . resolve ( './aggregate' ) ) ; loadTestFile ( require . resolve ( './create' ) ) ; loadTestFile ( require . resolve ( './delete' ) ) ; loadTestFile ( require . resolve ( './disable' ) ) ; loadTestFile ( require . resolve ( './enable' ) ) ; loadTestFile ( require . resolve ( './find' ) ) ; loadTestFile ( require . resolve ( './get' ) ) ; loadTestFile ( require . resolve ( './get_alert_state' ) ) ; loadTestFile ( require . resolve ( './get_alert_summary' ) ) ; loadTestFile ( require . resolve ( './rule_types' ) ) ; loadTestFile ( require . resolve ( './event_log' ) ) ; loadTestFile ( require . resolve ( './execution_status' ) ) ; 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_space1' ) ) ; loadTestFile ( require . resolve ( './alerts_default_space' ) ) ; loadTestFile ( require . resolve ( './builtin_alert_types' ) ) ; loadTestFile ( require . resolve ( './transform_rule_types' ) ) ; loadTestFile ( require . resolve ( './ml_rule_types' ) ) ; loadTestFile ( require . resolve ( './mustache_templates.ts' ) ) ; loadTestFile ( require . resolve ( './notify_when' ) ) ; loadTestFile ( require . resolve ( './ephemeral' ) ) ; loadTestFile ( require . resolve ( './event_log_alerts' ) ) ; loadTestFile ( require . resolve ( './scheduled_task_id' ) ) ; loadTestFile ( require . resolve ( './migrations' ) ) ; } ) ; }