mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
## Summary Adds usage telemetry to collect usage info on rules that have response actions configured. > [!Note] > The changes in the PR do not collect sensitive user info. ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [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 - [ ] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker) - [ ] This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The `release_note:breaking` label should be applied in these situations. - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [ ] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) ### Identify risks Does this PR introduce any risks? For example, consider risks like hard to test bugs, performance regression, potential of data loss. Describe the risk, its severity, and mitigation for each identified risk. Invite stakeholders and evaluate how to proceed before merging. - [ ] [See some risk examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx) - [ ] ...
50 lines
1.9 KiB
TypeScript
50 lines
1.9 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.securitySolution.enableExperimental=${JSON.stringify([
|
|
'responseActionsTelemetryEnabled',
|
|
])}`,
|
|
`--xpack.stack_connectors.enableExperimental=${JSON.stringify([
|
|
'crowdstrikeConnectorOn',
|
|
'microsoftDefenderEndpointOn',
|
|
])}`,
|
|
...findTestPluginPaths(path.resolve(__dirname, 'plugins')),
|
|
],
|
|
},
|
|
};
|
|
}
|