27 lines
925 B
TypeScript
27 lines
925 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.
|
||
|
*/
|
||
|
|
||
|
import { services as xpackServices } from '../../functional/services';
|
||
|
import { services as apiIntegrationServices } from '../../api_integration/services';
|
||
|
import { FtrProviderContext } from '../ftr_provider_context';
|
||
|
import { createUsageServices } from './usage';
|
||
|
import { createScenarios } from './scenarios';
|
||
|
|
||
|
export function ReportingAPIProvider(context: FtrProviderContext) {
|
||
|
return {
|
||
|
...createScenarios(context),
|
||
|
...createUsageServices(context),
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export const services = {
|
||
|
...xpackServices,
|
||
|
supertestWithoutAuth: apiIntegrationServices.supertestWithoutAuth,
|
||
|
usageAPI: apiIntegrationServices.usageAPI,
|
||
|
reportingAPI: ReportingAPIProvider,
|
||
|
};
|