-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable normalization validating fields in transforms if synthetics i…
…s enabled (#2011) This PR allows to disable normalization when validating those fields (from transforms) when synthetic is enabled in the data stream created for testing purposes. Added a new test package to test this scenario with logsdb enabled.
- Loading branch information
Showing
74 changed files
with
21,703 additions
and
974 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
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,31 @@ | ||
#!/usr/bin/env bash | ||
|
||
stack_version_args() { | ||
if [[ -z "${PACKAGE_UNDER_TEST:-""}" ]]; then | ||
# Don't force stack version if we are testing multiple packages. | ||
return | ||
fi | ||
|
||
local package_root=test/packages/${PACKAGE_TEST_TYPE:-false_positives}/${PACKAGE_UNDER_TEST}/ | ||
local stack_version_file="${package_root%/}.stack_version" | ||
if [[ ! -f "$stack_version_file" ]]; then | ||
return | ||
fi | ||
|
||
echo -n "--version $(cat "$stack_version_file")" | ||
} | ||
|
||
stack_provider_args() { | ||
if [[ -z "${PACKAGE_UNDER_TEST:-""}" ]]; then | ||
# Don't force stack version if we are testing multiple packages. | ||
return | ||
fi | ||
|
||
local package_root=test/packages/${PACKAGE_TEST_TYPE:-false_positives}/${PACKAGE_UNDER_TEST}/ | ||
local parameters="${package_root%/}.stack_provider_settings" | ||
if [[ ! -f "$parameters" ]]; then | ||
return | ||
fi | ||
|
||
echo -n "-U $(cat "${parameters}" | tr '\n' ',' | tr -d ' ' | sed 's/,$//')" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
dependencies: | ||
ecs: | ||
reference: git@8.7 | ||
reference: "git@v8.11.0" |
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
52 changes: 52 additions & 0 deletions
52
...lel/ti_anomali/data_stream/threatstream/_dev/test/pipeline/test-anomali-threatstream.json
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.