import { FtrProviderContext } from '../../ftr_provider_context' ; export default function ( { getService , loadTestFile } ) { const esArchiver = getService ( 'esArchiver' ) ; const ml = getService ( 'ml' ) ; describe ( 'machine learning basic license' , function ( ) { this . tags ( [ 'ciGroup14' , 'skipFirefox' , 'mlqa' ] ) ; before ( async ( ) => { await ml . securityCommon . createMlRoles ( ) ; await ml . securityCommon . createMlUsers ( ) ; } ) ; after ( async ( ) => { await ml . securityCommon . cleanMlUsers ( ) ; await ml . securityCommon . cleanMlRoles ( ) ; await ml . testResources . deleteSavedSearches ( ) ; await ml . testResources . deleteIndexPatternByTitle ( 'ft_farequote' ) ; await ml . testResources . deleteIndexPatternByTitle ( 'ft_module_sample_ecommerce' ) ; await esArchiver . unload ( 'x-pack/test/functional/es_archives/ml/farequote' ) ; await esArchiver . unload ( 'x-pack/test/functional/es_archives/ml/module_sample_ecommerce' ) ; await ml . testResources . resetKibanaTimeZone ( ) ; } ) ; loadTestFile ( require . resolve ( './permissions' ) ) ; loadTestFile ( require . resolve ( './data_visualizer' ) ) ; } ) ; }