mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
# Backport This will backport the following commits from `main` to `8.14`: - [[ML] Enable transform health rule API tests (#182560)](https://github.com/elastic/kibana/pull/182560) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Dima Arnautov","email":"dmitrii.arnautov@elastic.co"},"sourceCommit":{"committedDate":"2024-05-08T15:00:52Z","message":"[ML] Enable transform health rule API tests (#182560)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/177215\r\n\r\n### Checklist\r\n\r\n- [x] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed","sha":"4759173e7e98741dbc958506f2706823e12a2303","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":[":ml","release_note:skip","Feature:Alerting/RuleTypes","Team:ML","v8.14.0","v8.15.0"],"title":"[ML] Enable transform health rule API tests ","number":182560,"url":"https://github.com/elastic/kibana/pull/182560","mergeCommit":{"message":"[ML] Enable transform health rule API tests (#182560)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/177215\r\n\r\n### Checklist\r\n\r\n- [x] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed","sha":"4759173e7e98741dbc958506f2706823e12a2303"}},"sourceBranch":"main","suggestedTargetBranches":["8.14"],"targetPullRequestStates":[{"branch":"8.14","label":"v8.14.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.15.0","branchLabelMappingKey":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/182560","number":182560,"mergeCommit":{"message":"[ML] Enable transform health rule API tests (#182560)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/177215\r\n\r\n### Checklist\r\n\r\n- [x] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed","sha":"4759173e7e98741dbc958506f2706823e12a2303"}}]}] BACKPORT--> Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
465f50087c
commit
d3a4d221ef
1 changed files with 5 additions and 3 deletions
|
@ -23,6 +23,7 @@ import { TRANSFORM_HEALTH_RESULTS } from '@kbn/transform-plugin/common/constants
|
|||
import { FtrProviderContext } from '../../../../../../common/ftr_provider_context';
|
||||
import { getUrlPrefix, ObjectRemover } from '../../../../../../common/lib';
|
||||
import { Spaces } from '../../../../../scenarios';
|
||||
import { runSoon } from '../../../group3/test_helpers';
|
||||
|
||||
const CONNECTOR_TYPE_ID = '.index';
|
||||
const RULE_TYPE_ID = 'transform_health';
|
||||
|
@ -30,7 +31,7 @@ const ES_TEST_INDEX_SOURCE = 'transform-alert:transform-health';
|
|||
const ES_TEST_INDEX_REFERENCE = '-na-';
|
||||
const ES_TEST_OUTPUT_INDEX_NAME = `${ES_TEST_INDEX_NAME}-ts-output`;
|
||||
|
||||
const RULE_INTERVAL_SECONDS = 3;
|
||||
const RULE_INTERVAL_SECONDS = 10000;
|
||||
|
||||
interface CreateRuleParams {
|
||||
name: string;
|
||||
|
@ -80,8 +81,7 @@ export default function ruleTests({ getService }: FtrProviderContext) {
|
|||
`.internal.alerts-transform.health.alerts-default-000001`
|
||||
);
|
||||
|
||||
// Failing: See https://github.com/elastic/kibana/issues/177215
|
||||
describe.skip('rule', async () => {
|
||||
describe('rule', async () => {
|
||||
const objectRemover = new ObjectRemover(supertest);
|
||||
let connectorId: string;
|
||||
const transformId = 'test_transform_01';
|
||||
|
@ -121,6 +121,8 @@ export default function ruleTests({ getService }: FtrProviderContext) {
|
|||
|
||||
await stopTransform(transformId);
|
||||
|
||||
await runSoon({ id: ruleId, supertest, retry });
|
||||
|
||||
log.debug('Checking created alerts...');
|
||||
|
||||
const docs = await waitForDocs(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue