import { FtrProviderContext } from '../../common/ftr_provider_context' ; import { Spaces } from '../scenarios' ; export default function alertingApiIntegrationTests ( { loadTestFile } ) { describe ( 'alerting api integration spaces only' , function ( ) { this . tags ( 'ciGroup12' ) ; loadTestFile ( require . resolve ( './actions' ) ) ; loadTestFile ( require . resolve ( './alerting' ) ) ; loadTestFile ( require . resolve ( './action_task_params' ) ) ; } ) ; } export async function buildUp ( getService ) { const spacesService = getService ( 'spaces' ) ; for ( const space of Object . values ( Spaces ) ) { if ( space . id === 'default' ) continue ; const { id , name , disabledFeatures } = space ; await spacesService . create ( { id , name , disabledFeatures } ) ; } } export async function tearDown ( getService ) { const esArchiver = getService ( 'esArchiver' ) ; await esArchiver . unload ( 'x-pack/test/functional/es_archives/empty_kibana' ) ; }