mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 19:13:14 -04:00
[Security Solution] Quickstart script tooling for Detections and Response (#190634)
## Summary Creates CLI script tooling for building data, rules, exceptions, and lists in any (local, cloud, serverless) environment for manual testing. The initial commits here add generated clients for accessing security solution, exceptions, and lists APIs and a placeholder script where those clients are set up for use. See README for more details. Much of the code in this PR is auto-generated clients. The hand written code is intended to be primarily in `quickstart/modules/`, where we can add wrapper code to simplify the process for common test environment setup. For example, `createValueListException` takes an array of items and some metadata and automatically creates a new value list and an exception that references that value list. `/modules/data/` contains functions to generate documents of arbitrary size, and we can add more functions to create various other types of documents. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
335b153a92
commit
3cc7029197
33 changed files with 3855 additions and 13 deletions
|
@ -34,4 +34,18 @@ const ROOT = resolve(__dirname, '..');
|
|||
),
|
||||
},
|
||||
});
|
||||
|
||||
await generate({
|
||||
title: 'Lists API client for quickstart',
|
||||
rootDir: ROOT,
|
||||
sourceGlob: './api/**/*.schema.yaml',
|
||||
templateName: 'api_client_quickstart',
|
||||
skipLinting: true,
|
||||
bundle: {
|
||||
outFile: join(
|
||||
REPO_ROOT,
|
||||
'packages/kbn-securitysolution-lists-common/api/quickstart_client.gen.ts'
|
||||
),
|
||||
},
|
||||
});
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue