Skip to content

Commit

Permalink
[ML] Enable transform health rule API tests (#182560)
Browse files Browse the repository at this point in the history
## Summary

Closes #177215

### Checklist

- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed

(cherry picked from commit 4759173)
  • Loading branch information
darnautov committed May 8, 2024
1 parent 74c8fe9 commit 8190f0c
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ 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';
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;
Expand Down Expand Up @@ -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';
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 8190f0c

Please sign in to comment.