mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
* Add a way to disable certificate verification for FTR. (#58386) * Add a way to disable certificate verification for FTR. * Remove other options Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> * Delete file Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
84b51b63e4
commit
0e453cc1a7
1 changed files with 7 additions and 0 deletions
|
@ -38,6 +38,13 @@ async function attemptToCreateCommand(log, server, driverApi) {
|
|||
if (process.env.TEST_BROWSER_HEADLESS) {
|
||||
browserOptions = { chromeOptions: { args: ['headless', 'disable-gpu'] } };
|
||||
}
|
||||
if (process.env.NODE_TLS_REJECT_UNAUTHORIZED === '0') {
|
||||
browserOptions = { chromeOptions: { args: ['ignore-certificate-errors'] } };
|
||||
if (process.env.TEST_BROWSER_HEADLESS) {
|
||||
browserOptions = { chromeOptions: { args: ['headless', 'disable-gpu', 'ignore-certificate-errors'] } };
|
||||
}
|
||||
}
|
||||
|
||||
const session = await server.createSession(browserOptions, driverApi.getRequiredCapabilities());
|
||||
|
||||
if (attemptId !== attemptCounter) return; // abort
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue