-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix FunctionsSnippetsTest after conversion function unification (#70)
`evalError()` can no longer trigger the error tested for and was removed. `evalErrorSuppressed()` now tests an illegal default value in `to_ip()`. Fixes #64
- Loading branch information
Showing
3 changed files
with
1 addition
and
21 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
6 changes: 0 additions & 6 deletions
6
src/test/resources/org/graylog/plugins/pipelineprocessor/functions/evalError.txt
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
src/test/resources/org/graylog/plugins/pipelineprocessor/functions/evalErrorSuppressed.txt
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,6 +1,6 @@ | ||
rule "suppressing exceptions/nulls" | ||
when | ||
is_null(to_ip($message.does_not_exist)) && is_not_null($message.this_field_was_set) | ||
is_null(to_ip($message.does_not_exist, "d.f.f.f")) && is_not_null($message.this_field_was_set) | ||
then | ||
trigger_test(); | ||
end |