2020-12-15 12:44:20 +01:00
|
|
|
/*
|
2021-01-20 02:52:56 +01:00
|
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
|
|
* and the Server Side Public License, v 1; you may not use this file except in
|
|
|
|
* compliance with, at your election, the Elastic License or the Server Side
|
|
|
|
* Public License, v 1.
|
2020-12-15 12:44:20 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
|
|
|
|
|
|
|
// eslint-disable-next-line import/no-default-export
|
|
|
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|
|
|
const defaultConfig = await readConfigFile(require.resolve('./config'));
|
|
|
|
|
|
|
|
return {
|
|
|
|
...defaultConfig.getAll(),
|
|
|
|
|
|
|
|
testFiles: [require.resolve('./apps/visualize/legacy')],
|
|
|
|
|
|
|
|
kbnTestServer: {
|
|
|
|
...defaultConfig.get('kbnTestServer'),
|
|
|
|
serverArgs: [
|
|
|
|
...defaultConfig.get('kbnTestServer.serverArgs'),
|
|
|
|
'--vis_type_table.legacyVisEnabled=true',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|