2021-03-31 10:57:06 +02:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2021-05-17 18:51:53 +02:00
|
|
|
import { FtrConfigProviderContext } from '@kbn/test';
|
2021-03-31 10:57:06 +02:00
|
|
|
import { services, pageObjects } from './ftr_provider_context';
|
|
|
|
|
|
|
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|
|
|
const kibanaFunctionalConfig = await readConfigFile(require.resolve('../functional/config.js'));
|
|
|
|
|
|
|
|
return {
|
|
|
|
testFiles: [require.resolve('./tests')],
|
|
|
|
servers: {
|
|
|
|
...kibanaFunctionalConfig.get('servers'),
|
|
|
|
},
|
|
|
|
services,
|
|
|
|
pageObjects,
|
|
|
|
|
|
|
|
junit: {
|
|
|
|
reportName: 'X-Pack Banners Functional Tests',
|
|
|
|
},
|
|
|
|
|
|
|
|
esTestCluster: kibanaFunctionalConfig.get('esTestCluster'),
|
|
|
|
apps: {
|
|
|
|
...kibanaFunctionalConfig.get('apps'),
|
|
|
|
},
|
|
|
|
|
|
|
|
kbnTestServer: {
|
|
|
|
...kibanaFunctionalConfig.get('kbnTestServer'),
|
|
|
|
serverArgs: [
|
|
|
|
...kibanaFunctionalConfig.get('kbnTestServer.serverArgs'),
|
2021-10-05 21:30:49 +02:00
|
|
|
'--xpack.banners.placement=top',
|
2021-03-31 10:57:06 +02:00
|
|
|
'--xpack.banners.textContent="global banner text"',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|