* [kbn/test] move types/ftr into src * Apply eslint updates * fix import of Lifecycle type Co-authored-by: spalger <spalger@users.noreply.github.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
27 lines
1,019 B
TypeScript
27 lines
1,019 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
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
/* eslint-disable import/no-default-export */
|
|
|
|
import { FtrConfigProviderContext } from '@kbn/test';
|
|
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;
|
|
});
|
|
}
|