2019-12-24 10:31:18 +01:00
|
|
|
/*
|
|
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
2021-02-04 03:12:39 +01:00
|
|
|
* 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.
|
2019-12-24 10:31:18 +01:00
|
|
|
*/
|
2021-02-04 03:12:39 +01:00
|
|
|
|
2019-12-24 10:31:18 +01:00
|
|
|
import path from 'path';
|
2021-03-31 01:02:22 +02:00
|
|
|
// @ts-expect-error https://github.com/elastic/kibana/issues/95679
|
2019-12-24 10:31:18 +01:00
|
|
|
import { KIBANA_ROOT } from '@kbn/test';
|
2021-05-17 18:51:53 +02:00
|
|
|
import { FtrConfigProviderContext } from '@kbn/test';
|
2019-12-24 10:31:18 +01:00
|
|
|
|
2020-05-22 09:08:58 +02:00
|
|
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
2019-12-24 10:31:18 +01:00
|
|
|
const commonConfig = await readConfigFile(require.resolve('./config'));
|
|
|
|
|
|
|
|
return {
|
|
|
|
...commonConfig.getAll(),
|
|
|
|
testFiles: [require.resolve('./public')],
|
|
|
|
kbnTestServer: {
|
2020-05-07 08:26:11 +02:00
|
|
|
...commonConfig.get('kbnTestServer'),
|
2019-12-24 10:31:18 +01:00
|
|
|
serverArgs: [
|
|
|
|
...commonConfig.get('kbnTestServer.serverArgs'),
|
|
|
|
// Required to load new platform plugin provider via `--plugin-path` flag.
|
|
|
|
'--env.name=development',
|
|
|
|
`--plugin-path=${path.resolve(
|
|
|
|
KIBANA_ROOT,
|
|
|
|
'test/plugin_functional/plugins/core_provider_plugin'
|
|
|
|
)}`,
|
2020-10-07 17:18:43 +02:00
|
|
|
`--plugin-path=${path.resolve(__dirname, 'plugins/test_feature_usage')}`,
|
2019-12-24 10:31:18 +01:00
|
|
|
],
|
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|