-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Conversation
Pinging @elastic/security-solution (Team: SecuritySolution) |
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.
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 :)
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.
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.
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
…#110609) * updates loock-back time * updates loock-back value for 'expectedExportedRule'
…#110609) * updates loock-back time * updates loock-back value for 'expectedExportedRule'
…#110609) * updates loock-back time * updates loock-back value for 'expectedExportedRule'
#110687) * updates loock-back time * updates loock-back value for 'expectedExportedRule'
* [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>
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.