-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AO] Add integration test to the Threshold Rule #160510
Comments
Pinging @elastic/actionable-observability (Team: Actionable Observability) |
Example of an integration test for metric threshold: #157489 |
Things to consider while testing:
@katrin-freihofner You already had a list of scenarios for this rule that we could use for testing, I forgot, where can I find them? @fkanout Just a heads up, I am working on saving action variables in the alert document, so we can postpone checking the action context variables until that work is done to avoid conflict or extra unnecessary work :) |
@maryam-saeidi, thanks for sharing. |
I think we use the term E2E for both functional and API integration tests. The example that I shared for metric threshold in the comments above uses Elasticsearch, so it should be fine to follow that and adjust it according to the proposal (unless I am missing something) |
I don't think that is applicable here. |
## Summary It fixes #160510 by: - Adding integration tests for the Threshold Rule. - Update the consumer value. - Update the action group.
## Summary It fixes elastic#160510 by: - Adding integration tests for the Threshold Rule. - Update the consumer value. - Update the action group. (cherry picked from commit 2b45cf6)
β¦1006) # Backport This will backport the following commits from `main` to `8.9`: - [[AO] Add integration test for the Threshold Rule (#160633)](#160633) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Faisal Kanout","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-06-30T14:11:58Z","message":"[AO] Add integration test for the Threshold Rule (#160633)\n\n## Summary\r\nIt fixes #160510 by:\r\n- Adding integration tests for the Threshold Rule.\r\n- Update the consumer value. \r\n- Update the action group.","sha":"2b45cf628f1391e7918b23e63df44e23f1c07bcc","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team: Actionable Observability","backport:prev-minor","v8.9.0","v8.10.0"],"number":160633,"url":"https://github.com/elastic/kibana/pull/160633","mergeCommit":{"message":"[AO] Add integration test for the Threshold Rule (#160633)\n\n## Summary\r\nIt fixes #160510 by:\r\n- Adding integration tests for the Threshold Rule.\r\n- Update the consumer value. \r\n- Update the action group.","sha":"2b45cf628f1391e7918b23e63df44e23f1c07bcc"}},"sourceBranch":"main","suggestedTargetBranches":["8.9"],"targetPullRequestStates":[{"branch":"8.9","label":"v8.9.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/160633","number":160633,"mergeCommit":{"message":"[AO] Add integration test for the Threshold Rule (#160633)\n\n## Summary\r\nIt fixes #160510 by:\r\n- Adding integration tests for the Threshold Rule.\r\n- Update the consumer value. \r\n- Update the action group.","sha":"2b45cf628f1391e7918b23e63df44e23f1c07bcc"}}]}] BACKPORT--> Co-authored-by: Faisal Kanout <[email protected]>
π Summary
The Threshold rule code was cloned and refactored completely. A suite of integration tests is required at this stage as we will update the rule inputs and do more refactoring.
β AC
The text was updated successfully, but these errors were encountered: