* convert xpackinfo to TS * use NP Licensing plugin in XPackInfo * update mocks * put license regresh hack back. otherwise new license won't be re-fetched when signature changed. was deleted by mistake * add functional test for legacy xpackmain * declare setup types on client & server explicitly * rename mock license --> licensing to match plugin name * add tests for createLicensePoller * fix type error * adopt tests for xpack_info * createXPackInfo uses new platform API * put back error mute * address comments * fix renamed import * address comment * update tests to reduce delays * deprecate xpack.xpack_main.xpack_api_polling_frequency_millis * use snake_case in config
54 lines
1.5 KiB
TypeScript
54 lines
1.5 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 { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
|
import { services, pageObjects } from './services';
|
|
|
|
const license = 'basic';
|
|
|
|
export default async function({ readConfigFile }: FtrConfigProviderContext) {
|
|
const functionalTestsConfig = await readConfigFile(require.resolve('../functional/config.js'));
|
|
|
|
const servers = {
|
|
...functionalTestsConfig.get('servers'),
|
|
elasticsearch: {
|
|
...functionalTestsConfig.get('servers.elasticsearch'),
|
|
},
|
|
kibana: {
|
|
...functionalTestsConfig.get('servers.kibana'),
|
|
},
|
|
};
|
|
|
|
return {
|
|
testFiles: [require.resolve('./apis')],
|
|
servers,
|
|
services,
|
|
pageObjects,
|
|
junit: {
|
|
reportName: 'License plugin API Integration Tests',
|
|
},
|
|
|
|
esTestCluster: {
|
|
...functionalTestsConfig.get('esTestCluster'),
|
|
license,
|
|
serverArgs: [
|
|
...functionalTestsConfig.get('esTestCluster.serverArgs'),
|
|
'xpack.security.enabled=true',
|
|
],
|
|
},
|
|
|
|
kbnTestServer: {
|
|
...functionalTestsConfig.get('kbnTestServer'),
|
|
serverArgs: [
|
|
...functionalTestsConfig.get('kbnTestServer.serverArgs'),
|
|
'--xpack.licensing.api_polling_frequency=300',
|
|
],
|
|
},
|
|
|
|
apps: {
|
|
...functionalTestsConfig.get('apps'),
|
|
},
|
|
};
|
|
}
|