* [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>
48 lines
1.6 KiB
TypeScript
48 lines
1.6 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
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
import { FtrConfigProviderContext } from '@kbn/test';
|
|
|
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|
const kibanaAPITestsConfig = await readConfigFile(
|
|
require.resolve('../../../test/api_integration/config.js')
|
|
);
|
|
const xPackAPITestsConfig = await readConfigFile(require.resolve('../api_integration/config.ts'));
|
|
|
|
return {
|
|
testFiles: [require.resolve('./tests/anonymous')],
|
|
servers: xPackAPITestsConfig.get('servers'),
|
|
security: { disableTestUser: true },
|
|
services: {
|
|
...kibanaAPITestsConfig.get('services'),
|
|
...xPackAPITestsConfig.get('services'),
|
|
},
|
|
junit: {
|
|
reportName: 'X-Pack Security API Integration Tests (Anonymous with Username and Password)',
|
|
},
|
|
|
|
esTestCluster: { ...xPackAPITestsConfig.get('esTestCluster') },
|
|
|
|
kbnTestServer: {
|
|
...xPackAPITestsConfig.get('kbnTestServer'),
|
|
serverArgs: [
|
|
...xPackAPITestsConfig.get('kbnTestServer.serverArgs'),
|
|
`--xpack.security.authc.selector.enabled=false`,
|
|
`--xpack.security.authc.providers=${JSON.stringify({
|
|
anonymous: {
|
|
anonymous1: {
|
|
order: 0,
|
|
credentials: { username: 'anonymous_user', password: 'changeme' },
|
|
},
|
|
},
|
|
basic: { basic1: { order: 1 } },
|
|
})}`,
|
|
],
|
|
},
|
|
};
|
|
}
|