-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed a bug where validate did not work with pre processing rules (#3977
) * fixed a bug where validate did not work with pre processing rules * added doc * added the schema of pre-processing rules * Update .changelog/3977.yml Co-authored-by: dorschw <81086590+dorschw@users.noreply.github.com> * added test module * fixed changelog test --------- Co-authored-by: dorschw <81086590+dorschw@users.noreply.github.com>
- Loading branch information
1 parent
3ffd770
commit 9679334
Showing
7 changed files
with
86 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
changes: | ||
- description: Fixed an issue where the ***validate*** command failed on pre-processing rules. | ||
type: fix | ||
pr_number: 3977 |
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
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
67 changes: 67 additions & 0 deletions
67
demisto_sdk/tests/test_files/preprocessrule-test_rule.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"action": "drop", | ||
"cacheVersn": 0, | ||
"definitionId": "", | ||
"enabled": true, | ||
"existingEventsFilters": [], | ||
"fromServerVersion": "", | ||
"id": "test rule", | ||
"index": 0, | ||
"itemVersion": "", | ||
"linkTo": "oldest", | ||
"locked": false, | ||
"name": "test rule", | ||
"newEventFilters": [ | ||
[ | ||
{ | ||
"left": { | ||
"isContext": true, | ||
"value": { | ||
"simple": "accountid" | ||
} | ||
}, | ||
"operator": "isEqualString", | ||
"right": { | ||
"isContext": false, | ||
"value": { | ||
"simple": "t" | ||
} | ||
}, | ||
"type": "shortText" | ||
} | ||
] | ||
], | ||
"packID": "", | ||
"packName": "", | ||
"period": { | ||
"by": "days", | ||
"fromValue": 30 | ||
}, | ||
"readyExistingEventsFilters": [], | ||
"readyNewEventFilters": [ | ||
[ | ||
{ | ||
"left": { | ||
"isContext": true, | ||
"value": { | ||
"simple": "accountid" | ||
} | ||
}, | ||
"operator": "isEqualString", | ||
"right": { | ||
"isContext": false, | ||
"value": { | ||
"simple": "t" | ||
} | ||
}, | ||
"type": "shortText" | ||
} | ||
] | ||
], | ||
"scriptID": "", | ||
"scriptName": "", | ||
"searchClosed": false, | ||
"system": false, | ||
"toServerVersion": "", | ||
"version": -1 | ||
} |