2020-03-30 21:35:41 +02:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2020-06-25 21:01:04 +02:00
|
|
|
import path from 'path';
|
2020-03-30 21:35:41 +02:00
|
|
|
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
|
|
|
import { services } from './services';
|
|
|
|
|
2020-05-22 10:08:13 +02:00
|
|
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
2020-06-05 14:12:00 +02:00
|
|
|
const xPackAPITestsConfig = await readConfigFile(require.resolve('../api_integration/config.ts'));
|
2020-03-30 21:35:41 +02:00
|
|
|
|
|
|
|
return {
|
|
|
|
testFiles: [require.resolve('./tests')],
|
|
|
|
servers: xPackAPITestsConfig.get('servers'),
|
|
|
|
services,
|
|
|
|
junit: {
|
|
|
|
reportName: 'X-Pack Encrypted Saved Objects API Integration Tests',
|
|
|
|
},
|
2020-06-25 21:01:04 +02:00
|
|
|
esArchiver: {
|
|
|
|
directory: path.join(__dirname, 'fixtures', 'es_archiver'),
|
|
|
|
},
|
2020-03-30 21:35:41 +02:00
|
|
|
esTestCluster: xPackAPITestsConfig.get('esTestCluster'),
|
|
|
|
kbnTestServer: {
|
|
|
|
...xPackAPITestsConfig.get('kbnTestServer'),
|
|
|
|
serverArgs: [
|
|
|
|
...xPackAPITestsConfig.get('kbnTestServer.serverArgs'),
|
2020-06-25 21:01:04 +02:00
|
|
|
'--xpack.encryptedSavedObjects.encryptionKey="wuGNaIhoMpk5sO4UBxgr3NyW1sFcLgIf"',
|
2020-10-02 23:07:29 +02:00
|
|
|
`--xpack.encryptedSavedObjects.keyRotation.decryptionOnlyKeys=${JSON.stringify([
|
|
|
|
'a'.repeat(32),
|
|
|
|
'b'.repeat(32),
|
|
|
|
])}`,
|
2020-06-25 21:01:04 +02:00
|
|
|
`--plugin-path=${path.resolve(__dirname, './fixtures/api_consumer_plugin')}`,
|
2020-03-30 21:35:41 +02:00
|
|
|
],
|
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|