2020-01-11 19:26:31 +01:00
|
|
|
/*
|
|
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
2021-02-04 03:12:39 +01:00
|
|
|
* 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.
|
2020-01-11 19:26:31 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* eslint-disable import/no-default-export */
|
|
|
|
|
|
|
|
import { resolve } from 'path';
|
|
|
|
|
2021-05-17 18:51:53 +02:00
|
|
|
import { FtrConfigProviderContext } from '@kbn/test';
|
2020-01-11 19:26:31 +01:00
|
|
|
import { services } from './services';
|
|
|
|
import { pageObjects } from './page_objects';
|
|
|
|
|
|
|
|
// the default export of config files must be a config provider
|
|
|
|
// that returns an object with the projects config values
|
2020-05-22 09:08:58 +02:00
|
|
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
2020-01-11 19:26:31 +01:00
|
|
|
const kibanaCommonConfig = await readConfigFile(
|
|
|
|
require.resolve('../../../test/common/config.js')
|
|
|
|
);
|
|
|
|
const kibanaFunctionalConfig = await readConfigFile(
|
|
|
|
require.resolve('../../../test/functional/config.js')
|
|
|
|
);
|
|
|
|
|
|
|
|
return {
|
|
|
|
// list paths to the files that contain your plugins tests
|
|
|
|
testFiles: [resolve(__dirname, './apps/security/basic_license')],
|
|
|
|
|
|
|
|
services,
|
|
|
|
pageObjects,
|
|
|
|
|
|
|
|
servers: kibanaFunctionalConfig.get('servers'),
|
|
|
|
|
|
|
|
esTestCluster: {
|
|
|
|
license: 'basic',
|
|
|
|
from: 'snapshot',
|
|
|
|
serverArgs: [],
|
|
|
|
},
|
|
|
|
|
|
|
|
kbnTestServer: {
|
|
|
|
...kibanaCommonConfig.get('kbnTestServer'),
|
|
|
|
serverArgs: [
|
|
|
|
...kibanaCommonConfig.get('kbnTestServer.serverArgs'),
|
|
|
|
'--server.uuid=5b2de169-2785-441b-ae8c-186a1936b17d',
|
|
|
|
'--xpack.security.encryptionKey="wuGNaIhoMpk5sO4UBxgr3NyW1sFcLgIf"', // server restarts should not invalidate active sessions
|
|
|
|
],
|
|
|
|
},
|
|
|
|
uiSettings: {
|
|
|
|
defaults: {
|
|
|
|
'accessibility:disableAnimations': true,
|
|
|
|
'dateFormat:tz': 'UTC',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// the apps section defines the urls that
|
|
|
|
// `PageObjects.common.navigateTo(appKey)` will use.
|
|
|
|
// Merge urls for your plugin with the urls defined in
|
|
|
|
// Kibana's config in order to use this helper
|
|
|
|
apps: {
|
|
|
|
...kibanaFunctionalConfig.get('apps'),
|
|
|
|
},
|
|
|
|
|
|
|
|
// choose where screenshots should be saved
|
|
|
|
screenshots: {
|
|
|
|
directory: resolve(__dirname, 'screenshots'),
|
|
|
|
},
|
|
|
|
|
|
|
|
junit: {
|
2020-09-18 11:08:10 +02:00
|
|
|
reportName: 'Chrome X-Pack UI Functional Tests (Security Basic)',
|
2020-01-11 19:26:31 +01:00
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|