-
Notifications
You must be signed in to change notification settings - Fork 78
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
Refactored flaky test. #1464
Refactored flaky test. #1464
Conversation
Signed-off-by: AWSHurneyt <[email protected]>
Signed-off-by: AWSHurneyt <[email protected]>
|
||
// TODO: The test is cleaning up the detectors delegate monitors prematurely, causing this test to be flaky. | ||
// Adjusting test case to >= 1 to reduce flakiness pending further investigation. | ||
Integer newTotalAlerts = (Integer) getAlertsBody.getOrDefault("total_alerts", null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if it is cleaning monitor prematurely or if the update detector is deleting a monitor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plz use description section of PR to describe change being made
Signed-off-by: AWSHurneyt <[email protected]>
* Refactored flaky test. Signed-off-by: AWSHurneyt <[email protected]> * Refactored test for flakiness. Signed-off-by: AWSHurneyt <[email protected]> * Updated tests. Signed-off-by: AWSHurneyt <[email protected]> --------- Signed-off-by: AWSHurneyt <[email protected]> (cherry picked from commit 783167a)
* Refactored flaky test. Signed-off-by: AWSHurneyt <[email protected]> * Refactored test for flakiness. Signed-off-by: AWSHurneyt <[email protected]> * Updated tests. Signed-off-by: AWSHurneyt <[email protected]> --------- Signed-off-by: AWSHurneyt <[email protected]> (cherry picked from commit 783167a)
* Refactored flaky test. Signed-off-by: AWSHurneyt <[email protected]> * Refactored test for flakiness. Signed-off-by: AWSHurneyt <[email protected]> * Updated tests. Signed-off-by: AWSHurneyt <[email protected]> --------- Signed-off-by: AWSHurneyt <[email protected]> (cherry picked from commit 783167a) Co-authored-by: AWSHurneyt <[email protected]>
* Refactored flaky test. (#1464) * Refactored flaky test. Signed-off-by: AWSHurneyt <[email protected]> * Refactored test for flakiness. Signed-off-by: AWSHurneyt <[email protected]> * Updated tests. Signed-off-by: AWSHurneyt <[email protected]> --------- Signed-off-by: AWSHurneyt <[email protected]> (cherry picked from commit 783167a) * fix version dependency issues Signed-off-by: Subhobrata Dey <[email protected]> --------- Signed-off-by: Subhobrata Dey <[email protected]> Co-authored-by: Subhobrata Dey <[email protected]>
Description
Manual backport of PR #1467
https://ci.opensearch.org/ci/dbc/integ-test/2.19.0/10772/linux/x64/tar/test-results/9318/integ-test/security-analytics/with-security/opensearch-integ-test/classes/org.opensearch.securityanalytics.alerts.AlertsIT.html#testMultipleAggregationAndDocRules_alertSuccess
Related Issues
#1451
Check List
--signoff
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.