[Security Solution]Fix basepath used by endpoint telemetry tests (#79027)

* Fix basepath used by endpoint telemetry tests

* Linting
This commit is contained in:
Jeffrey Chu 2020-10-01 11:47:56 -04:00 committed by GitHub
parent c1a3002c16
commit f4c5ebca9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,10 +5,14 @@
*/
import fs from 'fs';
import Path from 'path';
import { KIBANA_ROOT } from '@kbn/test';
import { FtrProviderContext } from '../ftr_provider_context';
const TELEMETRY_API_ROOT = '/api/stats?extended=true';
const TELEMETRY_DATA_ROOT = 'test/functional/es_archives/endpoint/telemetry/';
const TELEMETRY_DATA_ROOT = Path.join(
KIBANA_ROOT,
'x-pack/test/functional/es_archives/endpoint/telemetry/'
);
interface EndpointTelemetry {
total_installed: number;