2019-07-15 17:30:58 +02: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.
|
2019-07-15 17:30:58 +02:00
|
|
|
*/
|
|
|
|
|
2021-05-17 18:51:53 +02:00
|
|
|
import { FtrConfigProviderContext } from '@kbn/test';
|
2019-07-15 17:30:58 +02:00
|
|
|
|
2020-05-22 09:08:58 +02:00
|
|
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
2020-11-09 17:34:20 +01:00
|
|
|
const kerberosAPITestsConfig = await readConfigFile(require.resolve('./kerberos.config.ts'));
|
2019-07-15 17:30:58 +02:00
|
|
|
|
|
|
|
return {
|
|
|
|
...kerberosAPITestsConfig.getAll(),
|
|
|
|
|
|
|
|
junit: {
|
2020-11-09 17:34:20 +01:00
|
|
|
reportName: 'X-Pack Security API Integration Tests (Kerberos with Anonymous Access)',
|
2019-07-15 17:30:58 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
esTestCluster: {
|
|
|
|
...kerberosAPITestsConfig.get('esTestCluster'),
|
|
|
|
serverArgs: [
|
|
|
|
...kerberosAPITestsConfig.get('esTestCluster.serverArgs'),
|
|
|
|
'xpack.security.authc.anonymous.username=anonymous_user',
|
2020-05-06 13:17:42 +02:00
|
|
|
'xpack.security.authc.anonymous.roles=superuser_anonymous',
|
2019-07-15 17:30:58 +02:00
|
|
|
],
|
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|