2019-05-03 20:21:32 +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-05 08:11:58 +02:00
|
|
|
/* eslint-disable import/no-default-export */
|
|
|
|
|
|
|
|
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
2019-05-03 20:21:32 +02:00
|
|
|
import { default as createTestConfig } from './config';
|
|
|
|
|
2020-06-05 08:11:58 +02:00
|
|
|
export default async function (context: FtrConfigProviderContext) {
|
|
|
|
// security APIs should function the same under a basic or trial license
|
|
|
|
return createTestConfig(context).then((config) => {
|
2019-05-03 20:21:32 +02:00
|
|
|
config.esTestCluster.license = 'basic';
|
2019-12-13 23:44:04 +01:00
|
|
|
config.esTestCluster.serverArgs = [
|
|
|
|
'xpack.license.self_generated.type=basic',
|
|
|
|
'xpack.security.enabled=true',
|
2020-04-23 21:23:39 +02:00
|
|
|
'xpack.security.authc.api_key.enabled=true',
|
2019-12-13 23:44:04 +01:00
|
|
|
];
|
2020-03-24 16:12:49 +01:00
|
|
|
config.testFiles = [require.resolve('./apis/security/security_basic')];
|
2019-05-03 20:21:32 +02:00
|
|
|
return config;
|
|
|
|
});
|
|
|
|
}
|