import { mapValues } from 'lodash' ; import { createTestConfig , CreateTestConfig } from '../common/config' ; const apmFtrConfigs = { basic : { license : 'basic' as const , } , trial : { license : 'trial' as const , } , rules : { license : 'trial' as const , kibanaConfig : { 'xpack.ruleRegistry.write.enabled' : 'true' , } , } , } ; export type APMFtrConfigName = keyof typeof apmFtrConfigs ; export const configs = mapValues ( apmFtrConfigs , ( value , key ) => { return createTestConfig ( { name : key as APMFtrConfigName , ... value , } ) ; } ) ;