2019-12-09 12:07:20 +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;
|
|
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
|
|
*/
|
|
|
|
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
|
|
|
import { services, pageObjects } from './services';
|
|
|
|
|
|
|
|
const license = 'basic';
|
|
|
|
|
2020-05-22 10:08:13 +02:00
|
|
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
2019-12-09 12:07:20 +01:00
|
|
|
const functionalTestsConfig = await readConfigFile(require.resolve('../functional/config.js'));
|
|
|
|
|
|
|
|
const servers = {
|
|
|
|
...functionalTestsConfig.get('servers'),
|
|
|
|
elasticsearch: {
|
|
|
|
...functionalTestsConfig.get('servers.elasticsearch'),
|
|
|
|
},
|
|
|
|
kibana: {
|
|
|
|
...functionalTestsConfig.get('servers.kibana'),
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
return {
|
2019-12-24 12:43:36 +01:00
|
|
|
testFiles: [require.resolve('./server')],
|
2019-12-09 12:07:20 +01:00
|
|
|
servers,
|
|
|
|
services,
|
|
|
|
pageObjects,
|
|
|
|
junit: {
|
|
|
|
reportName: 'License plugin API Integration Tests',
|
|
|
|
},
|
|
|
|
|
|
|
|
esTestCluster: {
|
|
|
|
...functionalTestsConfig.get('esTestCluster'),
|
|
|
|
license,
|
|
|
|
serverArgs: [
|
|
|
|
...functionalTestsConfig.get('esTestCluster.serverArgs'),
|
|
|
|
'xpack.security.enabled=true',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
|
|
|
kbnTestServer: {
|
|
|
|
...functionalTestsConfig.get('kbnTestServer'),
|
|
|
|
serverArgs: [
|
|
|
|
...functionalTestsConfig.get('kbnTestServer.serverArgs'),
|
2019-12-24 12:43:36 +01:00
|
|
|
'--xpack.licensing.api_polling_frequency=100',
|
2019-12-09 12:07:20 +01:00
|
|
|
],
|
|
|
|
},
|
|
|
|
|
|
|
|
apps: {
|
|
|
|
...functionalTestsConfig.get('apps'),
|
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|