* progress * progress * cleanup and elastic configs * make upgrades to support adding aditional users, with * use defaultDeep to ensure settings pass correctly * move needed configs to start servers into kbn_server (except x-pack plugin paths and users) * move xpack config to an export * add more time * diff rollbacks * roll back prettier diff * revert setupUsers signature * remove more bluebird * update bluebird for fixes with jest compatability * fix ts errors * dont allow jest to keep going making errors confising * Separates configs for jest integration core/x-pack. * Pass nested kbn config parameters. * Adds example x-pack integration test using live es. * Cloud detectors should be configurable for tests. * Cloud detectors should use native promises only. * No erroneous comments... * Util is only for promisify, duh! * New tests should have docuementation to help those looking to utilize them. * Doc section headings should be consistent with each other. * With git there is no need to commit commented code.
35 lines
781 B
TypeScript
35 lines
781 B
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';
|
|
|
|
type Licenses = 'oss' | 'basic' | 'gold' | 'trial';
|
|
|
|
export const TestKbnServerConfig = {
|
|
kbn: {
|
|
plugins: { paths: [resolve(__dirname, '../../node_modules/x-pack')] },
|
|
xpack: {
|
|
monitoring: {
|
|
tests: {
|
|
cloud_detector: {
|
|
enabled: false,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
es: {
|
|
license: 'trial' as Licenses,
|
|
},
|
|
users: [
|
|
{
|
|
username: 'kibana_user',
|
|
password: 'x-pack-test-password',
|
|
roles: ['kibana_user'],
|
|
},
|
|
],
|
|
};
|