mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
* Add a way to disable certificate verification for FTR. * Remove other options Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
109cb27599
commit
f95672f272
1 changed files with 9 additions and 0 deletions
|
@ -45,6 +45,8 @@ import { Browsers } from './browsers';
|
|||
|
||||
const throttleOption: string = process.env.TEST_THROTTLE_NETWORK as string;
|
||||
const headlessBrowser: string = process.env.TEST_BROWSER_HEADLESS as string;
|
||||
const remoteDebug: string = process.env.TEST_REMOTE_DEBUG as string;
|
||||
const certValidation: string = process.env.NODE_TLS_REJECT_UNAUTHORIZED as string;
|
||||
const SECOND = 1000;
|
||||
const MINUTE = 60 * SECOND;
|
||||
const NO_QUEUE_COMMANDS = ['getLog', 'getStatus', 'newSession', 'quit'];
|
||||
|
@ -99,6 +101,13 @@ async function attemptToCreateCommand(
|
|||
// See: https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md
|
||||
chromeOptions.push('headless', 'disable-gpu');
|
||||
}
|
||||
if (certValidation === '0') {
|
||||
chromeOptions.push('ignore-certificate-errors');
|
||||
}
|
||||
if (remoteDebug === '1') {
|
||||
// Visit chrome://inspect in chrome to remotely view/debug
|
||||
chromeOptions.push('headless', 'disable-gpu', 'remote-debugging-port=9222');
|
||||
}
|
||||
chromeCapabilities.set('goog:chromeOptions', {
|
||||
w3c: false,
|
||||
args: chromeOptions,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue