mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 19:13:14 -04:00
## Summary Forward-porting the changes https://github.com/elastic/kibana/pull/204503 to `main`. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
44 lines
1.7 KiB
TypeScript
44 lines
1.7 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
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
import { commonFunctionalServices } from '@kbn/ftr-common-functional-services';
|
|
import { FtrConfigProviderContext } from '@kbn/test';
|
|
import path from 'node:path';
|
|
|
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|
// Read the Kibana API integration tests config file so that we can utilize its services.
|
|
const kibanaAPITestsConfig = await readConfigFile(
|
|
require.resolve('@kbn/test-suites-src/api_integration/config')
|
|
);
|
|
const xPackFunctionalTestsConfig = await readConfigFile(
|
|
require.resolve('../functional/config.base.js')
|
|
);
|
|
|
|
return {
|
|
testFiles: [require.resolve('./upgrade_assistant')],
|
|
servers: xPackFunctionalTestsConfig.get('servers'),
|
|
services: {
|
|
...commonFunctionalServices,
|
|
supertest: kibanaAPITestsConfig.get('services.supertest'),
|
|
},
|
|
junit: {
|
|
reportName: 'X-Pack Upgrade Assistant Integration Tests',
|
|
},
|
|
kbnTestServer: {
|
|
...xPackFunctionalTestsConfig.get('kbnTestServer'),
|
|
serverArgs: [
|
|
...xPackFunctionalTestsConfig.get('kbnTestServer.serverArgs'),
|
|
`--plugin-path=${path.resolve(__dirname, '../../../examples/routing_example')}`,
|
|
`--plugin-path=${path.resolve(__dirname, '../../../examples/developer_examples')}`,
|
|
],
|
|
},
|
|
esTestCluster: {
|
|
...xPackFunctionalTestsConfig.get('esTestCluster'),
|
|
dataArchive: path.resolve(__dirname, './fixtures/data_archives/upgrade_assistant.zip'),
|
|
},
|
|
};
|
|
}
|