mirror of
https://github.com/elastic/kibana.git
synced 2025-06-29 03:24:45 -04:00
## Summary This PR adds a test config category to the scout reporting. This allows us to distinguish between UI and API FTR tests. A new property `testConfigCategory` has been added to all FTR configs that don't already inherit it from a higher level config.
47 lines
1.8 KiB
TypeScript
47 lines
1.8 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 path from 'path';
|
|
import { FtrConfigProviderContext, findTestPluginPaths } from '@kbn/test';
|
|
import { ScoutTestRunConfigCategory } from '@kbn/scout-info';
|
|
import { services } from './services';
|
|
|
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|
const integrationConfig = await readConfigFile(require.resolve('../api_integration/config'));
|
|
|
|
return {
|
|
testConfigCategory: ScoutTestRunConfigCategory.API_TEST,
|
|
testFiles: [
|
|
require.resolve('./test_suites/platform'),
|
|
require.resolve('./test_suites/task_manager'),
|
|
require.resolve('./test_suites/event_log'),
|
|
require.resolve('./test_suites/licensed_feature_usage'),
|
|
],
|
|
services,
|
|
servers: integrationConfig.get('servers'),
|
|
esTestCluster: integrationConfig.get('esTestCluster'),
|
|
apps: integrationConfig.get('apps'),
|
|
screenshots: integrationConfig.get('screenshots'),
|
|
junit: {
|
|
reportName: 'Plugin Functional Tests',
|
|
},
|
|
kbnTestServer: {
|
|
...integrationConfig.get('kbnTestServer'),
|
|
serverArgs: [
|
|
...integrationConfig.get('kbnTestServer.serverArgs'),
|
|
'--xpack.eventLog.logEntries=true',
|
|
'--xpack.eventLog.indexEntries=true',
|
|
'--xpack.task_manager.monitored_aggregated_stats_refresh_rate=5000',
|
|
`--xpack.stack_connectors.enableExperimental=${JSON.stringify([
|
|
'crowdstrikeConnectorOn',
|
|
'microsoftDefenderEndpointOn',
|
|
])}`,
|
|
...findTestPluginPaths(path.resolve(__dirname, 'plugins')),
|
|
],
|
|
},
|
|
};
|
|
}
|