* bump @typescript-eslint deps * update rules * fix errors in pacakges * fix src/ * fix x-pack * fix test * fix typings * fix examples * allow _ as prefix and suffix * roll back prefix and suffix changes * add eslint-plugin-eslint-comments * report unused rules * remove unused eslint comments from tests * remove unused eslint comments 2nd pass * remove unused eslint comments from src/ * remove unused comments in x-pack * use no-script-url and no-unsanitized/property for ts files * remove unused eslint comments * eui/href-or-on-click removed when not complained * no import/* rules for ts files * cleanup * remove the unused eslint-disable * rollback unnecessary changes * allow underscore prefix & sufix in type name * update docs * fix type error in enterprise search plugin mocks * rename platform hack __coreProvider --> _coreProvider * rollback space removal in src/core/public/legacy/legacy_service.test.ts * fix naming convention in APM
39 lines
1.4 KiB
TypeScript
39 lines
1.4 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;
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
*/
|
|
|
|
import { resolve } from 'path';
|
|
import Url from 'url';
|
|
|
|
import { withProcRunner } from '@kbn/dev-utils';
|
|
|
|
import { FtrProviderContext } from './ftr_provider_context';
|
|
|
|
export async function SiemCypressTestRunner({ getService }: FtrProviderContext) {
|
|
const log = getService('log');
|
|
const config = getService('config');
|
|
const esArchiver = getService('esArchiver');
|
|
|
|
await esArchiver.load('empty_kibana');
|
|
await esArchiver.load('auditbeat');
|
|
|
|
await withProcRunner(log, async (procs) => {
|
|
await procs.run('cypress', {
|
|
cmd: 'yarn',
|
|
args: ['cypress:run'],
|
|
cwd: resolve(__dirname, '../../plugins/security_solution'),
|
|
env: {
|
|
FORCE_COLOR: '1',
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
CYPRESS_baseUrl: Url.format(config.get('servers.kibana')),
|
|
CYPRESS_ELASTICSEARCH_URL: Url.format(config.get('servers.elasticsearch')),
|
|
CYPRESS_ELASTICSEARCH_USERNAME: config.get('servers.elasticsearch.username'),
|
|
CYPRESS_ELASTICSEARCH_PASSWORD: config.get('servers.elasticsearch.password'),
|
|
...process.env,
|
|
},
|
|
wait: true,
|
|
});
|
|
});
|
|
}
|