-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EPM][Security Solution] Implementing dataset component templates (#7…
…0517) (#70862) * Implementing dataset component templates * Fixing test * Temporary fix to include timestamp with any component template created * Update package registry docker image for CI. * Adapt to new registry filesystem layout. * Adjust tests to changed registry behavior. * Adding a test for mappings and settings overrides * Wrap all the tests in the docker check Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Sonja Krause-Harder <[email protected]> Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Sonja Krause-Harder <[email protected]>
- Loading branch information
1 parent
09d9180
commit 62bc13e
Showing
15 changed files
with
298 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...st_manager/server/services/epm/elasticsearch/template/__snapshots__/template.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...pi_integration/apis/fixtures/test_packages/overrides/0.1.0/dataset/test/fields/fields.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
- name: dataset.type | ||
type: constant_keyword | ||
description: > | ||
Dataset type. | ||
- name: dataset.name | ||
type: constant_keyword | ||
description: > | ||
Dataset name. | ||
- name: dataset.namespace | ||
type: constant_keyword | ||
description: > | ||
Dataset namespace. | ||
- name: '@timestamp' | ||
type: date | ||
description: > | ||
Event timestamp. |
9 changes: 9 additions & 0 deletions
9
...ger_api_integration/apis/fixtures/test_packages/overrides/0.1.0/dataset/test/manifest.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
title: Test Dataset | ||
|
||
type: logs | ||
|
||
elasticsearch: | ||
index_template.mappings: | ||
dynamic: false | ||
index_template.settings: | ||
index.lifecycle.name: reference |
3 changes: 3 additions & 0 deletions
3
...ager_api_integration/apis/fixtures/test_packages/overrides/0.1.0/docs/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Test package | ||
|
||
For testing the that the settings and mappings section get used |
7 changes: 7 additions & 0 deletions
7
...ion/apis/fixtures/test_packages/overrides/0.1.0/img/logo_overrides_64_color.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions
20
...t/ingest_manager_api_integration/apis/fixtures/test_packages/overrides/0.1.0/manifest.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
format_version: 1.0.0 | ||
name: overrides | ||
title: Mappings Settings Test | ||
description: This is a test package for testing that the mappings and settings sections in the dataset manifest are applied. | ||
version: 0.1.0 | ||
categories: ['security'] | ||
release: beta | ||
type: integration | ||
license: basic | ||
|
||
requirement: | ||
elasticsearch: | ||
versions: '>7.7.0' | ||
kibana: | ||
versions: '>7.7.0' | ||
|
||
icons: | ||
- src: '/img/logo_overrides_64_color.svg' | ||
size: '16x16' | ||
type: 'image/svg+xml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.