mirror of
https://github.com/elastic/kibana.git
synced 2025-06-29 03:24:45 -04:00
Updates files outside of x-pack to be triple-licensed under Elastic License 2.0, AGPL 3.0, or SSPL 1.0.
51 lines
1.7 KiB
JavaScript
51 lines
1.7 KiB
JavaScript
/*
|
|
* 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", the "GNU Affero General Public License v3.0 only", and the "Server Side
|
|
* Public License v 1"; you may not use this file except in compliance with, at
|
|
* your election, the "Elastic License 2.0", the "GNU Affero General Public
|
|
* License v3.0 only", or the "Server Side Public License, v 1".
|
|
*/
|
|
|
|
import { readFileSync } from 'fs';
|
|
import { CA_CERT_PATH, KBN_P12_PATH, KBN_P12_PASSWORD } from '@kbn/dev-utils';
|
|
import { createKibanaSupertestProvider } from '../../services';
|
|
|
|
export default async function ({ readConfigFile }) {
|
|
const httpConfig = await readConfigFile(require.resolve('../../config.base.js'));
|
|
const certificateAuthorities = [readFileSync(CA_CERT_PATH)];
|
|
|
|
return {
|
|
testFiles: [require.resolve('.')],
|
|
services: {
|
|
...httpConfig.get('services'),
|
|
supertest: createKibanaSupertestProvider({
|
|
certificateAuthorities,
|
|
}),
|
|
},
|
|
servers: {
|
|
...httpConfig.get('servers'),
|
|
kibana: {
|
|
...httpConfig.get('servers.kibana'),
|
|
protocol: 'https',
|
|
certificateAuthorities,
|
|
},
|
|
},
|
|
junit: {
|
|
reportName: 'Http SSL Integration Tests',
|
|
},
|
|
esTestCluster: {
|
|
...httpConfig.get('esTestCluster'),
|
|
serverArgs: ['xpack.security.enabled=false'],
|
|
},
|
|
kbnTestServer: {
|
|
...httpConfig.get('kbnTestServer'),
|
|
serverArgs: [
|
|
...httpConfig.get('kbnTestServer.serverArgs'),
|
|
'--server.ssl.enabled=true',
|
|
`--server.ssl.keystore.path=${KBN_P12_PATH}`,
|
|
`--server.ssl.keystore.password=${KBN_P12_PASSWORD}`,
|
|
],
|
|
},
|
|
};
|
|
}
|