import { getTestScenarios } from '../../common/lib/saved_object_test_utils' ; import { FtrProviderContext } from '../../common/ftr_provider_context' ; import { exportTestSuiteFactory , getTestCases } from '../../common/suites/export' ; const createTestCases = ( spaceId ) => { const cases = getTestCases ( spaceId ) ; return Object . values ( cases ) ; } ; export default function ( { getService } ) { const supertest = getService ( 'supertest' ) ; const esArchiver = getService ( 'esArchiver' ) ; const { addTests , createTestDefinitions } = exportTestSuiteFactory ( esArchiver , supertest ) ; const createTests = ( spaceId ) => { const testCases = createTestCases ( spaceId ) ; return createTestDefinitions ( testCases , false ) ; } ; describe ( '_export' , ( ) => { getTestScenarios ( ) . spaces . forEach ( ( { spaceId } ) => { const tests = createTests ( spaceId ) ; addTests ( `within the ${ spaceId } space` , { spaceId , tests } ) ; } ) ; } ) ; }