* adds 'cypress:open-as-ci' command * fixes typecheck error Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
49 lines
1.4 KiB
TypeScript
49 lines
1.4 KiB
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License;
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
*/
|
|
|
|
import { resolve } from 'path';
|
|
|
|
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
|
|
|
import { CA_CERT_PATH } from '@kbn/dev-utils';
|
|
|
|
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(),
|
|
|
|
esArchiver: {
|
|
directory: resolve(__dirname, 'es_archives'),
|
|
},
|
|
|
|
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}`,
|
|
],
|
|
},
|
|
};
|
|
}
|