2021-02-22 17:48:43 +01:00
|
|
|
/*
|
|
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
|
|
* 2.0.
|
|
|
|
*/
|
|
|
|
|
2021-05-17 18:51:53 +02:00
|
|
|
import { FtrConfigProviderContext } from '@kbn/test';
|
2021-02-22 17:48:43 +01:00
|
|
|
|
|
|
|
import { CA_CERT_PATH } from '@kbn/dev-utils';
|
|
|
|
|
|
|
|
import { SecuritySolutionCypressCliFirefoxTestRunner } from './runner';
|
|
|
|
|
|
|
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|
|
|
const kibanaCommonTestsConfig = await readConfigFile(
|
|
|
|
require.resolve('../../../test/common/config.js')
|
|
|
|
);
|
|
|
|
const xpackFunctionalTestsConfig = await readConfigFile(
|
|
|
|
require.resolve('../functional/config.js')
|
|
|
|
);
|
|
|
|
|
|
|
|
return {
|
|
|
|
...kibanaCommonTestsConfig.getAll(),
|
|
|
|
|
|
|
|
browser: {
|
|
|
|
type: 'firefox',
|
|
|
|
acceptInsecureCerts: true,
|
|
|
|
},
|
|
|
|
|
|
|
|
esTestCluster: {
|
|
|
|
...xpackFunctionalTestsConfig.get('esTestCluster'),
|
|
|
|
serverArgs: [
|
|
|
|
...xpackFunctionalTestsConfig.get('esTestCluster.serverArgs'),
|
|
|
|
// define custom es server here
|
|
|
|
// API Keys is enabled at the top level
|
|
|
|
'xpack.security.enabled=true',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
|
|
|
kbnTestServer: {
|
|
|
|
...xpackFunctionalTestsConfig.get('kbnTestServer'),
|
|
|
|
serverArgs: [
|
|
|
|
...xpackFunctionalTestsConfig.get('kbnTestServer.serverArgs'),
|
|
|
|
'--csp.strict=false',
|
|
|
|
// define custom kibana server args here
|
|
|
|
`--elasticsearch.ssl.certificateAuthorities=${CA_CERT_PATH}`,
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
|
|
|
testRunner: SecuritySolutionCypressCliFirefoxTestRunner,
|
|
|
|
};
|
|
|
|
}
|