Skip to content
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

[SIEM] Fixes 'Sort by activated rules' flakiness #63331

Merged
merged 1 commit into from
Apr 13, 2020

Conversation

MadameSheema
Copy link
Member

Summary

In this test originally we were checking that the the order of the activation of the rule was also the order of sorting.

After a conversation with @dhurley14 looks like the logic behind sorting, does not take into account any specific order, just perform the sorting by the activated rules, that is the reason why the test started to be flaky.

In order to fix it, we are getting the name of the first and second rule after sorting and we check that the previous activated rules names are inside those without taking into account any order.

We added also as an extra check, asserting that the first second rules, have the switch button active.

@MadameSheema MadameSheema added Team:SIEM v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.7.0 labels Apr 13, 2020
@MadameSheema MadameSheema requested a review from a team as a code owner April 13, 2020 09:32
@MadameSheema MadameSheema self-assigned this Apr 13, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/siem (Team:SIEM)

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Contributor

@FrankHassanabad FrankHassanabad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MadameSheema MadameSheema merged commit e74d360 into elastic:master Apr 13, 2020
@MadameSheema MadameSheema deleted the fixes-rules-flaky-test branch April 13, 2020 13:38
MadameSheema added a commit to MadameSheema/kibana that referenced this pull request Apr 13, 2020
MadameSheema added a commit to MadameSheema/kibana that referenced this pull request Apr 13, 2020
MadameSheema added a commit that referenced this pull request Apr 13, 2020
MadameSheema added a commit that referenced this pull request Apr 13, 2020
@MindyRS MindyRS added the Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. label Sep 23, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:SIEM v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants