-
Notifications
You must be signed in to change notification settings - Fork 113
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 alerting test, and added wait logic to reduce flakiness. #953
Refactored alerting test, and added wait logic to reduce flakiness. #953
Conversation
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
@@ -38,7 +38,7 @@ const clusterHealthMonitor = { | |||
severity: '1', | |||
condition: { | |||
script: { | |||
source: 'ctx.results[0].status != "green"', | |||
source: 'ctx.results[0].status != "blue"', |
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.
For context, this was changed to blue
because the test was failing when run against multinode clusters. The indexes used by the tests were only reliably in a yellow
state on single node clusters because they were configured to have replicas. Rather than reconfigure the test indexes, it was less invasive for other tests to adjust the condition used by this test.
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.
Could we add comments of this change with the context,so we can understand in future when look back at this code piece
// Ensure the 'Monitor name' column is sorted in ascending order by sorting another column first | ||
cy.contains('Last updated by').click({ force: true }); | ||
cy.contains('Last notification time').click({ force: true }); |
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.
For context, the Last updated by
column was removed from this UI in PR opensearch-project/alerting-dashboards-plugin#767
Would someone be able to add the |
@Hailong-am @SuZhou-Joe |
…pensearch-project#953) Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
Description
Refactored alerting test, and added wait logic to reduce flakiness.
The edited test passes locally.
Issues Resolved
[List any issues this PR will resolve]
Check List
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.