kibana/x-pack/test/saved_object_tagging/api_integration/tagging_api/config.ts
Spencer f466ebf1a3
[esArchiver] drop support for --dir, use repo-relative paths instead (#101345)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-06-08 17:37:42 -04:00

36 lines
1.1 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';
import { services } from './services';
// eslint-disable-next-line import/no-default-export
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
const apiIntegrationConfig = await readConfigFile(
require.resolve('../../../api_integration/config.ts')
);
return {
testFiles: [require.resolve('./apis')],
servers: apiIntegrationConfig.get('servers'),
services,
junit: {
reportName: 'X-Pack Saved Object Tagging API Integration Tests',
},
esTestCluster: {
...apiIntegrationConfig.get('esTestCluster'),
license: 'trial',
},
kbnTestServer: {
...apiIntegrationConfig.get('kbnTestServer'),
serverArgs: [
...apiIntegrationConfig.get('kbnTestServer.serverArgs'),
'--server.xsrf.disableProtection=true',
],
},
};
}