* add custom runner and config for load testing * add full maven command * add jenkins script * run tests against build * run kibana with no-base-path flag Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
48 lines
1.3 KiB
TypeScript
48 lines
1.3 KiB
TypeScript
/*
|
|
* 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 { resolve } from 'path';
|
|
|
|
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
|
import { GatlingTestRunner } from './runner';
|
|
|
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|
const kibanaCommonTestsConfig = await readConfigFile(
|
|
require.resolve('../../../test/common/config.js')
|
|
);
|
|
const xpackFunctionalTestsConfig = await readConfigFile(
|
|
require.resolve('../functional/config.js')
|
|
);
|
|
|
|
return {
|
|
...kibanaCommonTestsConfig.getAll(),
|
|
|
|
testRunner: GatlingTestRunner,
|
|
|
|
esArchiver: {
|
|
directory: resolve(__dirname, 'es_archives'),
|
|
},
|
|
|
|
screenshots: {
|
|
directory: resolve(__dirname, 'screenshots'),
|
|
},
|
|
|
|
esTestCluster: {
|
|
...xpackFunctionalTestsConfig.get('esTestCluster'),
|
|
serverArgs: [...xpackFunctionalTestsConfig.get('esTestCluster.serverArgs')],
|
|
},
|
|
|
|
kbnTestServer: {
|
|
...xpackFunctionalTestsConfig.get('kbnTestServer'),
|
|
sourceArgs: [
|
|
...xpackFunctionalTestsConfig.get('kbnTestServer.sourceArgs'),
|
|
'--no-base-path',
|
|
'--env.name=development',
|
|
],
|
|
},
|
|
};
|
|
}
|