-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Preparing Cypress to be able to execute on a real serverless environment #166109
[Security Solution] Preparing Cypress to be able to execute on a real serverless environment #166109
Conversation
const getProviderName = () => { | ||
if (Cypress.env('CLOUD_SERVERLESS')) { | ||
return 'cloud-basic'; | ||
} else { | ||
return 'basic'; | ||
} | ||
}; | ||
|
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.
note/issue: would you mind switching to the approach I'm using here, so that the tests can work in any current and future environments, no matter how providers are configured? https://github.com/elastic/kibana/pull/165810/files#diff-c20246118002c8381fa4a7b666148fcea8e1a68afa0c3d3100fe362b5e40ebb2R117-R134
Pinging @elastic/security-solution (Team: SecuritySolution) |
…or-real-environment # Conflicts: # x-pack/test/security_solution_cypress/cypress/tasks/login.ts # x-pack/test/security_solution_cypress/package.json
I'm transferring the review request to the @elastic/kibana-security as I might not be available for a while due to PTO. Context: The Security Solution team might need assistance if they encounter any issues with the login sequence in the Cypress tests (see #165810). |
Pinging @elastic/apm-ui (Team:APM) |
Pinging @elastic/fleet (Team:Fleet) |
Pinging @elastic/uptime (Team:uptime) |
97289ee
to
322623d
Compare
Closing in favor of: #166905 |
Work done to be prepared for these changes
Summary
This PR provides the changes needed to be able to execute cypress tests in a real serverless environment.
How to test it
Create a deployed project (you can use QAF for the creation and management of it. It is a pretty convenient tool since it easily provides you the password and the username)
Execute cypress in your machine from
x-pack/test/security_solution_cypress
:Known limitations
complete
can be executedTo follow up
essentials
andcomplete
Blockers
We need to have cypress at least in 12.15.0 version to be able to execute them on a real serverless since from that version test pages with targetedContent-Security-Policy
andContent-Security-Policy-Report-Only
header directives can be tested by specifying the allow list via the experimentalCspAllowList configuration option.#165869Blocker solved :)