2020-10-06 03:35:23 +02:00
|
|
|
/*
|
2021-01-20 02:54:11 +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
|
2021-02-04 03:39:13 +01:00
|
|
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
|
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
|
|
* Side Public License, v 1.
|
2020-10-06 03:35:23 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
import path from 'path';
|
2021-05-17 20:49:48 +02:00
|
|
|
import { FtrConfigProviderContext } from '@kbn/test';
|
2020-10-06 03:35:23 +02:00
|
|
|
|
|
|
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|
|
|
const functionalConfig = await readConfigFile(require.resolve('../functional/config'));
|
|
|
|
|
|
|
|
return {
|
|
|
|
testFiles: [require.resolve('./index.ts')],
|
|
|
|
services: functionalConfig.get('services'),
|
|
|
|
pageObjects: functionalConfig.get('pageObjects'),
|
|
|
|
servers: functionalConfig.get('servers'),
|
|
|
|
esTestCluster: functionalConfig.get('esTestCluster'),
|
|
|
|
apps: {},
|
|
|
|
snapshots: {
|
|
|
|
directory: path.resolve(__dirname, 'snapshots'),
|
|
|
|
},
|
|
|
|
junit: {
|
|
|
|
reportName: 'Security OSS Functional Tests',
|
|
|
|
},
|
|
|
|
kbnTestServer: {
|
|
|
|
...functionalConfig.get('kbnTestServer'),
|
|
|
|
serverArgs: [
|
|
|
|
...functionalConfig
|
|
|
|
.get('kbnTestServer.serverArgs')
|
|
|
|
.filter((arg: string) => !arg.startsWith('--security.showInsecureClusterWarning')),
|
|
|
|
'--security.showInsecureClusterWarning=true',
|
|
|
|
// Required to load new platform plugins via `--plugin-path` flag.
|
|
|
|
'--env.name=development',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|