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

[Security Solution] Updates loock-back time on Cypress tests #110609

Merged
merged 2 commits into from
Aug 31, 2021

Conversation

MadameSheema
Copy link
Member

Summary

Some tests have started to fail on master because alerts have not been generated.

The only way we have to generate alerts right now on our functional tests, is to load an index with beats data, create a rule using as index the loaded one, and a big loock-back time.

Looks like the current loock-back time is not big enough to generate alerts, this is why in this PR we are updating that value.

In a near future we should investigate different ways to generate alerts as well as updating the current test data.

@MadameSheema MadameSheema added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v7.15.0 labels Aug 31, 2021
@MadameSheema MadameSheema self-assigned this Aug 31, 2021
@MadameSheema MadameSheema requested a review from a team as a code owner August 31, 2021 13:12
@elasticmachine
Copy link
Contributor

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

Copy link
Contributor

@ecezalp ecezalp left a comment

Choose a reason for hiding this comment

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

LGTM

In a near future we should investigate different ways to generate alerts as well as updating the current test data.

Agreed, would be happy to contribute to a solution :)

Copy link
Contributor

@xcrzx xcrzx left a comment

Choose a reason for hiding this comment

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

It would be nice to adjust our mock data so that we don't need to change the lookback interval again in ~3 years. But I think it wouldn't be a quick fix. As a temporary solution LTGTM.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

cc @MadameSheema

@MadameSheema MadameSheema merged commit f8c80a7 into elastic:master Aug 31, 2021
@MadameSheema MadameSheema deleted the fixes-tests branch August 31, 2021 18:07
MadameSheema added a commit to MadameSheema/kibana that referenced this pull request Aug 31, 2021
…#110609)

* updates loock-back time

* updates loock-back value for 'expectedExportedRule'
MadameSheema added a commit to MadameSheema/kibana that referenced this pull request Aug 31, 2021
…#110609)

* updates loock-back time

* updates loock-back value for 'expectedExportedRule'
MadameSheema added a commit to MadameSheema/kibana that referenced this pull request Aug 31, 2021
…#110609)

* updates loock-back time

* updates loock-back value for 'expectedExportedRule'
MadameSheema added a commit that referenced this pull request Aug 31, 2021
#110687)

* updates loock-back time

* updates loock-back value for 'expectedExportedRule'
MadameSheema added a commit that referenced this pull request Sep 1, 2021
…110609) (#110689)

* [Security Solution] Updates loock-back time on Cypress tests (#110609)

* updates loock-back time

* updates loock-back value for 'expectedExportedRule'

* skips tests to unblock 7.15 branch

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
semd added a commit that referenced this pull request Sep 1, 2021
* [Security Solution] Updates loock-back time on Cypress tests (#110609)

* updates loock-back time

* updates loock-back value for 'expectedExportedRule'

* skips tests to unblock 7.15 branch

* [RAC] Remove rbac on security solution side (#110472)

* wip to remove rbac

* Revert "[Cases] Include rule registry client for updating alert statuses (#108588)"

This reverts commit 1fd7038.

This leaves the rule registry mock changes

* remove rbac on Trend/Count alert

* update detection api for status

* remove @kbn-alerts packages

* fix leftover

* Switching cases to leverage update by query for alert status

* Adding missed files

* fix bad logic

* updating tests for use_alerts_privileges

* remove index alias/fields

* fix types

* fix plugin to get the right index names

* left over of alis on template

* forget to use current user for create/read route index

* updated alerts page to not show table when no privileges and updates to tests

* fix bug when switching between o11y and security solution

* updates tests and move to use privileges page when user tries to access alerts without proper access

* updating jest tests

* pairing with yara

* bring back kbn-alerts after discussion with the team

* fix types

* fix index field for o11y

* fix bug with updating index priv state

* fix i18n issue and update api docs

* fix refresh on alerts

* fix render view on alerts

* updating tests and checking for null in alerts page to not show no privileges page before load

* fix details rules

Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
Co-authored-by: Yara Tercero <yara.tercero@elastic.co>
# Conflicts:
#	x-pack/plugins/security_solution/cypress/integration/detection_alerts/alerts_details.spec.ts

* skip tests

Co-authored-by: Gloria Hornero <snootchie.boochies@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
MadameSheema added a commit that referenced this pull request Sep 1, 2021
…110609) (#110697)

* [Security Solution] Updates loock-back time on Cypress tests (#110609)

* updates loock-back time

* updates loock-back value for 'expectedExportedRule'

* fixes failing test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
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. v7.15.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants