mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 19:13:14 -04:00
## Summary Closes https://github.com/elastic/kibana/issues/165043 Updates the approach to load packages in test suites by sending http request before suite starts instead of using `xpack.fleet.developer.bundledPackageLocation` [Flaky test runner](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3075)
26 lines
949 B
TypeScript
26 lines
949 B
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 { FtrConfigProviderContext } from '@kbn/test';
|
|
|
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|
const xPackAPITestsConfig = await readConfigFile(require.resolve('../api_integration/config.ts'));
|
|
|
|
return {
|
|
testFiles: [require.resolve('./apis')],
|
|
servers: xPackAPITestsConfig.get('servers'),
|
|
services: xPackAPITestsConfig.get('services'),
|
|
junit: {
|
|
reportName: 'X-Pack Monitoring API Integration Tests',
|
|
},
|
|
esTestCluster: xPackAPITestsConfig.get('esTestCluster'),
|
|
kbnTestServer: {
|
|
...xPackAPITestsConfig.get('kbnTestServer'),
|
|
serverArgs: [...xPackAPITestsConfig.get('kbnTestServer.serverArgs')],
|
|
},
|
|
};
|
|
}
|