Skip to content

Commit

Permalink
[Resolver] generator uses setup_node_env (elastic#76422)
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Austin committed Sep 1, 2020
1 parent 622f524 commit 2046f51
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/security_solution/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"cypress:open": "cypress open --config-file ./cypress/cypress.json",
"cypress:run": "cypress run --browser chrome --headless --spec ./cypress/integration/**/*.spec.ts --config-file ./cypress/cypress.json --reporter ../../node_modules/cypress-multi-reporters --reporter-options configFile=./cypress/reporter_config.json; status=$?; ../../node_modules/.bin/mochawesome-merge --reportDir ../../../target/kibana-security-solution/cypress/results > ../../../target/kibana-security-solution/cypress/results/output.json; ../../../node_modules/.bin/marge ../../../target/kibana-security-solution/cypress/results/output.json --reportDir ../../../target/kibana-security-solution/cypress/results; mkdir -p ../../../target/junit && cp ../../../target/kibana-security-solution/cypress/results/*.xml ../../../target/junit/ && exit $status;",
"cypress:run-as-ci": "node ../../../scripts/functional_tests --config ../../test/security_solution_cypress/config.ts",
"test:generate": "ts-node --project scripts/endpoint/cli_tsconfig.json scripts/endpoint/resolver_generator.ts"
"test:generate": "node scripts/endpoint/resolver_generator"
},
"devDependencies": {
"@types/md5": "^2.2.0",
Expand Down
4 changes: 0 additions & 4 deletions x-pack/plugins/security_solution/scripts/endpoint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ The default behavior is to create 1 endpoint with 1 alert and a moderate number
A seed value can be provided as a string for the random number generator for repeatable behavior, useful for demos etc.
Use the `-d` option if you want to delete and remake the indices, otherwise it will add documents to existing indices.

The sample data generator script depends on ts-node, install with npm:

`npm install -g ts-node`

Example command sequence to get ES and kibana running with sample data after installing ts-node:

`yarn es snapshot` -> starts ES
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* 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.
*/

require('../../../../../src/setup_node_env');
require('./resolver_generator_script');

0 comments on commit 2046f51

Please sign in to comment.