mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 19:13:14 -04:00
## Summary Runtime for `fleet_api_integration/config` crossed the 38 min limit. Ideally config runtime should be <10 min so that pipeline can quickly retry failed configs (we do 1 retry on CI) <img width="1600" alt="image" src="https://user-images.githubusercontent.com/10977896/235707744-3120e1e9-4882-493f-9ee0-86016a765401.png"> This PR splits the existing config into few smaller ones: ``` x-pack/test/fleet_api_integration/config.agent.ts 15m 15s x-pack/test/fleet_api_integration/config.agent_policy.ts 4m 10s x-pack/test/fleet_api_integration/config.epm.ts 8m 12s x-pack/test/fleet_api_integration/config.package_policy.ts 10m 54s // combines multiple test files x-pack/test/fleet_api_integration/config.fleet.ts 5m 2s ```
20 lines
664 B
TypeScript
20 lines
664 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 baseFleetApiConfig = await readConfigFile(require.resolve('./config.base.ts'));
|
|
|
|
return {
|
|
...baseFleetApiConfig.getAll(),
|
|
testFiles: [require.resolve('./apis/agents')],
|
|
junit: {
|
|
reportName: 'X-Pack Fleet Agent API Integration Tests',
|
|
},
|
|
};
|
|
}
|