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] Making manage_lists.cy.ts tests more robust #171675

Merged
merged 6 commits into from
Nov 23, 2023

Conversation

MadameSheema
Copy link
Member

@MadameSheema MadameSheema commented Nov 21, 2023

Summary

This PR is part of the effort we are making to have more robust tests for serverless and have them ready for the second quality gate (QA environment - real serverless project.)

Inside manage_lists spec we have an export test that relies on a hardcoded user for the assertion system_indices_super_user. The problem is, that this user does not exist in deployed project, in order to make the test less flaky and make it work on QA as well, we are using the ELASTICSEARCH_USERNAME value of the environment variable which has the name of the user interacting with our application.

I've noticed also that in real deployed projects, some toaster errors are unrelated to the test behavior, as you are already closing some toaster errors when this happens, I've added an extra-safe guard when executing the export.

@MadameSheema MadameSheema changed the title making test more robust [Security Solution] Making manage_lists.cy.ts tests more robust Nov 21, 2023
@MadameSheema MadameSheema self-assigned this Nov 21, 2023
@MadameSheema MadameSheema added v8.12.0 Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Detection Engine Security Solution Detection Engine Area release_note:skip Skip the PR/issue when compiling release notes labels Nov 21, 2023
@MadameSheema MadameSheema marked this pull request as ready for review November 21, 2023 18:15
@MadameSheema MadameSheema requested review from a team as code owners November 21, 2023 18:15
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detections-response (Team:Detections and Resp)

@elasticmachine
Copy link
Contributor

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

Copy link
Contributor

@stephmilovic stephmilovic 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 enabled auto-merge (squash) November 22, 2023 06:34
@MadameSheema
Copy link
Member Author

@elasticmachine run elasticsearch-ci/docs

@kibana-ci
Copy link
Collaborator

💚 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 14bec21 into elastic:main Nov 23, 2023
27 checks passed
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Nov 23, 2023
@MadameSheema MadameSheema deleted the manage-lists-tests branch November 23, 2023 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Detection Engine Security Solution Detection Engine Area Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants