kibana/x-pack/test/apm_api_integration/configs/index.ts

33 lines
805 B
TypeScript

/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import { mapValues } from 'lodash';
import { createTestConfig } from '../common/config';
const apmFtrConfigs = {
basic: {
license: 'basic' as const,
},
trial: {
license: 'trial' as const,
},
rules: {
license: 'trial' as const,
kibanaConfig: {
'xpack.ruleRegistry.index': '.kibana-alerts',
},
},
};
export type APMFtrConfigName = keyof typeof apmFtrConfigs;
export const configs = mapValues(apmFtrConfigs, (value, key) => {
return createTestConfig({
name: key as APMFtrConfigName,
...value,
});
});