Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Flaky test: Detection rule telemetry elastic#162407 (elastic#162681)
## Summary Original ticket: elastic#156088 It looks like flakiness happens due to another rule from previous test case being scheduled by alerting framework and running even after we deleted it (since we called delete rule after it was scheduled). That rule scheduled earlier produces some unexpected artifacts in metrics, specifically `stats.detection_rules.detection_rule_status` where occasionally see <img width="1255" alt="Screenshot 2023-07-25 at 15 13 29" src="https://github.com/elastic/kibana/assets/2700761/5d1cc334-25b5-4bf2-8822-c9858a0b72bf"> Since, in this test case the rule is disabled, we should not see this data. As a fix, we decided to test against specific metrics attributes `stats.detection_rules.detection_rule_usage` which we expect being updated.
- Loading branch information