-
Notifications
You must be signed in to change notification settings - Fork 8k
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
[Meta] Update serverless test to not run with operator privileges #183512
Comments
Pinging @elastic/appex-qa (Team:QA) |
Added tracking issue for Search and updated tagged team |
4 tasks
2 tasks
#184033 created to address the Observability requirements and updated the contact to me (we don't have a corresponding GitHub team, but a project team for this) |
In Security we have started implementing the change in our Cypress tests: #183608 and then we'll move forward with the API ones. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Overview
The serverless operator user should not be used for functional / e2e testing. There are some reasons for it:
Our UI and API integration tests should be close to the actions a real user would perform in order to have best possible test coverage. This includes user privileges.
Having said all that, the operator user is still required in some places like test setup or teardown. But it should not be used for login nor for the API under test.
Details and examples of how to do that are in the serverless test readme: https://github.com/elastic/kibana/blob/main/x-pack/test_serverless/README.md#roles-based-testing
cc as discussed @cachedout @sphilipse @MindyRS
High level areas to update
Target date is end of June 2024
Tagging the teams to drive it - not necessarily to implement it.
Group 1:
x-pack/test_serverless/api_integration/
test_suites/common
test_suites/observability
test_suites/search
test_suites/security
Group 2:
x-pack/test_serverless/functional/
test_suites/common
test_suites/observability
test_suites/search
test_suites/security
Group 3:
x-pack/test/security_solution*
test/security_solution_api_integration
(serverless tests)test/security_solution_cypress
(serverless tests)test/security_solution_endpoint
(serverless tests)test/security_solution_endpoint_api_int
(serverless tests)test/security_solution_cypress
(serverless tests)The text was updated successfully, but these errors were encountered: