mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
25 lines
1,018 B
TypeScript
25 lines
1,018 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.
|
|
*/
|
|
|
|
/* eslint-disable import/no-default-export */
|
|
|
|
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
|
import { default as createTestConfig } from './config';
|
|
|
|
export default async function (context: FtrConfigProviderContext) {
|
|
// security APIs should function the same under a basic or trial license
|
|
return createTestConfig(context).then((config) => {
|
|
config.esTestCluster.license = 'basic';
|
|
config.esTestCluster.serverArgs = [
|
|
'xpack.license.self_generated.type=basic',
|
|
'xpack.security.enabled=true',
|
|
'xpack.security.authc.api_key.enabled=true',
|
|
];
|
|
config.testFiles = [require.resolve('./apis/security/security_basic')];
|
|
config.junit.reportName = 'X-Pack API Integration Tests (Security Basic)';
|
|
return config;
|
|
});
|
|
}
|